com.atlassian.gadgets.opensocial.model
Class Group

java.lang.Object
  extended by com.atlassian.gadgets.opensocial.model.Group

@Immutable
public final class Group
extends Object

Represents a group name. There are three distinguished groups: ALL, FRIENDS, and SELF. Groups are uniquely specified by their name

Since:
2.0

Field Summary
static Group ALL
           
static Group FRIENDS
           
static Group SELF
           
 
Method Summary
static Group of(String name)
          Retrieve the group corresponding to the specified name
 String toString()
          The String representation of a group (its name)
 String valueOf()
          Fetch the (unique) name of this group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL

public static final Group ALL

FRIENDS

public static final Group FRIENDS

SELF

public static final Group SELF
Method Detail

of

public static Group of(String name)
Retrieve the group corresponding to the specified name

Parameters:
name - The name of the group
Returns:
a Group corresponding to the specified name. A new group will be created if one does not already exist

valueOf

public String valueOf()
Fetch the (unique) name of this group

Returns:
the name of the group

toString

public String toString()
The String representation of a group (its name)

Overrides:
toString in class Object
Returns:
the name of the group


Copyright © 2011 Atlassian. All Rights Reserved.