All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.javagimmicks.collections.transformer.BidiTransformingRing Maven / Gradle / Ivy

There is a newer version: 0.99-alpha1
Show newest version
package net.sf.javagimmicks.collections.transformer;

import net.sf.javagimmicks.collections.Ring;
import net.sf.javagimmicks.collections.RingCursor;
import net.sf.javagimmicks.transform.BidiFunction;
import net.sf.javagimmicks.transform.BidiTransforming;

class BidiTransformingRing
   extends TransformingRing
   implements BidiTransforming
{
   /**
    * @deprecated Use TranformerUtils.decorate() instead
    */
   @Deprecated
   public BidiTransformingRing(Ring ring, BidiFunction tansformer)
   {
      super(ring, tansformer);
   }
   
   public BidiFunction getTransformerBidiFunction()
   {
      return (BidiFunction)getTransformerFunction();
   }

   @Override
   public RingCursor cursor()
   {
      return TransformerUtils.decorate(_internalRing.cursor(), getTransformerBidiFunction());
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy