Class Constant

  • All Implemented Interfaces:
    Operand

    public class Constant
    extends java.lang.Object
    implements Operand
    • Method Detail

      • valueOf

        public static Constant valueOf​(int size,
                                       long value)
      • valueOf

        public static Constant valueOf​(int size,
                                       java.math.BigInteger value)
      • bitOf

        public static Constant bitOf​(long value)
      • zero

        public static Constant zero​(int bits)
      • ones

        public static Constant ones​(int size)
      • ones

        public static Constant ones​(int size,
                                    int n)
      • getValue

        public java.math.BigInteger getValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object