public class Position extends Object implements Comparable<Position>
ObjectStreamBuffer. Because
the buffer stores its contents in buckets, this position will refer to bucket and
item indexes.
This object is immutable. All methods which generate new state will return a new instance.
Bucket| Constructor and Description |
|---|
Position(int bucketIndex,
int itemIndex)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Position o) |
int |
getBucketIndex() |
int |
getItemIndex() |
public Position(int bucketIndex,
int itemIndex)
bucketIndex - the index of the bucket which contains the itemitemIndex - the item index between its bucketpublic int compareTo(Position o)
compareTo in interface Comparable<Position>public int getBucketIndex()
this position's bucket indexpublic int getItemIndex()
this position's item indexCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.