java.lang.Object
xyz.cofe.coll.im.ImListLinkedBase<A>
xyz.cofe.coll.im.ImListLinked<A>
- All Implemented Interfaces:
Iterable<A>,Append<ImList<A>,,A> Countable,Emptable<ImList<A>>,Filter<ImList<A>,,A> FMap<A>,FoldLeft<A>,FoldRight<A>,ForEach<A>,ImList<A>,MAP<A>,One<ImList<A>,,A> PositionalRead<A>,Prepend<ImList<A>,,A> Reverse<ImList<A>>,Tail<ImList<A>,A>
-
Nested Class Summary
Nested classes/interfaces inherited from class xyz.cofe.coll.im.ImListLinkedBase
ImListLinkedBase.ImListLinkedIterator<A>Nested classes/interfaces inherited from interface xyz.cofe.coll.im.FMap
FMap.Split<A,B> Nested classes/interfaces inherited from interface xyz.cofe.coll.im.ImList
ImList.Enumerated<A> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionДобавить в конец спискаappend(PositionalRead<? extends A> values) Добавить значения в конецempty()Создает пустую коллекциюstatic <A> ImListLinked<A>of(A... values) static <A> ImListLinked<A>static <A> ImListLinked<A>of(PositionalRead<A> values) Создание коллекции с один элементомДобавление элемента в начало спискаprepend(PositionalRead<? extends A> values) Добавление элементов в начало спискаreverse()Разворот спискаprotected <A1> ImListLinked<A1>selfConstructor(A1 value, ImListLinkedBase<A1> next) Данный метод должен быть переопределен в дочерних классахtoString()Methods inherited from class xyz.cofe.coll.im.ImListLinkedBase
each, fmap, foldLeft, foldRight, get, head, isNil, iterator, last, map, prependUnordered, size, split, tail, toImListMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface xyz.cofe.coll.im.ImList
containsAll, containsAll, containsAll, containsCount, enumerate, find, skip, stream, take, zipMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface xyz.cofe.coll.im.PositionalRead
toList
-
Constructor Details
-
ImListLinked
-
-
Method Details
-
selfConstructor
Description copied from class:ImListLinkedBaseДанный метод должен быть переопределен в дочерних классах- Specified by:
selfConstructorin classImListLinkedBase<A>- Parameters:
value- значениеnext- ссылка на следующий элемент- Returns:
- список
-
empty
Description copied from interface:EmptableСоздает пустую коллекцию -
one
Description copied from interface:OneСоздание коллекции с один элементом -
prepend
Description copied from interface:PrependДобавление элемента в начало списка -
prepend
Description copied from interface:PrependДобавление элементов в начало списка -
reverse
Description copied from interface:ReverseРазворот списка -
append
Description copied from interface:AppendДобавить в конец списка -
append
Description copied from interface:AppendДобавить значения в конец -
of
-
of
-
of
-
toString
-