|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttwitter4j.Annotation
public class Annotation
A data class representing an Annotation of a Status or a Tweet
| Constructor Summary | |
|---|---|
Annotation(String type)
Deprecated. Construct an Annotation with a type but no attributes |
|
Annotation(String type,
Map<String,String> attributes)
Deprecated. Construct an Annotation with a type and attributes |
|
| Method Summary | |
|---|---|
void |
addAttribute(String name,
String value)
Deprecated. Adds a single attribute |
Annotation |
attribute(String name,
String value)
Deprecated. Adds a single attribute |
Annotation |
attributes(Map<String,String> attributes)
Deprecated. Sets the attributes Ensures the class's property is not null |
int |
compareTo(Annotation other)
Deprecated. |
boolean |
equals(Object obj)
Deprecated. |
Map<String,String> |
getAttributes()
Deprecated. |
String |
getType()
Deprecated. |
int |
hashCode()
Deprecated. |
boolean |
isEmpty()
Deprecated. |
void |
setAttributes(Map<String,String> attributes)
Deprecated. Sets the attributes Ensures the class's property is not null |
void |
setType(String type)
Deprecated. Sets the type Ensures the class's property is not null |
Integer |
size()
Deprecated. |
String |
toString()
Deprecated. |
Annotation |
type(String type)
Deprecated. Sets the type Ensures the class's property is not null |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Annotation(String type)
type - - the type
public Annotation(String type,
Map<String,String> attributes)
type - attributes - | Method Detail |
|---|
public String getType()
public void setType(String type)
type - - the typepublic Annotation type(String type)
type - - the type
public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes - - the attributespublic Annotation attributes(Map<String,String> attributes)
attributes - - the attributes
public void addAttribute(String name,
String value)
name - - the attribute namevalue - - the attribute value
public Annotation attribute(String name,
String value)
name - - the attribute namevalue - - the attribute value
public boolean isEmpty()
public Integer size()
public int compareTo(Annotation other)
compareTo in interface Comparable<Annotation>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||