public class TermWebID extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static TermWebID |
NEW
ID value for new objects.
|
| Constructor and Description |
|---|
TermWebID(int id)
Creates a new TermWebID from the specified int value.
|
TermWebID(long id)
Creates a new TermWebID from the specified long value.
|
TermWebID(Long id)
Creates a new TermWebID from the specified Long value.
|
TermWebID(String id)
Creates a new TermWebID from the specified string representation of a Long value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static TermWebID |
fromLongStr(String longStr)
Parses the specified string as a long value and returns a TermWebID based on the value.
|
Long |
getLong()
Returns the ID as a Long value.
|
String |
getString()
Returns the ID as a String with the value in base-32 representation, using characters 0-9 and a-v.
|
int |
hashCode() |
boolean |
isNew()
Checks if the ID is new, i.e.
|
String |
toString() |
public static final TermWebID NEW
public TermWebID(String id)
IDConvert.get(String)id - The id as a String.public TermWebID(long id)
id - The ID as a long value.public TermWebID(int id)
id - The ID as an int value.public TermWebID(Long id)
id - The ID as a Long value.public String getString()
public Long getLong()
public boolean isNew()
Copyright © 2009-2016 Interverbum Technology AB. All Rights Reserved.