|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.io.Locator
public class Locator
A Locator consists of a position and a SourceId.
| Nested Class Summary | |
|---|---|
static class |
Locator.CompactStreamer
A Streamer capable of converting a Locator to
and from byte representation. |
| Constructor Summary | |
|---|---|
Locator(long pos,
SourceId fsi)
|
|
| Method Summary | |
|---|---|
int |
compareTo(Locator l)
Returns a negative integer if this Locator has a position
less than the argument Locator, zero if they have the same
position and a positive integer if this Locator has a
position greater than the argument Locator. |
boolean |
equals(Object o)
|
static org.planx.msd.Discriminator<Locator> |
getDiscriminator(org.planx.msd.Memory memory)
Returns a Discriminator capable of multiset discrimination
of Locators. |
static SizeStreamer<Locator> |
getStreamer()
Returns a Streamer capable of converting a Locator
to and from byte representation. |
int |
hashCode()
|
SourceId |
id()
Returns the SourceId associated with this Locator
or null if none is associated. |
Locator |
location()
Returns this Locator. |
long |
position()
Returns the position of this locator. |
void |
setId(SourceId fsi)
Sets the SourceId of this locator. |
void |
setPosition(long pos)
Sets the position of this locator. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Locator(long pos,
SourceId fsi)
| Method Detail |
|---|
public Locator location()
Locator.
location in interface Locatablepublic long position()
public void setPosition(long pos)
public SourceId id()
SourceId associated with this Locator
or null if none is associated.
public void setId(SourceId fsi)
SourceId of this locator.
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Locator l)
Locator has a position
less than the argument Locator, zero if they have the same
position and a positive integer if this Locator has a
position greater than the argument Locator.
compareTo in interface Comparable<Locator>public String toString()
toString in class Objectpublic static SizeStreamer<Locator> getStreamer()
Streamer capable of converting a Locator
to and from byte representation. The streamer is not compatible with
data written by Locator.CompactStreamer.
public static org.planx.msd.Discriminator<Locator> getDiscriminator(org.planx.msd.Memory memory)
Discriminator capable of multiset discrimination
of Locators.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||