Package at.jku.ssw.fp.coll
Class FSet.Empty<E>
- java.lang.Object
-
- at.jku.ssw.fp.coll.FSet<E>
-
- at.jku.ssw.fp.coll.FSet.Empty<E>
-
- Type Parameters:
E
- the element type (used in type inference)
- All Implemented Interfaces:
Serializable
,Iterable<E>
public static final class FSet.Empty<E> extends FSet<E>
Class for the empty set.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class at.jku.ssw.fp.coll.FSet
FSet.Builder<E>, FSet.Cons<E>, FSet.Empty<E>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Empty()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
head()
Throws aNoSuchElementException
.boolean
isEmpty()
Returnstrue
as this represents the empty set.int
size()
Returns0
as size of the empty set.FSet<E>
tail()
Throws aNoSuchElementException
.-
Methods inherited from class at.jku.ssw.fp.coll.FSet
add, contains, empty, filter, flatMap, forEach, iterator, map, of, of, of, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
spliterator
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Returnstrue
as this represents the empty set.
-
size
public int size()
Returns0
as size of the empty set.
-
head
public E head()
Throws aNoSuchElementException
.
-
-