-
- All Superinterfaces:
Supplier<T>
- All Known Implementing Classes:
ValueAccessibleMemberInstance
public interface MemberInstance<T> extends Supplier<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Tget()Gets the value of the member.default booleanisReadable()default booleanisWritable()Member<T>member()default voidset(Object value)Sets the value of the member.
-
-
-
Method Detail
-
isReadable
default boolean isReadable()
-
isWritable
default boolean isWritable()
-
get
default T get()
Gets the value of the member.- Specified by:
getin interfaceSupplier<T>- Returns:
- The value of the
Memberwith the given key. - Throws:
UnsupportedOperationException- if the member is not readable (seeisReadable()).
-
set
default void set(Object value)
Sets the value of the member.- Parameters:
value- The value to set.- Throws:
UnsupportedOperationException- if the member is not writable (seeisWritable()).
-
-