Class ProfileDataSnapshot
java.lang.Object
org.mvplugins.multiverse.inventories.profile.data.ProfileDataSnapshot
- All Implemented Interfaces:
Cloneable,ProfileData
- Direct Known Subclasses:
PlayerProfile
public sealed class ProfileDataSnapshot
extends Object
implements Cloneable, ProfileData
permits PlayerProfile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()<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.
-
Constructor Details
-
ProfileDataSnapshot
public ProfileDataSnapshot()
-
-
Method Details
-
getData
- Specified by:
getDatain interfaceProfileData
-
update
Description copied from interface:ProfileDataUpdates this profile with the data from another profile data.- Specified by:
updatein interfaceProfileData- Parameters:
snapshot- The snapshot data to update from.
-
isEmpty
public boolean isEmpty()Description copied from interface:ProfileDataChecks whether this profile contains any data.- Specified by:
isEmptyin interfaceProfileData- Returns:
- True if the profile is empty.
-
clone