Module com.s8.api

Class Bool64

java.lang.Object
com.s8.api.bytes.Bool64

public class Bool64 extends Object
A utility class for handling bitwise boolean operations
Author:
Pierre Convert Copyright (c) 2025, Pierre Convert. All rights reserved.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
    static final long
    Available event channels
  • Constructor Summary

    Constructors
    Constructor
    Description
    Bool64(long value)
    Main constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    has(long mask)
    Test whether bits of the mask argument are present in the long value
    static boolean
    has(long value, long mask)
    Test whether bits of the mask argument are present in the long value
    boolean
    hasAllOf(long... masks)
    Test whether all bits of all masks passed as arguments are present in the long value
    boolean
    hasOneOf(long... masks)
    Test different masks on the next byte

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Bool64

      public Bool64(long value)
      Main constructor
      Parameters:
      value - the final value to be tested
  • Method Details

    • has

      public boolean has(long mask)
      Test whether bits of the mask argument are present in the long value
      Parameters:
      mask - the mask to be tested against
      Returns:
      boolean true if is matching, false otherwise
    • has

      public static boolean has(long value, long mask)
      Test whether bits of the mask argument are present in the long value
      Parameters:
      value - the value to be tested
      mask - the mask to be looked up
      Returns:
      boolean true if is matching, false otherwise
    • hasOneOf

      public boolean hasOneOf(long... masks)
      Test different masks on the next byte
      Parameters:
      masks - the masks to be tested
      Returns:
      true if one of the mask is present
    • hasAllOf

      public boolean hasAllOf(long... masks)
      Test whether all bits of all masks passed as arguments are present in the long value
      Parameters:
      masks - masks to be tested
      Returns:
      true if all masks have been found