biz.c24.io.api.data
Class BitMap.Part

java.lang.Object
  extended by biz.c24.io.api.data.BitMap.Part
All Implemented Interfaces:
C24Cloneable, Cloneable
Enclosing class:
BitMap

public static class BitMap.Part
extends Object
implements C24Cloneable

Class that represents the part of bit map construction.


Constructor Summary
BitMap.Part(int length, BitMapIndex parent)
          Constructs the bit map part with specified length and optional reference in other part.
 
Method Summary
 Object clone()
          Creates and returns a copy of this object.
 boolean equals(Object obj)
          Indicates whether some other object is "equal to" this one.
protected  byte[] getImage()
           
 int getLength()
          Gets the length of this part.
 BitMapIndex getParent()
          Returns the reference in another part.
 int hashCode()
          Returns a hash code value for this instance.
 String toString()
          Returns a string representation of this instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BitMap.Part

public BitMap.Part(int length,
                   BitMapIndex parent)
Constructs the bit map part with specified length and optional reference in other part. The reference may be null that means that this is proimary bit map part.

Parameters:
length - The length of this part.
parent - The reference within other part if any or null.
Method Detail

getLength

public int getLength()
Gets the length of this part.

Returns:
The length of this part (number of bits).

getParent

public BitMapIndex getParent()
Returns the reference in another part.

Returns:
The reference in another part or null.

clone

public Object clone()
Creates and returns a copy of this object.

Specified by:
clone in interface C24Cloneable
Overrides:
clone in class Object
Returns:
a clone of this instance.
See Also:
Cloneable

equals

public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class Object
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false - otherwise.
See Also:
hashCode(), Hashtable

hashCode

public int hashCode()
Returns a hash code value for this instance.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.
See Also:
equals(Object), Hashtable

toString

public String toString()
Returns a string representation of this instance.

Overrides:
toString in class Object
Returns:
a string representation of location.

getImage

protected byte[] getImage()


C24 Technologies © 2002-2012: All Rights Reserved.