类 Bits

  • 所有已实现的接口:
    java.lang.Cloneable, java.lang.Iterable<Bit>

    public class Bits
    extends java.lang.Object
    implements java.lang.Iterable<Bit>, java.lang.Cloneable
    Bits entity
    • 构造器详细资料

      • Bits

        public Bits()
    • 方法详细资料

      • inverse

        public static Bits inverse​(Bits x)
      • reverse

        public static Bits reverse​(Bits x)
      • lShift

        public Bits lShift​(int offset)
      • lShift

        public Bits lShift​(Bits offset)
      • rShift

        public Bits rShift​(int offset)
      • rShift

        public Bits rShift​(Bits offset)
      • rrShift

        public Bits rrShift​(int offset)
      • rrShift

        public Bits rrShift​(Bits offset)
      • toByteArray

        public byte[] toByteArray()
      • toByte

        public byte toByte()
      • toShortArray

        public short[] toShortArray()
      • toShort

        public short toShort()
      • toIntArray

        public int[] toIntArray()
      • toInt

        public int toInt()
      • toLongArray

        public long[] toLongArray()
      • plus

        public Bits plus​(Bit bit)
      • toLong

        public long toLong()
      • ofString

        public static Bits ofString​(java.lang.String txt)
      • ofRawString

        public static Bits ofRawString​(java.lang.String raw)
      • ofByte

        public static Bits ofByte​(byte val)
      • ofByte

        public static Bits ofByte​(byte val,
                                  int len)
      • ofByte

        public static Bits ofByte​(byte[] val)
      • ofShort

        public static Bits ofShort​(short val)
      • ofShort

        public static Bits ofShort​(short val,
                                   int len)
      • ofShort

        public static Bits ofShort​(short[] val)
      • ofInt

        public static Bits ofInt​(int val)
      • ofInt

        public static Bits ofInt​(int val,
                                 int len)
      • ofInt

        public static Bits ofInt​(int[] val)
      • getByte

        public Bits getByte​(int index)
      • getShort

        public Bits getShort​(int index)
      • getInt

        public Bits getInt​(int index)
      • getLong

        public Bits getLong​(int index)
      • length

        public int length()
      • byteLength

        public int byteLength()
      • shortLength

        public int shortLength()
      • intLength

        public int intLength()
      • longLength

        public int longLength()
      • ofLong

        public static Bits ofLong​(long val)
      • ofLong

        public static Bits ofLong​(long val,
                                  int len)
      • ofLong

        public static Bits ofLong​(long[] val)
      • ofZero

        public static Bits ofZero​(int len)
      • ofZero

        public static Bits ofZero()
      • ofOne

        public static Bits ofOne​(int len)
      • ofOne

        public static Bits ofOne()
      • ofBits

        public static Bits ofBits​(byte val,
                                  int len)
      • ofBits

        public static Bits ofBits​(short val,
                                  int len)
      • ofBits

        public static Bits ofBits​(int val,
                                  int len)
      • ofBits

        public static Bits ofBits​(long val,
                                  int len)
      • append

        public Bits append​(Bits other)
      • append

        public Bits append​(Bit bit)
      • subBits

        public Bits subBits​(int fromIndex,
                            int toIndex)
      • table

        @Deprecated
        public Bit[] table()
        已过时。
      • toArray

        public Bit[] toArray()
      • toList

        public java.util.List<Bit> toList()
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object
      • iterator

        public java.util.Iterator<Bit> iterator()
        指定者:
        iterator 在接口中 java.lang.Iterable<Bit>
      • get

        public Bit get​(int index)
      • set

        public Bit set​(int index,
                       Bit bit)
      • clone

        public Bits clone()
        覆盖:
        clone 在类中 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        覆盖:
        equals 在类中 java.lang.Object
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 java.lang.Object
      • copy

        public static void copy​(Bits src,
                                int srcPos,
                                Bits dest,
                                int destPos,
                                int length)