Class MinValueRealTypes


  • public class MinValueRealTypes
    extends Object
    This collection of Ops can be used to obtain the minimum value of any RealType. This method of determining the minimum value of a RealType is preferable since it is safe and extensible.
    Author:
    Gabriel Selzer
    • Field Detail

      • minBitType

        public final Function<BitType,​BitType> minBitType
        Output parameters:
        minValue - a {@link BitType} containing the minimum value of a bit
        Input parameters:
        in - some {@link BitType}
        Implementation Note:
        op names='types.minValue'
      • minBoolType

        public final Function<BoolType,​BoolType> minBoolType
        Output parameters:
        minValue boolean - e} containing the minimum value of a boolean
        Input parameters:
        in - some {@link BoolType}
        Implementation Note:
        op names='types.minValue'
      • minNativeBoolType

        public final Function<NativeBoolType,​NativeBoolType> minNativeBoolType
        Output parameters:
        minValue boolean - oolType} containing the minimum value of a boolean
        Input parameters:
        in - some {@link NativeBoolType}
        Implementation Note:
        op names='types.minValue'
      • minByteType

        public final Function<ByteType,​ByteType> minByteType
        Output parameters:
        minValue - a {@link ByteType} containing the minimum value of a byte
        Input parameters:
        in - some {@link ByteType}
        Implementation Note:
        op names='types.minValue'
      • minUnsignedByteType

        public final Function<UnsignedByteType,​UnsignedByteType> minUnsignedByteType
        Output parameters:
        minValue an unsigned byte - } containing the minimum value of an unsigned byte
        Input parameters:
        in - some {@link UnsignedByteType}
        Implementation Note:
        op names='types.minValue'
      • minIntType

        public final Function<IntType,​IntType> minIntType
        Output parameters:
        minValue - a {@link IntType} containing the minimum value of an int
        Input parameters:
        in - some {@link IntType}
        Implementation Note:
        op names='types.minValue'
      • minUnsignedIntType

        public final Function<UnsignedIntType,​UnsignedIntType> minUnsignedIntType
        Output parameters:
        minValue an unsigned int - } containing the minimum value of an unsigned int
        Input parameters:
        in - some {@link UnsignedIntType}
        Implementation Note:
        op names='types.minValue'
      • minLongType

        public final Function<LongType,​LongType> minLongType
        Output parameters:
        minValue - a {@link LongType} containing the minimum value of a long
        Input parameters:
        in - some {@link LongType}
        Implementation Note:
        op names='types.minValue'
      • minUnsignedLongType

        public final Function<UnsignedLongType,​UnsignedLongType> minUnsignedLongType
        Output parameters:
        minValue an unsigned long - } containing the minimum value of an unsigned long
        Input parameters:
        in - some {@link UnsignedLongType}
        Implementation Note:
        op names='types.minValue'
      • minShortType

        public final Function<ShortType,​ShortType> minShortType
        Output parameters:
        minValue short - Type} containing the minimum value of a short
        Input parameters:
        in - some {@link ShortType}
        Implementation Note:
        op names='types.minValue'
      • minUnsignedShortType

        public final Function<UnsignedShortType,​UnsignedShortType> minUnsignedShortType
        Output parameters:
        minValue of an unsigned short - ontaining the minimum value of an unsigned short
        Input parameters:
        in - some {@link UnsignedShortType}
        Implementation Note:
        op names='types.minValue'
      • minFloatType

        public final Function<FloatType,​FloatType> minFloatType
        Output parameters:
        minValue 32-bit floating point value - inimum value of a 32-bit floating point value
        Input parameters:
        in - some {@link FloatType}
        Implementation Note:
        op names='types.minValue'
      • minDoubleType

        public final Function<DoubleType,​DoubleType> minDoubleType
        Output parameters:
        minValue 64-bit floating point value - minimum value of a 64-bit floating point value
        Input parameters:
        in - some {@link DoubleType}
        Implementation Note:
        op names='types.minValue'
      • min2BitType

        public final Function<Unsigned2BitType,​Unsigned2BitType> min2BitType
        Output parameters:
        minValue a 2-bit data structure - aining the minimum value of a 2-bit data structure
        Input parameters:
        in - some {@link Unsigned2BitType}
        Implementation Note:
        op names='types.minValue'
      • min4BitType

        public final Function<Unsigned4BitType,​Unsigned4BitType> min4BitType
        Output parameters:
        minValue a 4-bit data structure - aining the minimum value of a 4-bit data structure
        Input parameters:
        in - some {@link Unsigned4BitType}
        Implementation Note:
        op names='types.minValue'
      • min12BitType

        public final Function<Unsigned12BitType,​Unsigned12BitType> min12BitType
        Output parameters:
        minValue of a 12-bit data structure - ing the minimum value of a 12-bit data structure
        Input parameters:
        in - some {@link Unsigned12BitType}
        Implementation Note:
        op names='types.minValue'
      • min128BitType

        public final Function<Unsigned128BitType,​Unsigned128BitType> min128BitType
        Output parameters:
        minValue of a 128-bit data structure - ing the minimum value of a 128-bit data structure
        Input parameters:
        in - some {@link Unsigned128BitType}
        Implementation Note:
        op names='types.minValue'
      • minVarLengthType

        public final Function<UnsignedVariableBitLengthType,​UnsignedVariableBitLengthType> minVarLengthType
        Due to the variable length of this type, we cannot simply return some final value. The best we can do is quickly compute the answer. TODO: Is there some way we could cache the values? Is that worth it??
        Output parameters:
        minValue minimum value that can be stored in {@code in} - minimum value that can be stored in {@code in}
        Input parameters:
        in - some {@link UnsignedVariableBitLengthType}
        Implementation Note:
        op names='types.minValue'
    • Constructor Detail

      • MinValueRealTypes

        public MinValueRealTypes()