|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.Annotations
public class Annotations
A data class representing the Annotations of a Status or a Tweet
Field Summary | |
---|---|
static int |
lengthLimit
|
Constructor Summary | |
---|---|
Annotations()
Construct empty Annotations instance |
|
Annotations(java.util.List<Annotation> annotations)
Construct Annotations instance from an exisiting List of Annotation instances |
Method Summary | |
---|---|
void |
addAnnotation(Annotation annotation)
Adds a single Annotation to the List of Annotation instances |
Annotations |
annotation(Annotation annotation)
Adds a single Annotation to the List of Annotation instances |
boolean |
equals(java.lang.Object obj)
|
java.util.List<Annotation> |
getAnnotations()
|
int |
hashCode()
|
boolean |
isEmpty()
|
boolean |
isExceedingLengthLimit()
|
static boolean |
isExceedingLengthLimit(Annotations annotations)
|
void |
setAnnotations(java.util.List<Annotation> annotations)
Sets the List of Annotation instances Ensures the class's property is not null |
java.lang.Integer |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int lengthLimit
Constructor Detail |
---|
public Annotations()
public Annotations(java.util.List<Annotation> annotations)
annotations
- - the List of Annotation instancesMethod Detail |
---|
public 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 add
public boolean isEmpty()
public java.lang.Integer size()
public static boolean isExceedingLengthLimit(Annotations annotations)
annotations
- - the instance to test
public boolean isExceedingLengthLimit()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |