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, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic DefaultProfileSet(String baseProfile)
baseProfile - The base profile for the profile set.public String getBaseProfile()
getBaseProfile in interface ProfileSetpublic boolean isMember(String profile)
ProfileSetisMember in interface ProfileSetprofile - The profile to check against.public void addProfile(String profile)
profile - The profile to add.public void addProfile(Profile profile)
addProfile in interface ProfileSetprofile - The profile to add.public Profile getProfile(String profile)
ProfileSet.getProfile in interface ProfileSetprofile - The name of the profile.ProfileSet.public Iterator iterator()
iterator in interface ProfileSetIterator that allows iteration over the
Profilesin 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 AbstractMappublic static DefaultProfileSet create(String baseProfile, String[] subProfiles)
baseProfile - The base profile.subProfiles - The sub profiles.Copyright © 2020. All rights reserved.