Class BooleanUtils

java.lang.Object
com.illumon.util.BooleanUtils
Direct Known Subclasses:
BooleanUtils

public class BooleanUtils
extends Object
Utilities for translating boxed Booleans to/from primitive bytes.
  • Field Details

  • Constructor Details

  • Method Details

    • byteAsBoolean

      public static Boolean byteAsBoolean​(byte byteValue)
      Convert byteValue to a Boolean.
      Parameters:
      byteValue - the byte to convert to a boxed boolean
      Returns:
      the boxed boolean represented by byteValue
    • booleanAsByte

      public static byte booleanAsByte​(Boolean booleanValue)
      Convert booleanValue to a byte.
      Parameters:
      booleanValue - the boxed boolean value to convert to a byte
      Returns:
      booleanValue represented as a byte