Interface ProfileData
- All Known Implementing Classes:
PlayerProfile,ProfileDataSnapshot,SingleSharableData
public interface ProfileData
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileDataempty()Gets an immutable empty profile data constant.<T> TRetrieves the profile's value of theSharablepassed in.getData()booleanisEmpty()Checks whether this profile contains any data.<T> voidSets the profile's value for theSharablepassed in.voidupdate(ProfileData snapshot) Updates this profile with the data from another profile data.voidupdate(ProfileData snapshot, Shares shares) Updates this profile with the data from another profile data for a specific set ofSharables.
-
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.
-