Package org.jclouds.domain
Class JsonBall
- java.lang.Object
-
- org.jclouds.domain.JsonBall
-
- All Implemented Interfaces:
CharSequence
,Comparable<String>
- Direct Known Subclasses:
DatabagItem
public class JsonBall extends Object implements Comparable<String>, CharSequence
As String is final, using a different marker to imply this is a json object
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
JSON_BOOLEAN_PATTERN
static Pattern
JSON_NUMBER_PATTERN
static Pattern
JSON_STRING_PATTERN
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
int
compareTo(String o)
boolean
equals(Object obj)
int
hashCode()
int
length()
CharSequence
subSequence(int start, int end)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
JsonBall
public JsonBall(double value)
-
JsonBall
public JsonBall(int value)
-
JsonBall
public JsonBall(long value)
-
JsonBall
public JsonBall(boolean value)
-
JsonBall
public JsonBall(String value)
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
length
public int length()
- Specified by:
length
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
compareTo
public int compareTo(String o)
- Specified by:
compareTo
in interfaceComparable<String>
-
-