java.lang.Object
net.foxgenesis.watame.property.GuildProperty
- All Implemented Interfaces:
ImmutableProperty<String,,net.dv8tion.jda.api.entities.Guild, IGuildPropertyMapping> IProperty<String,net.dv8tion.jda.api.entities.Guild, IGuildPropertyMapping>
public class GuildProperty
extends Object
implements IProperty<String,net.dv8tion.jda.api.entities.Guild,IGuildPropertyMapping>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable IGuildPropertyMappingget(@NotNull net.dv8tion.jda.api.entities.Guild from) Get this property's data wrapped in anIPropertyMapping.@NotNull StringgetKey()Get the key pointing to the property.inthashCode()booleanCheck if this property is end user editable.booleanisPresent(net.dv8tion.jda.api.entities.Guild from) Check if this property is present.booleanUpdate/Set this property's value.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.foxgenesis.property.ImmutableProperty
get, get, get
-
Constructor Details
-
GuildProperty
-
-
Method Details
-
get
@Nullable public @Nullable IGuildPropertyMapping get(@NotNull @NotNull net.dv8tion.jda.api.entities.Guild from) Description copied from interface:ImmutablePropertyGet this property's data wrapped in anIPropertyMapping.- Specified by:
getin interfaceImmutableProperty<String,net.dv8tion.jda.api.entities.Guild, IGuildPropertyMapping> - Parameters:
from- - property lookup data- Returns:
- The property's data inside an
IPropertyMapping
-
set
Description copied from interface:IPropertyUpdate/Set this property's value.- Specified by:
setin interfaceIProperty<String,net.dv8tion.jda.api.entities.Guild, IGuildPropertyMapping> - Parameters:
from- - property lookup datavalue- - the new value- Returns:
- Returns
trueif the property was updated successfully - See Also:
-
getKey
Description copied from interface:ImmutablePropertyGet the key pointing to the property.- Specified by:
getKeyin interfaceImmutableProperty<String,net.dv8tion.jda.api.entities.Guild, IGuildPropertyMapping> - Returns:
- The property's key
-
isEditable
public boolean isEditable()Description copied from interface:ImmutablePropertyCheck if this property is end user editable.- Specified by:
isEditablein interfaceImmutableProperty<String,net.dv8tion.jda.api.entities.Guild, IGuildPropertyMapping> - Returns:
- Returns
trueif this property is allowed to be modified by the end user
-
isPresent
public boolean isPresent(net.dv8tion.jda.api.entities.Guild from) Description copied from interface:ImmutablePropertyCheck if this property is present.- Specified by:
isPresentin interfaceImmutableProperty<String,net.dv8tion.jda.api.entities.Guild, IGuildPropertyMapping> - Parameters:
from- - lookup data- Returns:
- Returns
trueif the property was found using the provided lookup data
-
hashCode
public int hashCode() -
equals
-
toString
-