类 Bits
- java.lang.Object
-
- com.github.myibu.algorithm.data.Bits
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classBits.Decoderstatic classBits.Encoder
-
字段概要
字段 修饰符和类型 字段 说明 static intBYTE_SIZEstatic intINT_SIZEstatic intLONG_SIZEstatic intSHORT_SIZE
-
构造器概要
构造器 构造器 说明 Bits()
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static Bitsand(Bits x, Bits y)Bitsappend(Bit bit)Bitsappend(Bits other)intbyteLength()Bitsclone()static voidcopy(Bits src, int srcPos, Bits dest, int destPos, int length)booleanequals(java.lang.Object o)Bitget(int index)BitsgetByte(int index)BitsgetInt(int index)BitsgetLong(int index)BitsgetShort(int index)inthashCode()intintLength()static Bitsinverse(Bits x)java.util.Iterator<Bit>iterator()intlength()intlongLength()BitslShift(int offset)BitslShift(Bits offset)static BitsofBits(byte val, int len)static BitsofBits(int val, int len)static BitsofBits(long val, int len)static BitsofBits(short val, int len)static BitsofByte(byte val)static BitsofByte(byte[] val)static BitsofByte(byte val, int len)static BitsofInt(int val)static BitsofInt(int[] val)static BitsofInt(int val, int len)static BitsofLong(long val)static BitsofLong(long[] val)static BitsofLong(long val, int len)static BitsofOne()static BitsofOne(int len)static BitsofRawString(java.lang.String raw)static BitsofShort(short val)static BitsofShort(short[] val)static BitsofShort(short val, int len)static BitsofString(java.lang.String txt)static BitsofZero()static BitsofZero(int len)static Bitsor(Bits x, Bits y)Bitsplus(Bit bit)static Bitsreverse(Bits x)BitsrrShift(int offset)BitsrrShift(Bits offset)BitsrShift(int offset)BitsrShift(Bits offset)Bitset(int index, Bit bit)intshortLength()BitssubBits(int fromIndex, int toIndex)Bit[]table()已过时。Bit[]toArray()bytetoByte()byte[]toByteArray()inttoInt()int[]toIntArray()java.util.List<Bit>toList()longtoLong()long[]toLongArray()shorttoShort()short[]toShortArray()java.lang.StringtoString()static Bitsxor(Bits x, Bits y)
-
-
-
方法详细资料
-
lShift
public Bits lShift(int offset)
-
rShift
public Bits rShift(int offset)
-
rrShift
public Bits rrShift(int 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()
-
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)
-
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
-
get
public Bit get(int index)
-
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
-
-