public class ArrayMask extends Object
| Constructor and Description |
|---|
ArrayMask()
Creates an array mask suitable for unserializing.
|
ArrayMask(int length)
Creates an array mask for an array of the specified length.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSet(int index)
Returns true if the specified array index should be non-null.
|
void |
readFrom(ObjectInputStream in)
Reads this mask from the specified input stream.
|
void |
set(int index)
Sets the bit indicating that the specified array index is non-null.
|
void |
writeTo(ObjectOutputStream out)
Writes this mask to the specified output stream.
|
public ArrayMask()
public ArrayMask(int length)
public void set(int index)
public boolean isSet(int index)
public void writeTo(ObjectOutputStream out) throws IOException
IOExceptionpublic void readFrom(ObjectInputStream in) throws IOException
IOExceptionCopyright © 2015. All rights reserved.