Package ch.bluecare.commons.data
Class PList.Nil
- All Implemented Interfaces:
Iterable<Object>,IntFunction<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bluecare.commons.data.PList
PList.Cons<A>, PList.Nil -
Method Summary
Modifier and TypeMethodDescriptionConcatenates the given list ontothislist.boolean<B> PList<B>Applyfto each element in the list and concatenate the results.inthashCode()head()Return the first element (the head) of this list.booleanisEmpty()Check whether this is the empty list.<B> PList<B>Applyfto each element in this list, returning a new list preserving this structure.reverse()Reverse the order of this list.intsize()Return the size of this list.tail()Returns the tail of this list, that is without first element.Methods inherited from class ch.bluecare.commons.data.PList
add, apply, asFunction, cell, collect, collector, cons, contains, distinct, distinct, drop, dropRight, duplicates, empty, exists, fill, filter, filterWithNext, filterWithPrev, find, flatMapOptional, foldLeft, foldRight, forall, fromArray, fromIter, fromNullable, fromOptional, generate, groupBy, headOption, indexesOf, indexOf, iterator, max, min, mkString, nil, nonEmpty, of, range, reduce, single, sort, take, takeRight, toArray, toArrayList, toByteArray, toDoubleArray, toFloatArray, toHashSet, toIntArray, toLongArray, toStream, toString, zip, zipLazy, zipWithIndexMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
size
public int size()Description copied from class:PListReturn the size of this list. The size is cached and doesn't require to traverse the list. -
tail
Description copied from class:PListReturns the tail of this list, that is without first element. -
head
Description copied from class:PListReturn the first element (the head) of this list. An exception is thrown if this is the empty list. -
isEmpty
public boolean isEmpty()Description copied from class:PListCheck whether this is the empty list. -
reverse
Description copied from class:PListReverse the order of this list. -
map
Description copied from class:PListApplyfto each element in this list, returning a new list preserving this structure. -
flatMap
Description copied from class:PListApplyfto each element in the list and concatenate the results. -
concat
Description copied from class:PListConcatenates the given list ontothislist. -
equals
-
hashCode
public int hashCode()
-