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> 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.
-
Constructor Details
-
ProfileDataSnapshot
public ProfileDataSnapshot()
-
-
Method Details
-
getData
- Specified by:
getData
in interfaceProfileData
-
update
Description copied from interface:ProfileData
Updates this profile with the data from another profile data.- Specified by:
update
in interfaceProfileData
- Parameters:
snapshot
- The snapshot data to update from.
-
isEmpty
public boolean isEmpty()Description copied from interface:ProfileData
Checks whether this profile contains any data.- Specified by:
isEmpty
in interfaceProfileData
- Returns:
- True if the profile is empty.
-
clone