org.xerial.util.xml.index
Class ECN
java.lang.Object
org.xerial.util.xml.index.ECN
- All Implemented Interfaces:
- Comparable<ECN>
public class ECN
- extends Object
- implements Comparable<ECN>
This class implements the Extensible Composite Number (ECN).
- Author:
- leo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ECN
public ECN()
ECN
public ECN(String stringRepresentation)
add
public void add(int i)
- Parameters:
i - 8bit値
compareTo
public int compareTo(ECN other)
- ECNの値を比較
- Specified by:
compareTo in interface Comparable<ECN>
- Parameters:
other -
- Returns:
- 負ならthisのほうが小さい。0なら等しい。正ならotherの方が大きい
size
public int size()
- ECNの長さを返す
- Returns:
- ECNの長さ
get
public int get(int index)
- Parameters:
index -
- Returns:
- indexの位置のcompositeを返す

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.