public class Constants extends Object
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Constructor and Description |
---|
Constants() |
Modifier and Type | Method and Description |
---|---|
static Object |
decode(Object value,
Type type)
Converts a constant in internal representation (in which
boolean, char, byte, short, and int are each represented by an
Integer) into standard representation.
|
static String |
format(Object value)
Returns a string representation of a constant value (given in
standard wrapped representation), quoted and formatted as in
Java source.
|
static String |
format(Object value,
Type type)
Returns a string representation of a constant value (given in
internal representation), quoted and formatted as in Java source.
|
public static Object decode(Object value, Type type)
public static String format(Object value, Type type)
Copyright © 2017 earcam. All rights reserved.