Interface PrimitiveWrapper<W>

Type Parameters:
W - type of wrapped value
All Known Subinterfaces:
BooleanWrapper, IntWrapper, LongWrapper
All Known Implementing Classes:
BooleanWrapper.AtomicBooleanWrapper, BooleanWrapper.BooleanBooleanWrapper, IntWrapper.AtomicIntWrapper, IntWrapper.PrimitiveIntWrapper, LongWrapper.AtomicLongWrapper, LongWrapper.PrimitiveLongWrapper

public interface PrimitiveWrapper<W>
Mutable wrapper of a primitive type, this is mostly useful for passing these to lambdas.
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends W>
    Returns the primitive class wrapped by this one.
    Class<? extends W>
    Returns the java.lang primitive wrapper class corresponding to the one wrapped.
  • Method Details

    • getPrimitiveClass

      Class<? extends W> getPrimitiveClass()
      Returns the primitive class wrapped by this one.
      Returns:
      wrapped primitive class
    • getWrapperClass

      Class<? extends W> getWrapperClass()
      Returns the java.lang primitive wrapper class corresponding to the one wrapped.
      Returns:
      related java.lang primitive wrapper