public final class Profile extends Object implements ToCopyableBuilder<Profile.Builder,Profile>
ProfileFile
.
Raw property access can be made via property(String)
and properties()
.
ProfileFile
Modifier and Type | Class and Description |
---|---|
static interface |
Profile.Builder
A builder for a
Profile . |
Modifier and Type | Method and Description |
---|---|
static Profile.Builder |
builder()
Create a builder for defining a profile with specific attributes.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
name()
Retrieve the name of this profile.
|
Map<String,String> |
properties()
Retrieve an unmodifiable view of all of the properties currently in this profile.
|
Optional<String> |
property(String propertyKey)
Retrieve a specific raw property from this profile.
|
Profile.Builder |
toBuilder() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public static Profile.Builder builder()
ProfileFile
.public String name()
public Optional<String> property(String propertyKey)
propertyKey
- The name of the property to retrieve.public Map<String,String> properties()
public Profile.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Profile.Builder,Profile>
Copyright © 2019. All rights reserved.