public class LongContent extends Object implements Content<LongContent>
| Constructor and Description |
|---|
LongContent(long v) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(LongContent other)
Adding two values must result in a value that compares greater than or
equal to both input values.
|
LongContent |
clone()
Clones this value and produces another one that can be modified
independently.
|
int |
compareTo(LongContent o) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isOne() |
boolean |
isZero() |
void |
shiftRight(int n)
If n is larger than 62 then the value becomes zero.
|
String |
toString() |
long |
value() |
public long value()
public int compareTo(LongContent o)
compareTo in interface Comparable<LongContent>public void add(LongContent other)
AdditiveValueadd in interface AdditiveValue<LongContent>public LongContent clone()
AdditiveValueclone in interface AdditiveValue<LongContent>clone in class Objectpublic void shiftRight(int n)
BigInteger.shiftRight(int).shiftRight in interface Content<LongContent>public boolean isZero()
isZero in interface AdditiveValue<LongContent>public boolean isOne()
isOne in interface Content<LongContent>Copyright © 2014. All Rights Reserved.