Class BitOperations

java.lang.Object
xyz.cofe.cxel.eval.op.BitOperations

public class BitOperations
extends java.lang.Object
Операции над битами
  • Constructor Summary

    Constructors 
    Constructor Description
    BitOperations()  
  • Method Summary

    Modifier and Type Method Description
    static long and​(long a, long b)  
    static long bitNot​(long a)  
    static long leftShift​(long a, int b)  
    static long or​(long a, long b)  
    static long rightShift​(long a, int b)  
    static long rrightShift​(long a, int b)  
    static long xor​(long a, long b)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • or

      public static long or​(long a, long b)
    • and

      public static long and​(long a, long b)
    • xor

      public static long xor​(long a, long b)
    • leftShift

      public static long leftShift​(long a, int b)
    • rightShift

      public static long rightShift​(long a, int b)
    • rrightShift

      public static long rrightShift​(long a, int b)
    • bitNot

      public static long bitNot​(long a)