Interface ProfileData
- All Known Implementing Classes:
PlayerProfile
,ProfileDataSnapshot
,SingleSharableData
public interface ProfileData
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileData
empty()
Gets an immutable empty profile data constant.<T> T
Retrieves the profile's value of theSharable
passed in.getData()
boolean
isEmpty()
Checks whether this profile contains any data.<T> void
Sets the profile's value for theSharable
passed in.void
update
(ProfileData snapshot) Updates this profile with the data from another profile data.void
update
(ProfileData snapshot, Shares shares) Updates this profile with the data from another profile data for a specific set ofSharable
s.
-
Method Details
-
empty
Gets an immutable empty profile data constant.- Returns:
- An empty profile data.
-
getData
-
update
Updates this profile with the data from another profile data.- Parameters:
snapshot
- The snapshot data to update from.
-
isEmpty
boolean isEmpty()Checks whether this profile contains any data.- Returns:
- True if the profile is empty.
-