org.apache.shindig.gadgets
Class UserPrefs
java.lang.Object
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. |
EMPTY
public static final UserPrefs EMPTY
- Convenience representation of an empty pref set.
UserPrefs
public UserPrefs(Map<String,String> prefs)
- Parameters:
prefs - The preferences to populate.
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.