net.sf.javagimmicks.collections8.transformer.BidiTransformingSpliterator Maven / Gradle / Ivy
package net.sf.javagimmicks.collections8.transformer;
import java.util.Comparator;
import java.util.Spliterator;
import net.sf.javagimmicks.transform8.BidiFunction;
import net.sf.javagimmicks.transform8.BidiTransforming;
class BidiTransformingSpliterator extends TransformingSpliterator implements BidiTransforming
{
BidiTransformingSpliterator(final Spliterator internalSpliterator, final BidiFunction transformer)
{
super(internalSpliterator, transformer);
}
@Override
public BidiFunction getTransformerBidiFunction()
{
return (BidiFunction) getTransformerFunction();
}
@Override
public Comparator super T> getComparator()
{
return TransformerUtils.decorate(_internalSpliterator.getComparator(), getTransformerBidiFunction().invert());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy