public class BitLocation
extends Object
Constructor and Description |
---|
BitLocation(int frameIdx,
int bitIdx)
Constructs a new bit location - an object that will uniquely identify a bit within
a configuration block.
|
BitLocation(int frameIdx,
int bitIdx,
boolean isInverted)
Constructs a new bit location - an object that will uniquely identify a bit within
a configuration block.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Checks if this is equal to another bit location, bit index, frame index and
the inverted flag must all be equal to get true.
|
int |
getBitIdx()
Gets the bit index (index within the configuration frame)
|
int |
getFrameIdx()
Gets the frame index (index of the frame within the configuration Block)
|
int |
hashCode()
Provides a hash composed of the bit index, frame index and inverted flag.
|
boolean |
isInverted()
Checks if the inverted flag is set
|
String |
toString() |
public BitLocation(int frameIdx, int bitIdx)
frameIdx
- Index of the frame within a blockbitIdx
- Index of the bit within the framepublic BitLocation(int frameIdx, int bitIdx, boolean isInverted)
frameIdx
- Index of the frame within a blockbitIdx
- Index of the bit within the frameisInverted
- Flag indicating if the bit is invertedpublic int getFrameIdx()
public int getBitIdx()
public boolean isInverted()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object