Class SingleSharableData<T>
java.lang.Object
org.mvplugins.multiverse.inventories.profile.data.SingleSharableData<T>
- All Implemented Interfaces:
ProfileData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S> S
Retrieves the profile's value of theSharable
passed in.getData()
boolean
isEmpty()
Checks whether this profile contains any data.<S> 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
-
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.