|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.language.util.BitUtil
Utilities for the bitset class.
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public
License (GPL) , no warranty
| Method Summary | |
static java.util.BitSet |
fromBoolean(boolean value)
returns a one-size BitSet with value |
static java.util.BitSet |
fromByteArray(byte[] bytes)
|
static java.util.BitSet |
fromInt(int value,
int length)
returns the bitset of an integer value |
static java.util.BitSet |
fromInteger(java.lang.Integer value,
int length)
returns the bitset of an integer value |
static java.util.BitSet |
fromString(java.lang.String value)
constructs a new BitSet from a string in the "110110" format. |
static byte[] |
toByteArray(java.util.BitSet bits)
|
static int |
toInt(java.util.BitSet bits,
int length)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static byte[] toByteArray(java.util.BitSet bits)
bits - the bitset to convert
public static int toInt(java.util.BitSet bits,
int length)
bits - the bitset to convertlength - the length of the set
public static java.util.BitSet fromString(java.lang.String value)
value - the value
public static java.util.BitSet fromByteArray(byte[] bytes)
bytes - the byteArray
public static java.util.BitSet fromInt(int value,
int length)
value - the valuelength - the length of the bitSet to produce
public static java.util.BitSet fromInteger(java.lang.Integer value,
int length)
value - the valuelength - the length of
public static java.util.BitSet fromBoolean(boolean value)
value - the value of the bitSet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||