Module watamebot
Package net.foxgenesis.property
Interface IProperty<K,L,M extends IPropertyMapping>
- All Superinterfaces:
ImmutableProperty<K,L, M>
- All Known Implementing Classes:
GuildProperty
-
Method Summary
Methods inherited from interface net.foxgenesis.property.ImmutableProperty
get, get, get, get, getKey, isEditable, isPresent
-
Method Details
-
set
Update/Set this property's value.- Parameters:
from- - property lookup datavalue- - the new value- Returns:
- Returns
trueif the property was updated successfully - See Also:
-
set
Update/Set this property's value.- Parameters:
from- - property lookup datavalue- - the new valueuserEdited- - was this change initiated by the end user- Returns:
- Returns
trueif the property was updated successfully - Throws:
UnmodifiablePropertyException- Thrown if this property is not editable anduserEditedistrue- See Also:
-
set
default void set(@Nonnull L from, @Nullable Object value, boolean userEdited, @Nonnull Consumer<Boolean> onSet, @Nullable Consumer<Throwable> errorHandler) Update/Set this property's value.- Parameters:
from- - property lookup datavalue- - the new valueuserEdited- - was this change initiated by the end useronSet- - on set handlererrorHandler- - optional exception handler- See Also:
-