net.sf.javagimmicks.collections8.transformer.BidiTransformingRingCursor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gimmicks Show documentation
Show all versions of gimmicks Show documentation
Utility classes, APIs and tools for Java
package net.sf.javagimmicks.collections8.transformer;
import net.sf.javagimmicks.collections8.RingCursor;
import net.sf.javagimmicks.transform8.BidiFunction;
import net.sf.javagimmicks.transform8.BidiTransforming;
class BidiTransformingRingCursor
extends TransformingRingCursor
implements BidiTransforming
{
BidiTransformingRingCursor(RingCursor ringCursor, BidiFunction transformer)
{
super(ringCursor, transformer);
}
public BidiFunction getTransformerBidiFunction()
{
return (BidiFunction)getTransformerFunction();
}
@Override
public void insertAfter(T value)
{
_internalRingCursor.insertAfter(getTransformerBidiFunction().applyReverse(value));
}
@Override
public void insertBefore(T value)
{
_internalRingCursor.insertBefore(getTransformerBidiFunction().applyReverse(value));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy