Package com.humaorie.dollar
Interface Dollar.Wrapper<T>
-
- All Superinterfaces:
Iterable<T>
- All Known Subinterfaces:
Dollar.ArrayWrapper<T>,Dollar.ListWrapper<T>,Dollar.MapWrapper<K,V>,Dollar.RandomWrapper<T>,Dollar.SetWrapper<T>
- Enclosing class:
- Dollar
public static interface Dollar.Wrapper<T> extends Iterable<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Dollar.Wrapper<T>concat(Dollar.Wrapper<T> wrapper)Dollar.Wrapper<T>concat(Collection<T> items)Dollar.Wrapper<T>concat(T... items)Dollar.ArrayWrapper<T>convert()Dollar.Wrapper<T>copy()Dollar.Wrapper<T>fill(T object)Dollar.Wrapper<T>filter(Dollar.Function<Boolean,T> predicate)Stringjoin()Stringjoin(String separator)<R> Dollar.Wrapper<R>map(Dollar.Function<R,T> function)Dollar.Wrapper<T>repeat(int n)Dollar.Wrapper<T>reverse()Dollar.Wrapper<T>shuffle()Dollar.Wrapper<T>shuffle(Random random)intsize()Dollar.Wrapper<T>slice(int j)Dollar.Wrapper<T>slice(int i, int j)Dollar.Wrapper<T>sort()T[]toArray()T[]toArray(Class<T> concreteArrayClass)List<T>toList()List<T>toList(Class<? extends List> concreteListClass)Set<T>toSet()Set<T>toSet(Class<? extends Set> concreteSetClass)-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
size
int size()
-
join
String join()
-
repeat
Dollar.Wrapper<T> repeat(int n)
-
shuffle
Dollar.Wrapper<T> shuffle()
-
shuffle
Dollar.Wrapper<T> shuffle(Random random)
-
copy
Dollar.Wrapper<T> copy()
-
concat
Dollar.Wrapper<T> concat(Dollar.Wrapper<T> wrapper)
-
concat
Dollar.Wrapper<T> concat(T... items)
-
concat
Dollar.Wrapper<T> concat(Collection<T> items)
-
reverse
Dollar.Wrapper<T> reverse()
-
fill
Dollar.Wrapper<T> fill(T object)
-
slice
Dollar.Wrapper<T> slice(int j)
-
slice
Dollar.Wrapper<T> slice(int i, int j)
-
sort
Dollar.Wrapper<T> sort()
-
toArray
T[] toArray()
-
convert
Dollar.ArrayWrapper<T> convert()
-
filter
Dollar.Wrapper<T> filter(Dollar.Function<Boolean,T> predicate)
-
map
<R> Dollar.Wrapper<R> map(Dollar.Function<R,T> function)
-
-