org.apache.shindig.gadgets
Class UserPrefs

java.lang.Object
  extended by org.apache.shindig.gadgets.UserPrefs

public class UserPrefs
extends Object

Data structure representing gadget user preferences.


Field Summary
static UserPrefs EMPTY
          Convenience representation of an empty pref set.
 
Constructor Summary
UserPrefs(Map<String,String> prefs)
           
 
Method Summary
 String getPref(String name)
           
 Map<String,String> getPrefs()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final UserPrefs EMPTY
Convenience representation of an empty pref set.

Constructor Detail

UserPrefs

public UserPrefs(Map<String,String> prefs)
Parameters:
prefs - The preferences to populate.
Method Detail

getPrefs

public Map<String,String> getPrefs()
Returns:
An immutable reference to all prefs.

getPref

public String getPref(String name)
Parameters:
name - The pref to fetch.
Returns:
The pref specified by the given name.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012. All Rights Reserved.