org.xerial.util.xml.index
Class ECN

java.lang.Object
  extended by 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

Constructor Summary
ECN()
           
ECN(String stringRepresentation)
           
 
Method Summary
 void add(int i)
           
 int compareTo(ECN other)
          ECNの値を比較
 int get(int index)
           
 int size()
          ECNの長さを返す
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECN

public ECN()

ECN

public ECN(String stringRepresentation)
Method Detail

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を返す


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