public class Annotations
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Annotation> |
annotations
Deprecated.
|
static int |
lengthLimit
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
| Constructor and Description |
|---|
Annotations()
Deprecated.
Construct empty Annotations instance
|
Annotations(twitter4j.internal.org.json.JSONArray jsonArray)
Deprecated.
Construct Annotations instance from a JSON Array, returned from Twitter API
Package visibility only!
|
Annotations(java.util.List<Annotation> annotations)
Deprecated.
Construct Annotations instance from an exisiting List of Annotation instances
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(Annotation annotation)
Deprecated.
Adds a single Annotation to the List of Annotation instances
|
Annotations |
annotation(Annotation annotation)
Deprecated.
Adds a single Annotation to the List of Annotation instances
|
(package private) java.lang.String |
asParameterValue()
Deprecated.
Package visibility only!
|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
java.util.List<Annotation> |
getAnnotations()
Deprecated.
|
private java.util.List<Annotation> |
getSortedAnnotations()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
boolean |
isExceedingLengthLimit()
Deprecated.
|
static boolean |
isExceedingLengthLimit(Annotations annotations)
Deprecated.
|
void |
setAnnotations(java.util.List<Annotation> annotations)
Deprecated.
Sets the List of Annotation instances
Ensures the class's property is not null
|
java.lang.Integer |
size()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
private static final long serialVersionUID
public static final int lengthLimit
private java.util.List<Annotation> annotations
public Annotations()
public Annotations(java.util.List<Annotation> annotations)
annotations - - the List of Annotation instancespublic Annotations(twitter4j.internal.org.json.JSONArray jsonArray)
jsonArray - - the JSON Arraypublic java.util.List<Annotation> getAnnotations()
public void setAnnotations(java.util.List<Annotation> annotations)
annotations - - the List of Annotation instancespublic void addAnnotation(Annotation annotation)
annotation - - the Annotation to addpublic Annotations annotation(Annotation annotation)
annotation - - the Annotation to addpublic boolean isEmpty()
public java.lang.Integer size()
public static boolean isExceedingLengthLimit(Annotations annotations)
annotations - - the instance to testpublic boolean isExceedingLengthLimit()
java.lang.String asParameterValue()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectprivate java.util.List<Annotation> getSortedAnnotations()