Package ch.bluecare.commons.data
Class PList.Cons<A>
java.lang.Object
ch.bluecare.commons.data.PList<A>
ch.bluecare.commons.data.PList.Cons<A>
- All Implemented Interfaces:
Iterable<A>,IntFunction<A>
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bluecare.commons.data.PList
PList.Cons<A>, PList.Nil -
Method Summary
Methods inherited from class ch.bluecare.commons.data.PList
add, apply, asFunction, cell, collect, collector, concat, cons, contains, distinct, distinct, drop, dropRight, duplicates, empty, exists, fill, filter, filterWithNext, filterWithPrev, find, flatMap, flatMapOptional, foldLeft, foldRight, forall, fromArray, fromIter, fromNullable, fromOptional, generate, groupBy, headOption, indexesOf, indexOf, iterator, map, max, min, mkString, nil, nonEmpty, of, range, reduce, reverse, 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. -
equals
-
hashCode
public int hashCode()
-