public class DefaultProfileSet extends LinkedHashMap implements ProfileSet
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DefaultProfileSet(String baseProfile)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addProfile(Profile profile)
Add profile to the ProfileSet.
|
void |
addProfile(String profile)
Add profile to the ProfileSet.
|
void |
addProfiles(String[] subProfiles)
Add a list of subProfiles to the ProfileSet.
|
protected void |
addProfileSet(DefaultProfileSet profileSet)
Add the profiles of the supplied DefaultProfileSet to this ProfileSet.
|
static DefaultProfileSet |
create(String baseProfile,
String[] subProfiles)
Utility method for creating a profile set.
|
String |
getBaseProfile()
Get the base profile for this profile set.
|
Profile |
getProfile(String profile)
Get a profile from the
ProfileSet . |
boolean |
isMember(String profile)
Is the specified profile a member of this profile set.
|
Iterator |
iterator()
|
String |
toString() |
clear, containsValue, get, removeEldestEntry
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode
public DefaultProfileSet(String baseProfile)
baseProfile
- The base profile for the profile set.public String getBaseProfile()
getBaseProfile
in interface ProfileSet
public boolean isMember(String profile)
ProfileSet
isMember
in interface ProfileSet
profile
- The profile to check against.public void addProfile(String profile)
profile
- The profile to add.public void addProfile(Profile profile)
addProfile
in interface ProfileSet
profile
- The profile to add.public Profile getProfile(String profile)
ProfileSet
.getProfile
in interface ProfileSet
profile
- The name of the profile.ProfileSet
.public Iterator iterator()
iterator
in interface ProfileSet
Iterator
that allows iteration over the
Profiles
in this ProfileSet
.protected void addProfileSet(DefaultProfileSet profileSet)
profileSet
- The DefaultProfileSet whose profiles are to be added.public void addProfiles(String[] subProfiles)
subProfiles
- The array of sub Profiles to add.public String toString()
toString
in class AbstractMap
public static DefaultProfileSet create(String baseProfile, String[] subProfiles)
baseProfile
- The base profile.subProfiles
- The sub profiles.Copyright © 2014. All rights reserved.