public class TsonNumberHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
ANY_NUMBER_PATTERN_0 |
static Pattern |
ANY_NUMBER_PATTERN_1U |
static Pattern |
ANY_NUMBER_PATTERN_1XU |
static Pattern |
ANY_NUMBER_PATTERN_2U |
static Pattern |
ANY_NUMBER_PATTERN_2XU |
| Constructor and Description |
|---|
TsonNumberHelper(TsonNumber te) |
| Modifier and Type | Method and Description |
|---|---|
Number |
getImag() |
TsonNumberLayout |
getRadix() |
Number |
getReal() |
NumberType |
getType() |
String |
getUnit() |
boolean |
isComplex() |
static TsonNumberHelper |
of(Number real) |
static TsonNumberHelper |
parse(String s) |
TsonNumberHelper |
to(NumberType type) |
String |
toString() |
String |
toString(boolean compactMax) |
TsonElement |
toTson() |
public static final Pattern ANY_NUMBER_PATTERN_0
public static final Pattern ANY_NUMBER_PATTERN_1XU
public static final Pattern ANY_NUMBER_PATTERN_2XU
public static final Pattern ANY_NUMBER_PATTERN_1U
public static final Pattern ANY_NUMBER_PATTERN_2U
public TsonNumberHelper(TsonNumber te)
public static TsonNumberHelper of(Number real)
public TsonNumberHelper to(NumberType type)
public static TsonNumberHelper parse(String s)
public String toString(boolean compactMax)
public Number getReal()
public Number getImag()
public boolean isComplex()
public NumberType getType()
public String getUnit()
public TsonNumberLayout getRadix()
public TsonElement toTson()
Copyright © 2025 vpc open source initiative. All rights reserved.