BrightSide Workbench Full Report + Source Code
org.turro.contacts.social.SocialGroupValue Class Reference
Inheritance diagram for org.turro.contacts.social.SocialGroupValue:
Collaboration diagram for org.turro.contacts.social.SocialGroupValue:

Public Member Functions

 SocialGroupValue (String name, String key, SecurityGroupType type)
 
String getName ()
 
String getKey ()
 
SecurityGroupType getType ()
 
int compareTo (SocialGroupValue o)
 
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 30 of file SocialGroupValue.java.

Constructor & Destructor Documentation

◆ SocialGroupValue()

org.turro.contacts.social.SocialGroupValue.SocialGroupValue ( String  name,
String  key,
SecurityGroupType  type 
)

Definition at line 35 of file SocialGroupValue.java.

35  {
36  this.name = I_.get(name);
37  this.key = key;
38  this.type = type;
39  }
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ compareTo()

int org.turro.contacts.social.SocialGroupValue.compareTo ( SocialGroupValue  o)

Definition at line 54 of file SocialGroupValue.java.

54  {
55  return Comparison.ascendant()
56  .compare(type.getSortOrder(), o.type.getSortOrder())
57  .compare(name, o.name)
58  .get();
59  }
Here is the call graph for this function:

◆ equals()

boolean org.turro.contacts.social.SocialGroupValue.equals ( Object  obj)

Definition at line 69 of file SocialGroupValue.java.

69  {
70  if (this == obj) {
71  return true;
72  }
73  if (obj == null) {
74  return false;
75  }
76  if (getClass() != obj.getClass()) {
77  return false;
78  }
79  final SocialGroupValue other = (SocialGroupValue) obj;
80  return Objects.equals(this.key, other.key);
81  }
SocialGroupValue(String name, String key, SecurityGroupType type)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getKey()

String org.turro.contacts.social.SocialGroupValue.getKey ( )

Definition at line 45 of file SocialGroupValue.java.

45  {
46  return key;
47  }
Here is the caller graph for this function:

◆ getName()

String org.turro.contacts.social.SocialGroupValue.getName ( )

Definition at line 41 of file SocialGroupValue.java.

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

◆ getType()

SecurityGroupType org.turro.contacts.social.SocialGroupValue.getType ( )

Definition at line 49 of file SocialGroupValue.java.

49  {
50  return type;
51  }
Here is the caller graph for this function:

◆ hashCode()

int org.turro.contacts.social.SocialGroupValue.hashCode ( )

Definition at line 62 of file SocialGroupValue.java.

62  {
63  int hash = 7;
64  hash = 31 * hash + Objects.hashCode(this.key);
65  return hash;
66  }

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