@Test public void removeValue(){ assertThat(of(1,2,3).removeValue(0),equalTo(of(1,2,3))); }
@Override public HashSet<T> removeValue(T value) { return new HashSet<>(map.minus(0,value.hashCode(),value)); }
HashSet implements  ImmutableSet<T>,Higher<hashSet,T> , Serializable { @Override public HashSet<T> removeValue(T value) { return new HashSet<>(map.minus(0,value.hashCode(),value)); } }
HashSet implements  ImmutableSet<T>,Higher<hashSet,T> , Serializable { @Override public HashSet<T> removeValue(T value) { return new HashSet<>(map.minus(0,value.hashCode(),value)); }  }
HashSet implements  ImmutableSet<T>,Higher<hashSet,T> , Serializable { @Override public HashSet<T> removeValue(T value) { return new HashSet<>(map.minus(0,value.hashCode(),value)); }  static HashSet<T> empty(); static HashSet<T> singleton(T value); static HashSet<T> of(T... values); static HashSet<T> unfold(final U seed, final Function<? super U, Option<Tuple2<T, U>>> unfolder); static HashSet<T> iterate(final T seed, Predicate<? super T> pred, final UnaryOperator<T> f); static HashSet<T> iterate(final T seed, final UnaryOperator<T> f,int max); static Tuple2<HashSet<T>, HashSet<U>> unzip(final HashSet<Tuple2<T, U>> sequence); static HashSet<T> generate(Supplier<T> s, int max); @Deprecated static HashSet<T> generate(Generator<T> s); static HashSet<Integer> range(final int start, final int end); static HashSet<Integer> range(final int start, final int step, final int end); static HashSet<Long> rangeLong(final long start, final long step, final long end); static HashSet<Long> rangeLong(final long start, final long end); static HashSet<T> fromStream(Stream<T> stream); static HashSet<T> fromIterable(Iterable<T> it); static HashSet<T> fromIterator(Iterator<T> it); @Override HashSet<R> unitIterable(Iterable<R> it); boolean containsValue(T value); @Override int size(); @Override HashSet<T> add(T value); @Override HashSet<T> removeValue(T value); @Override boolean isEmpty(); @Override HashSet<R> map(Function<? super T, ? extends R> fn); @Override HashSet<R> flatMap(Function<? super T, ? extends ImmutableSet<? extends R>> fn); @Override HashSet<R> concatMap(Function<? super T, ? extends Iterable<? extends R>> fn); @Override HashSet<R> mergeMap(Function<? super T, ? extends Publisher<? extends R>> fn); @Override HashSet<R> mergeMap(int maxConcurecy, Function<? super T, ? extends Publisher<? extends R>> fn); @Override HashSet<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 HashSet<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 HashSet<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 HashSet<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 HashSet<R> forEach2(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends R> yieldingFunction); @Override HashSet<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 HashSet<T> filter(Predicate<? super T> predicate); @Override HashSet<R> unitStream(Stream<R> stream); HashSet<T> plus(T value); @Override HashSet<T> plusAll(Iterable<? extends T> list); @Override HashSet<T> removeAll(Iterable<? extends T> list); @Override ReactiveSeq<T> stream(); @Override Iterator<T> iterator(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); HashSet<T> take(final long n); HashSet<T> takeWhile(Predicate<? super T> p); HashSet<T> dropWhile(Predicate<? super T> p); HashSet<T> drop(final long num); HashSet<T> reverse(); Tuple2<HashSet<T>,HashSet<T>> duplicate(); Tuple2<HashSet<R1>, HashSet<R2>> unzip(Function<? super T, Tuple2<? extends R1, ? extends R2>> fn); @Override HashSet<T> removeFirst(Predicate<? super T> pred); HashSet<T> append(T append); HashSet<T> appendAll(Iterable<? extends T> it); R foldLeft(R zero, BiFunction<R, ? super T, R> f); @Override HashSet<U> ofType(Class<? extends U> type); @Override HashSet<T> filterNot(Predicate<? super T> predicate); @Override HashSet<T> notNull(); @Override HashSet<T> peek(Consumer<? super T> c); @Override HashSet<T> removeStream(Stream<? extends T> stream); @Override HashSet<T> retainAll(Iterable<? extends T> it); @Override HashSet<T> retainStream(Stream<? extends T> stream); @Override HashSet<T> retainAll(T... values); @Override HashSet<ReactiveSeq<T>> permutations(); @Override HashSet<ReactiveSeq<T>> combinations(int size); @Override HashSet<ReactiveSeq<T>> combinations(); @Override HashSet<R> zip(BiFunction<? super T, ? super T2, ? extends R> fn, Publisher<? extends T2> publisher); @Override HashSet<R> zipWithStream(Stream<? extends U> other, BiFunction<? super T, ? super U, ? extends R> zipper); @Override HashSet<Tuple2<T, U>> zipWithPublisher(Publisher<? extends U> other); @Override HashSet<Tuple2<T, U>> zip(Iterable<? extends U> other); @Override HashSet<R> zip3(Iterable<? extends S> second, Iterable<? extends U> third, Function3<? super T, ? super S, ? super U, ? extends R> fn3); @Override HashSet<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 HashSet<T> combine(BiPredicate<? super T, ? super T> predicate, BinaryOperator<T> op); @Override HashSet<T> combine(Monoid<T> op, BiPredicate<? super T, ? super T> predicate); @Override HashSet<T> cycle(long times); @Override HashSet<T> cycle(Monoid<T> m, long times); @Override HashSet<T> cycleWhile(Predicate<? super T> predicate); @Override HashSet<T> cycleUntil(Predicate<? super T> predicate); @Override HashSet<R> zip(Iterable<? extends U> other, BiFunction<? super T, ? super U, ? extends R> zipper); @Override HashSet<Tuple3<T, S, U>> zip3(Iterable<? extends S> second, Iterable<? extends U> third); @Override HashSet<Tuple4<T, T2, T3, T4>> zip4(Iterable<? extends T2> second, Iterable<? extends T3> third, Iterable<? extends T4> fourth); @Override HashSet<Tuple2<T, Long>> zipWithIndex(); @Override HashSet<Seq<T>> sliding(int windowSize); @Override HashSet<Seq<T>> sliding(int windowSize, int increment); @Override HashSet<C> grouped(int size, Supplier<C> supplier); @Override HashSet<Vector<T>> groupedUntil(Predicate<? super T> predicate); @Override HashSet<Vector<T>> groupedUntil(BiPredicate<Vector<? super T>, ? super T> predicate); @Override HashSet<Tuple2<T, U>> zipWithStream(Stream<? extends U> other); @Override HashSet<Vector<T>> groupedWhile(Predicate<? super T> predicate); @Override HashSet<C> groupedWhile(Predicate<? super T> predicate, Supplier<C> factory); @Override HashSet<C> groupedUntil(Predicate<? super T> predicate, Supplier<C> factory); @Override HashSet<Vector<T>> grouped(int groupSize); @Override HashSet<T> distinct(); @Override HashSet<T> scanLeft(Monoid<T> monoid); @Override HashSet<U> scanLeft(U seed, BiFunction<? super U, ? super T, ? extends U> function); @Override HashSet<T> scanRight(Monoid<T> monoid); @Override HashSet<U> scanRight(U identity, BiFunction<? super T, ? super U, ? extends U> combiner); @Override HashSet<T> sorted(); @Override HashSet<T> sorted(Comparator<? super T> c); @Override HashSet<T> takeUntil(Predicate<? super T> p); @Override HashSet<T> dropUntil(Predicate<? super T> p); @Override HashSet<T> dropRight(int num); @Override HashSet<T> takeRight(int num); @Override HashSet<T> intersperse(T value); @Override HashSet<T> shuffle(); @Override HashSet<T> shuffle(Random random); @Override HashSet<T> slice(long from, long to); @Override HashSet<T> prependStream(Stream<? extends T> stream); @Override HashSet<T> appendAll(T... values); @Override HashSet<T> prependAll(T... values); @Override HashSet<T> deleteBetween(int start, int end); @Override HashSet<T> insertStreamAt(int pos, Stream<T> stream); @Override HashSet<T> sorted(Function<? super T, ? extends U> function); String mkString(); @Override HashSet<T> onEmpty(T value); @Override HashSet<T> onEmptyGet(Supplier<? extends T> supplier); @Override HashSet<T> removeAll(T... values); @Override HashSet<T> prepend(T value); @Override HashSet<T> removeAt(long pos); @Override HashSet<T> prependAll(Iterable<? extends T> value); @Override HashSet<T> updateAt(int pos, T value); @Override HashSet<T> insertAt(int pos, Iterable<? extends T> values); @Override HashSet<T> insertAt(int i, T value); @Override HashSet<T> insertAt(int pos, T... values); }
HashSet implements  ImmutableSet<T>,Higher<hashSet,T> , Serializable { @Override public HashSet<T> removeValue(T value) { return new HashSet<>(map.minus(0,value.hashCode(),value)); }  static HashSet<T> empty(); static HashSet<T> singleton(T value); static HashSet<T> of(T... values); static HashSet<T> unfold(final U seed, final Function<? super U, Option<Tuple2<T, U>>> unfolder); static HashSet<T> iterate(final T seed, Predicate<? super T> pred, final UnaryOperator<T> f); static HashSet<T> iterate(final T seed, final UnaryOperator<T> f,int max); static Tuple2<HashSet<T>, HashSet<U>> unzip(final HashSet<Tuple2<T, U>> sequence); static HashSet<T> generate(Supplier<T> s, int max); @Deprecated static HashSet<T> generate(Generator<T> s); static HashSet<Integer> range(final int start, final int end); static HashSet<Integer> range(final int start, final int step, final int end); static HashSet<Long> rangeLong(final long start, final long step, final long end); static HashSet<Long> rangeLong(final long start, final long end); static HashSet<T> fromStream(Stream<T> stream); static HashSet<T> fromIterable(Iterable<T> it); static HashSet<T> fromIterator(Iterator<T> it); @Override HashSet<R> unitIterable(Iterable<R> it); boolean containsValue(T value); @Override int size(); @Override HashSet<T> add(T value); @Override HashSet<T> removeValue(T value); @Override boolean isEmpty(); @Override HashSet<R> map(Function<? super T, ? extends R> fn); @Override HashSet<R> flatMap(Function<? super T, ? extends ImmutableSet<? extends R>> fn); @Override HashSet<R> concatMap(Function<? super T, ? extends Iterable<? extends R>> fn); @Override HashSet<R> mergeMap(Function<? super T, ? extends Publisher<? extends R>> fn); @Override HashSet<R> mergeMap(int maxConcurecy, Function<? super T, ? extends Publisher<? extends R>> fn); @Override HashSet<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 HashSet<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 HashSet<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 HashSet<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 HashSet<R> forEach2(Function<? super T, ? extends Iterable<R1>> iterable1, BiFunction<? super T, ? super R1, ? extends R> yieldingFunction); @Override HashSet<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 HashSet<T> filter(Predicate<? super T> predicate); @Override HashSet<R> unitStream(Stream<R> stream); HashSet<T> plus(T value); @Override HashSet<T> plusAll(Iterable<? extends T> list); @Override HashSet<T> removeAll(Iterable<? extends T> list); @Override ReactiveSeq<T> stream(); @Override Iterator<T> iterator(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); HashSet<T> take(final long n); HashSet<T> takeWhile(Predicate<? super T> p); HashSet<T> dropWhile(Predicate<? super T> p); HashSet<T> drop(final long num); HashSet<T> reverse(); Tuple2<HashSet<T>,HashSet<T>> duplicate(); Tuple2<HashSet<R1>, HashSet<R2>> unzip(Function<? super T, Tuple2<? extends R1, ? extends R2>> fn); @Override HashSet<T> removeFirst(Predicate<? super T> pred); HashSet<T> append(T append); HashSet<T> appendAll(Iterable<? extends T> it); R foldLeft(R zero, BiFunction<R, ? super T, R> f); @Override HashSet<U> ofType(Class<? extends U> type); @Override HashSet<T> filterNot(Predicate<? super T> predicate); @Override HashSet<T> notNull(); @Override HashSet<T> peek(Consumer<? super T> c); @Override HashSet<T> removeStream(Stream<? extends T> stream); @Override HashSet<T> retainAll(Iterable<? extends T> it); @Override HashSet<T> retainStream(Stream<? extends T> stream); @Override HashSet<T> retainAll(T... values); @Override HashSet<ReactiveSeq<T>> permutations(); @Override HashSet<ReactiveSeq<T>> combinations(int size); @Override HashSet<ReactiveSeq<T>> combinations(); @Override HashSet<R> zip(BiFunction<? super T, ? super T2, ? extends R> fn, Publisher<? extends T2> publisher); @Override HashSet<R> zipWithStream(Stream<? extends U> other, BiFunction<? super T, ? super U, ? extends R> zipper); @Override HashSet<Tuple2<T, U>> zipWithPublisher(Publisher<? extends U> other); @Override HashSet<Tuple2<T, U>> zip(Iterable<? extends U> other); @Override HashSet<R> zip3(Iterable<? extends S> second, Iterable<? extends U> third, Function3<? super T, ? super S, ? super U, ? extends R> fn3); @Override HashSet<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 HashSet<T> combine(BiPredicate<? super T, ? super T> predicate, BinaryOperator<T> op); @Override HashSet<T> combine(Monoid<T> op, BiPredicate<? super T, ? super T> predicate); @Override HashSet<T> cycle(long times); @Override HashSet<T> cycle(Monoid<T> m, long times); @Override HashSet<T> cycleWhile(Predicate<? super T> predicate); @Override HashSet<T> cycleUntil(Predicate<? super T> predicate); @Override HashSet<R> zip(Iterable<? extends U> other, BiFunction<? super T, ? super U, ? extends R> zipper); @Override HashSet<Tuple3<T, S, U>> zip3(Iterable<? extends S> second, Iterable<? extends U> third); @Override HashSet<Tuple4<T, T2, T3, T4>> zip4(Iterable<? extends T2> second, Iterable<? extends T3> third, Iterable<? extends T4> fourth); @Override HashSet<Tuple2<T, Long>> zipWithIndex(); @Override HashSet<Seq<T>> sliding(int windowSize); @Override HashSet<Seq<T>> sliding(int windowSize, int increment); @Override HashSet<C> grouped(int size, Supplier<C> supplier); @Override HashSet<Vector<T>> groupedUntil(Predicate<? super T> predicate); @Override HashSet<Vector<T>> groupedUntil(BiPredicate<Vector<? super T>, ? super T> predicate); @Override HashSet<Tuple2<T, U>> zipWithStream(Stream<? extends U> other); @Override HashSet<Vector<T>> groupedWhile(Predicate<? super T> predicate); @Override HashSet<C> groupedWhile(Predicate<? super T> predicate, Supplier<C> factory); @Override HashSet<C> groupedUntil(Predicate<? super T> predicate, Supplier<C> factory); @Override HashSet<Vector<T>> grouped(int groupSize); @Override HashSet<T> distinct(); @Override HashSet<T> scanLeft(Monoid<T> monoid); @Override HashSet<U> scanLeft(U seed, BiFunction<? super U, ? super T, ? extends U> function); @Override HashSet<T> scanRight(Monoid<T> monoid); @Override HashSet<U> scanRight(U identity, BiFunction<? super T, ? super U, ? extends U> combiner); @Override HashSet<T> sorted(); @Override HashSet<T> sorted(Comparator<? super T> c); @Override HashSet<T> takeUntil(Predicate<? super T> p); @Override HashSet<T> dropUntil(Predicate<? super T> p); @Override HashSet<T> dropRight(int num); @Override HashSet<T> takeRight(int num); @Override HashSet<T> intersperse(T value); @Override HashSet<T> shuffle(); @Override HashSet<T> shuffle(Random random); @Override HashSet<T> slice(long from, long to); @Override HashSet<T> prependStream(Stream<? extends T> stream); @Override HashSet<T> appendAll(T... values); @Override HashSet<T> prependAll(T... values); @Override HashSet<T> deleteBetween(int start, int end); @Override HashSet<T> insertStreamAt(int pos, Stream<T> stream); @Override HashSet<T> sorted(Function<? super T, ? extends U> function); String mkString(); @Override HashSet<T> onEmpty(T value); @Override HashSet<T> onEmptyGet(Supplier<? extends T> supplier); @Override HashSet<T> removeAll(T... values); @Override HashSet<T> prepend(T value); @Override HashSet<T> removeAt(long pos); @Override HashSet<T> prependAll(Iterable<? extends T> value); @Override HashSet<T> updateAt(int pos, T value); @Override HashSet<T> insertAt(int pos, Iterable<? extends T> values); @Override HashSet<T> insertAt(int i, T value); @Override HashSet<T> insertAt(int pos, T... values);  }