EmptyList.java 388 B

123456789101112131415161718192021
  1. package gnu.lists;
  2. /**
  3. * This singleton class represents an empty list.
  4. * Using a separate class easier improved type information in error messages.
  5. *
  6. * @author Charles Turner
  7. * @since 16/04/2011
  8. * @see gnu.lists.LList kawa.standard.Scheme
  9. */
  10. public class EmptyList extends LList
  11. {
  12. public static final EmptyList emptyList = new EmptyList();
  13. private EmptyList()
  14. {
  15. }
  16. }