Class BooleanAsByteArrTransformer

  • All Implemented Interfaces:
    Transformer<byte[],​java.lang.String>

    public final class BooleanAsByteArrTransformer
    extends java.lang.Object
    implements Transformer<byte[],​java.lang.String>
    • Constructor Detail

      • BooleanAsByteArrTransformer

        public BooleanAsByteArrTransformer()
    • Method Detail

      • transform

        @CanIgnoreReturnValue
        public BooleanAsByteArrTransformer transform​(byte[] payload,
                                                     Accumulator<byte[],​java.lang.String> accumulator)
        Description copied from interface: Transformer
        Returns transformer instance containing the payload after applying the transformation.
        Specified by:
        transform in interface Transformer<byte[],​java.lang.String>
        Parameters:
        payload - Value to be transformed
        accumulator - Accumulator of current iteration
        Returns:
        Transformer
      • hasNext

        public boolean hasNext()
        Description copied from interface: Transformer
        Returns whether current iteration has a successor.
        Specified by:
        hasNext in interface Transformer<byte[],​java.lang.String>
        Returns:
        boolean
      • getPayloadType

        public java.lang.reflect.Type getPayloadType()
        Description copied from interface: Transformer
        Returns Type of the payload.
        Specified by:
        getPayloadType in interface Transformer<byte[],​java.lang.String>
        Returns:
        Type of the payload
      • getResult

        public byte[] getResult()
        Description copied from interface: Transformer
        Returns payload after applying the transformation. The transform method should be called at least once before this method.
        Specified by:
        getResult in interface Transformer<byte[],​java.lang.String>
        Returns:
        Payload
      • getAccumulatorType

        public java.lang.reflect.Type getAccumulatorType()
        Description copied from interface: Transformer
        Returns Type representation of the accumulator. This method is used to serialize the accumulator in Gson.
        Specified by:
        getAccumulatorType in interface Transformer<byte[],​java.lang.String>
        Returns:
        Type representation of the accumulator
      • getInitialAccumulator

        public Accumulator<byte[],​java.lang.String> getInitialAccumulator​(byte[] referenceValue)
        Description copied from interface: Transformer
        Returns initial accumulator used in the first transformation.
        Specified by:
        getInitialAccumulator in interface Transformer<byte[],​java.lang.String>
        Parameters:
        referenceValue - reference value used in the initial accumulator
        Returns:
        Initial accumulator
      • getNextAccumulator

        public Accumulator<byte[],​java.lang.String> getNextAccumulator()
        Description copied from interface: Transformer
        Returns accumulator of next transformation.
        Specified by:
        getNextAccumulator in interface Transformer<byte[],​java.lang.String>
        Returns:
        Generic accumulator