类 Bits
- java.lang.Object
-
- com.github.myibu.algorithm.data.Bits
-
public class Bits extends java.lang.ObjectBits entity
-
-
字段概要
字段 修饰符和类型 字段 说明 static intBYTE_SIZEstatic intINT_SIZEstatic intLONG_SIZEstatic intSHORT_SIZE
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static Bitsand(Bits x, Bits y)Bitsappend(Bits other)intbyteLength()BitsgetByte(int index)BitsgetInt(int index)BitsgetLong(int index)BitsgetShort(int index)intintLength()static Bitsinverse(Bits x)intlength()intlongLength()BitslShift(int offset)BitslShift(Bits offset)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(int len)static BitsofShort(short val)static BitsofShort(short[] val)static BitsofShort(short val, int len)static BitsofZero(int len)static Bitsor(Bits x, Bits y)BitsrrShift(int offset)BitsrrShift(Bits offset)BitsrShift(int offset)BitsrShift(Bits offset)intshortLength()BitssubBits(int fromIndex, int toIndex)bytetoByte()byte[]toByteArray()inttoInt()int[]toIntArray()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()
-
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)
-
ofOne
public static Bits ofOne(int len)
-
subBits
public Bits subBits(int fromIndex, int toIndex)
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-