@Override T transform(F from) { return function.apply(from); } };
@Override public boolean equals(@NullableDecl Object object) { if (object instanceof FunctionBasedConverter) { FunctionBasedConverter<?, ?> that = (FunctionBasedConverter<?, ?>) object; return this.forwardFunction.equals(that.forwardFunction) && this.backwardFunction.equals(that.backwardFunction); } return false; }
@Override T transform(F from) { return function.apply(from); } };
@Override public Iterable<T> children(T root) { return nodeToChildrenFunction.apply(root); } };
@Override public boolean equals(@NullableDecl Object obj) { if (obj == this) { return true; } if (obj instanceof FunctionalEquivalence) { FunctionalEquivalence<?, ?> that = (FunctionalEquivalence<?, ?>) obj; return function.equals(that.function) && resultEquivalence.equals(that.resultEquivalence); } return false; }
@Override T transform(F from) { return function.apply(from); } };
@Override public boolean equals(@NullableDecl Object obj) { if (obj instanceof SupplierComposition) { SupplierComposition<?, ?> that = (SupplierComposition<?, ?>) obj; return function.equals(that.function) && supplier.equals(that.supplier); } return false; }
@Override public V2 transformEntry(K key, V1 value) { return function.apply(value); } };
@Override public boolean equals(@NullableDecl Object object) { if (object == this) { return true; } if (object instanceof ByFunctionOrdering) { ByFunctionOrdering<?, ?> that = (ByFunctionOrdering<?, ?>) object; return this.function.equals(that.function) && this.ordering.equals(that.ordering); } return false; }
@Override protected X mapException(Exception e) { return mapper.apply(e); } }
@Override public boolean equals(@NullableDecl Object obj) { if (obj instanceof CompositionPredicate) { CompositionPredicate<?, ?> that = (CompositionPredicate<?, ?>) obj; return f.equals(that.f) && p.equals(that.p); } return false; }
@Override protected B doForward(A a) { return forwardFunction.apply(a); }
@Override protected A doBackward(B b) { return backwardFunction.apply(b); }
private O applyTransformation(I input) throws ExecutionException { try { return function.apply(input); } catch (Throwable t) { throw new ExecutionException(t); } } };
@Override public T remove(int index) { return function.apply(fromList.remove(index)); }
@Override public T get(int index) { return function.apply(fromList.get(index)); }