@Test public void testCalcSize() { assertThat(IntMap.of(1,2,3).calcSize(),equalTo(3)); assertThat(IntMap.of(1,2,3).plus(1).calcSize(),equalTo(4)); }
int calcSize(){ return intMap.size(); }
IntMap implements ImmutableList<T>,Serializable,Higher<intMap,T> { int calcSize(){ return intMap.size(); } }
IntMap implements ImmutableList<T>,Serializable,Higher<intMap,T> { int calcSize(){ return intMap.size(); }  }
IntMap implements ImmutableList<T>,Serializable,Higher<intMap,T> { int calcSize(){ return intMap.size(); }  @Override IntMap<R> unitIterable(Iterable<R> it); static IntMap<T> fromStream(Stream<T> it); static IntMap<T> fromIterable(Iterable<T> iterable); static IntMap<T> empty(); static IntMap<T> of(T... values); @Override Iterator<T> iterator(); IntMap<T> plus(T value); @Override IntMap<R> unitStream(Stream<R> stream); @Override IntMap<T> emptyUnit(); @Override IntMap<T> drop(long num); @Override IntMap<T> take(long num); @Override IntMap<T> prepend(T value); @Override IntMap<T> append(T value); @Override IntMap<T> prependAll(Iterable<? extends T> value); @Override IntMap<T> appendAll(Iterable<? extends T> value); @Override IntMap<T> reverse(); Option<T> get(int index); T getOrElse(int index, T value); @Override T getOrElseGet(int pos, Supplier<? extends T> alt); int size(); @Override boolean isEmpty(); ReactiveSeq<T> stream(); @Override IntMap<R> forEach4(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends Iterable<R2>> iterable2, Function3<? super T, ? super R1, ? super R2, ? extends Iterable<R3>> iterable3, Function4<? super T, ? super R1, ? super R2, ? super R3, ? extends R> yieldingFunction); @Override IntMap<R> forEach4(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends Iterable<R2>> iterable2, Function3<? super T, ? super R1, ? super R2, ? extends Iterable<R3>> iterable3, Function4<? super T, ? super R1, ? super R2, ? super R3, Boolean> filterFunction, Function4<? super T, ? super R1, ? super R2, ? super R3, ? extends R> yieldingFunction); @Override IntMap<R> forEach3(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends Iterable<R2>> iterable2, Function3<? super T, ? super R1, ? super R2, ? extends R> yieldingFunction); @Override IntMap<R> forEach3(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends Iterable<R2>> iterable2, Function3<? super T, ? super R1, ? super R2, Boolean> filterFunction, Function3<? super T, ? super R1, ? super R2, ? extends R> yieldingFunction); @Override IntMap<R> forEach2(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends R> yieldingFunction); @Override IntMap<R> forEach2(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, Boolean> filterFunction, BiFunction<? super T, ? super R1, ? extends R> yieldingFunction); @Override IntMap<T> filter(Predicate<? super T> fn); @Override IntMap<R> map(Function<? super T, ? extends R> fn); @Override IntMap<R> flatMap(Function<? super T, ? extends ImmutableList<? extends R>> fn); @Override IntMap<R> concatMap(Function<? super T, ? extends Iterable<? extends R>> fn); @Override IntMap<R> mergeMap(Function<? super T, ? extends Publisher<? extends R>> fn); @Override IntMap<R> mergeMap(int maxConcurecy, Function<? super T, ? extends Publisher<? extends R>> fn); @Override IntMap<T> replaceFirst(T currentElement, T newElement); @Override IntMap<T> subList(int start, int end); @Override IntMap<U> ofType(Class<? extends U> type); @Override IntMap<T> filterNot(Predicate<? super T> predicate); @Override IntMap<T> notNull(); @Override IntMap<T> peek(Consumer<? super T> c); @Override IntMap<T> removeStream(Stream<? extends T> stream); @Override IntMap<T> retainAll(Iterable<? extends T> it); @Override IntMap<T> retainStream(Stream<? extends T> stream); @Override IntMap<T> retainAll(T... values); @Override IntMap<ReactiveSeq<T>> permutations(); @Override IntMap<ReactiveSeq<T>> combinations(int size); @Override IntMap<ReactiveSeq<T>> combinations(); @Override IntMap<R> zip(BiFunction<? super T, ? super T2, ? extends R> fn, Publisher<? extends T2> publisher); @Override IntMap<R> zipWithStream(Stream<? extends U> other, BiFunction<? super T, ? super U, ? extends R> zipper); @Override IntMap<Tuple2<T, U>> zipWithPublisher(Publisher<? extends U> other); @Override IntMap<Tuple2<T, U>> zip(Iterable<? extends U> other); @Override IntMap<R> zip3(Iterable<? extends S> second, Iterable<? extends U> third, Function3<? super T, ? super S, ? super U, ? extends R> fn3); @Override IntMap<R> zip4(Iterable<? extends T2> second, Iterable<? extends T3> third, Iterable<? extends T4> fourth, Function4<? super T, ? super T2, ? super T3, ? super T4, ? extends R> fn); @Override IntMap<T> combine(BiPredicate<? super T, ? super T> predicate, BinaryOperator<T> op); @Override IntMap<T> combine(Monoid<T> op, BiPredicate<? super T, ? super T> predicate); @Override IntMap<T> cycle(long times); @Override IntMap<T> cycle(Monoid<T> m, long times); @Override IntMap<T> cycleWhile(Predicate<? super T> predicate); @Override IntMap<T> cycleUntil(Predicate<? super T> predicate); @Override IntMap<R> zip(Iterable<? extends U> other, BiFunction<? super T, ? super U, ? extends R> zipper); @Override IntMap<Tuple3<T, S, U>> zip3(Iterable<? extends S> second, Iterable<? extends U> third); @Override IntMap<Tuple4<T, T2, T3, T4>> zip4(Iterable<? extends T2> second, Iterable<? extends T3> third, Iterable<? extends T4> fourth); @Override IntMap<Tuple2<T, Long>> zipWithIndex(); @Override IntMap<Seq<T>> sliding(int windowSize); @Override IntMap<Seq<T>> sliding(int windowSize, int increment); @Override IntMap<C> grouped(int size, Supplier<C> supplier); @Override IntMap<Vector<T>> groupedUntil(Predicate<? super T> predicate); @Override IntMap<Vector<T>> groupedUntil(BiPredicate<Vector<? super T>, ? super T> predicate); @Override IntMap<Tuple2<T, U>> zipWithStream(Stream<? extends U> other); @Override IntMap<Vector<T>> groupedWhile(Predicate<? super T> predicate); @Override IntMap<C> groupedWhile(Predicate<? super T> predicate, Supplier<C> factory); @Override IntMap<C> groupedUntil(Predicate<? super T> predicate, Supplier<C> factory); @Override IntMap<Vector<T>> grouped(int groupSize); @Override IntMap<T> distinct(); @Override IntMap<T> scanLeft(Monoid<T> monoid); @Override IntMap<U> scanLeft(U seed, BiFunction<? super U, ? super T, ? extends U> function); @Override IntMap<T> scanRight(Monoid<T> monoid); @Override IntMap<U> scanRight(U identity, BiFunction<? super T, ? super U, ? extends U> combiner); @Override IntMap<T> sorted(); @Override IntMap<T> sorted(Comparator<? super T> c); @Override IntMap<T> takeWhile(Predicate<? super T> p); @Override IntMap<T> dropWhile(Predicate<? super T> p); @Override IntMap<T> takeUntil(Predicate<? super T> p); @Override IntMap<T> dropUntil(Predicate<? super T> p); @Override IntMap<T> dropRight(int num); @Override IntMap<T> takeRight(int num); @Override IntMap<T> intersperse(T value); @Override IntMap<T> shuffle(); @Override IntMap<T> shuffle(Random random); @Override IntMap<T> slice(long from, long to); @Override IntMap<T> prependStream(Stream<? extends T> stream); @Override IntMap<T> appendAll(T... values); @Override IntMap<T> prependAll(T... values); @Override IntMap<T> deleteBetween(int start, int end); @Override IntMap<T> insertStreamAt(int pos, Stream<T> stream); @Override IntMap<T> sorted(Function<? super T, ? extends U> function); @Override R fold(Function<? super Some<T>, ? extends R> fn1, Function<? super None<T>, ? extends R> fn2); @Override IntMap<T> onEmpty(T value); @Override IntMap<T> onEmptyGet(Supplier<? extends T> supplier); @Override ImmutableList<T> onEmptySwitch(Supplier<? extends ImmutableList<T>> supplier); @Override IntMap<T> removeValue(T value); @Override IntMap<T> removeFirst(Predicate<? super T> pred); @Override IntMap<T> removeAt(long pos); @Override IntMap<T> insertAt(int pos, T... values); @Override IntMap<T> insertAt(int pos, Iterable<? extends T> values); @Override IntMap<T> insertAt(int i, T value); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); }
IntMap implements ImmutableList<T>,Serializable,Higher<intMap,T> { int calcSize(){ return intMap.size(); }  @Override IntMap<R> unitIterable(Iterable<R> it); static IntMap<T> fromStream(Stream<T> it); static IntMap<T> fromIterable(Iterable<T> iterable); static IntMap<T> empty(); static IntMap<T> of(T... values); @Override Iterator<T> iterator(); IntMap<T> plus(T value); @Override IntMap<R> unitStream(Stream<R> stream); @Override IntMap<T> emptyUnit(); @Override IntMap<T> drop(long num); @Override IntMap<T> take(long num); @Override IntMap<T> prepend(T value); @Override IntMap<T> append(T value); @Override IntMap<T> prependAll(Iterable<? extends T> value); @Override IntMap<T> appendAll(Iterable<? extends T> value); @Override IntMap<T> reverse(); Option<T> get(int index); T getOrElse(int index, T value); @Override T getOrElseGet(int pos, Supplier<? extends T> alt); int size(); @Override boolean isEmpty(); ReactiveSeq<T> stream(); @Override IntMap<R> forEach4(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends Iterable<R2>> iterable2, Function3<? super T, ? super R1, ? super R2, ? extends Iterable<R3>> iterable3, Function4<? super T, ? super R1, ? super R2, ? super R3, ? extends R> yieldingFunction); @Override IntMap<R> forEach4(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends Iterable<R2>> iterable2, Function3<? super T, ? super R1, ? super R2, ? extends Iterable<R3>> iterable3, Function4<? super T, ? super R1, ? super R2, ? super R3, Boolean> filterFunction, Function4<? super T, ? super R1, ? super R2, ? super R3, ? extends R> yieldingFunction); @Override IntMap<R> forEach3(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends Iterable<R2>> iterable2, Function3<? super T, ? super R1, ? super R2, ? extends R> yieldingFunction); @Override IntMap<R> forEach3(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends Iterable<R2>> iterable2, Function3<? super T, ? super R1, ? super R2, Boolean> filterFunction, Function3<? super T, ? super R1, ? super R2, ? extends R> yieldingFunction); @Override IntMap<R> forEach2(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends R> yieldingFunction); @Override IntMap<R> forEach2(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, Boolean> filterFunction, BiFunction<? super T, ? super R1, ? extends R> yieldingFunction); @Override IntMap<T> filter(Predicate<? super T> fn); @Override IntMap<R> map(Function<? super T, ? extends R> fn); @Override IntMap<R> flatMap(Function<? super T, ? extends ImmutableList<? extends R>> fn); @Override IntMap<R> concatMap(Function<? super T, ? extends Iterable<? extends R>> fn); @Override IntMap<R> mergeMap(Function<? super T, ? extends Publisher<? extends R>> fn); @Override IntMap<R> mergeMap(int maxConcurecy, Function<? super T, ? extends Publisher<? extends R>> fn); @Override IntMap<T> replaceFirst(T currentElement, T newElement); @Override IntMap<T> subList(int start, int end); @Override IntMap<U> ofType(Class<? extends U> type); @Override IntMap<T> filterNot(Predicate<? super T> predicate); @Override IntMap<T> notNull(); @Override IntMap<T> peek(Consumer<? super T> c); @Override IntMap<T> removeStream(Stream<? extends T> stream); @Override IntMap<T> retainAll(Iterable<? extends T> it); @Override IntMap<T> retainStream(Stream<? extends T> stream); @Override IntMap<T> retainAll(T... values); @Override IntMap<ReactiveSeq<T>> permutations(); @Override IntMap<ReactiveSeq<T>> combinations(int size); @Override IntMap<ReactiveSeq<T>> combinations(); @Override IntMap<R> zip(BiFunction<? super T, ? super T2, ? extends R> fn, Publisher<? extends T2> publisher); @Override IntMap<R> zipWithStream(Stream<? extends U> other, BiFunction<? super T, ? super U, ? extends R> zipper); @Override IntMap<Tuple2<T, U>> zipWithPublisher(Publisher<? extends U> other); @Override IntMap<Tuple2<T, U>> zip(Iterable<? extends U> other); @Override IntMap<R> zip3(Iterable<? extends S> second, Iterable<? extends U> third, Function3<? super T, ? super S, ? super U, ? extends R> fn3); @Override IntMap<R> zip4(Iterable<? extends T2> second, Iterable<? extends T3> third, Iterable<? extends T4> fourth, Function4<? super T, ? super T2, ? super T3, ? super T4, ? extends R> fn); @Override IntMap<T> combine(BiPredicate<? super T, ? super T> predicate, BinaryOperator<T> op); @Override IntMap<T> combine(Monoid<T> op, BiPredicate<? super T, ? super T> predicate); @Override IntMap<T> cycle(long times); @Override IntMap<T> cycle(Monoid<T> m, long times); @Override IntMap<T> cycleWhile(Predicate<? super T> predicate); @Override IntMap<T> cycleUntil(Predicate<? super T> predicate); @Override IntMap<R> zip(Iterable<? extends U> other, BiFunction<? super T, ? super U, ? extends R> zipper); @Override IntMap<Tuple3<T, S, U>> zip3(Iterable<? extends S> second, Iterable<? extends U> third); @Override IntMap<Tuple4<T, T2, T3, T4>> zip4(Iterable<? extends T2> second, Iterable<? extends T3> third, Iterable<? extends T4> fourth); @Override IntMap<Tuple2<T, Long>> zipWithIndex(); @Override IntMap<Seq<T>> sliding(int windowSize); @Override IntMap<Seq<T>> sliding(int windowSize, int increment); @Override IntMap<C> grouped(int size, Supplier<C> supplier); @Override IntMap<Vector<T>> groupedUntil(Predicate<? super T> predicate); @Override IntMap<Vector<T>> groupedUntil(BiPredicate<Vector<? super T>, ? super T> predicate); @Override IntMap<Tuple2<T, U>> zipWithStream(Stream<? extends U> other); @Override IntMap<Vector<T>> groupedWhile(Predicate<? super T> predicate); @Override IntMap<C> groupedWhile(Predicate<? super T> predicate, Supplier<C> factory); @Override IntMap<C> groupedUntil(Predicate<? super T> predicate, Supplier<C> factory); @Override IntMap<Vector<T>> grouped(int groupSize); @Override IntMap<T> distinct(); @Override IntMap<T> scanLeft(Monoid<T> monoid); @Override IntMap<U> scanLeft(U seed, BiFunction<? super U, ? super T, ? extends U> function); @Override IntMap<T> scanRight(Monoid<T> monoid); @Override IntMap<U> scanRight(U identity, BiFunction<? super T, ? super U, ? extends U> combiner); @Override IntMap<T> sorted(); @Override IntMap<T> sorted(Comparator<? super T> c); @Override IntMap<T> takeWhile(Predicate<? super T> p); @Override IntMap<T> dropWhile(Predicate<? super T> p); @Override IntMap<T> takeUntil(Predicate<? super T> p); @Override IntMap<T> dropUntil(Predicate<? super T> p); @Override IntMap<T> dropRight(int num); @Override IntMap<T> takeRight(int num); @Override IntMap<T> intersperse(T value); @Override IntMap<T> shuffle(); @Override IntMap<T> shuffle(Random random); @Override IntMap<T> slice(long from, long to); @Override IntMap<T> prependStream(Stream<? extends T> stream); @Override IntMap<T> appendAll(T... values); @Override IntMap<T> prependAll(T... values); @Override IntMap<T> deleteBetween(int start, int end); @Override IntMap<T> insertStreamAt(int pos, Stream<T> stream); @Override IntMap<T> sorted(Function<? super T, ? extends U> function); @Override R fold(Function<? super Some<T>, ? extends R> fn1, Function<? super None<T>, ? extends R> fn2); @Override IntMap<T> onEmpty(T value); @Override IntMap<T> onEmptyGet(Supplier<? extends T> supplier); @Override ImmutableList<T> onEmptySwitch(Supplier<? extends ImmutableList<T>> supplier); @Override IntMap<T> removeValue(T value); @Override IntMap<T> removeFirst(Predicate<? super T> pred); @Override IntMap<T> removeAt(long pos); @Override IntMap<T> insertAt(int pos, T... values); @Override IntMap<T> insertAt(int pos, Iterable<? extends T> values); @Override IntMap<T> insertAt(int i, T value); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode();  }