BrightSide Workbench Full Report + Source Code
org.turro.tags.TagItem Class Reference
Inheritance diagram for org.turro.tags.TagItem:
Collaboration diagram for org.turro.tags.TagItem:

Public Member Functions

 TagItem (String tagName, long usage)
 
String getTagName ()
 
long getUsage ()
 
int compareTo (TagItem o)
 
boolean isSelected ()
 
void setSelected (boolean selected)
 
boolean isSibling ()
 
void setSibling (boolean sibling)
 
TagMeta getMeta ()
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file TagItem.java.

Constructor & Destructor Documentation

◆ TagItem()

org.turro.tags.TagItem.TagItem ( String  tagName,
long  usage 
)

Definition at line 35 of file TagItem.java.

35  {
36  this.tagName = tagName;
37  this.usage = usage;
38  this.selected = false;
39  }
Here is the caller graph for this function:

Member Function Documentation

◆ compareTo()

int org.turro.tags.TagItem.compareTo ( TagItem  o)

Definition at line 50 of file TagItem.java.

50  {
51  return CompareUtil.compare(tagName, o.tagName);
52  }

◆ equals()

boolean org.turro.tags.TagItem.equals ( Object  obj)

Definition at line 87 of file TagItem.java.

87  {
88  if (this == obj) {
89  return true;
90  }
91  if (obj == null) {
92  return false;
93  }
94  if (getClass() != obj.getClass()) {
95  return false;
96  }
97  final TagItem other = (TagItem) obj;
98  if (!Objects.equals(this.tagName, other.tagName)) {
99  return false;
100  }
101  return true;
102  }
TagItem(String tagName, long usage)
Definition: TagItem.java:35
Here is the call graph for this function:

◆ getMeta()

TagMeta org.turro.tags.TagItem.getMeta ( )

Definition at line 70 of file TagItem.java.

70  {
71  return TagMeta.importFrom(tagName);
72  }
Here is the call graph for this function:

◆ getTagName()

String org.turro.tags.TagItem.getTagName ( )

Definition at line 41 of file TagItem.java.

41  {
42  return tagName;
43  }
Here is the caller graph for this function:

◆ getUsage()

long org.turro.tags.TagItem.getUsage ( )

Definition at line 45 of file TagItem.java.

45  {
46  return usage;
47  }

◆ hashCode()

int org.turro.tags.TagItem.hashCode ( )

Definition at line 80 of file TagItem.java.

80  {
81  int hash = 7;
82  hash = 59 * hash + Objects.hashCode(this.tagName);
83  return hash;
84  }

◆ isSelected()

boolean org.turro.tags.TagItem.isSelected ( )

Definition at line 54 of file TagItem.java.

54  {
55  return selected;
56  }
Here is the caller graph for this function:

◆ isSibling()

boolean org.turro.tags.TagItem.isSibling ( )

Definition at line 62 of file TagItem.java.

62  {
63  return sibling;
64  }
Here is the caller graph for this function:

◆ setSelected()

void org.turro.tags.TagItem.setSelected ( boolean  selected)

Definition at line 58 of file TagItem.java.

58  {
59  this.selected = selected;
60  }
Here is the caller graph for this function:

◆ setSibling()

void org.turro.tags.TagItem.setSibling ( boolean  sibling)

Definition at line 66 of file TagItem.java.

66  {
67  this.sibling = sibling;
68  }

◆ toString()

String org.turro.tags.TagItem.toString ( )

Definition at line 75 of file TagItem.java.

75  {
76  return tagName;
77  }

The documentation for this class was generated from the following file: