@NotThreadSafe public class StandardProperty<V> extends PropertySupport<V>
| Constructor and Description |
|---|
StandardProperty(String id,
Class<V> type) |
| Modifier and Type | Method and Description |
|---|---|
V |
get() |
String |
getId() |
Class<V> |
getType() |
static StandardProperty<String> |
property(String id) |
static <V> StandardProperty<V> |
property(String id,
Class<V> ofType) |
StandardProperty<V> |
set(V content) |
StandardProperty<V> |
withAnnotations(Annotation... annotations) |
StandardProperty<V> |
withAnnotations(Iterable<? extends Annotation> annotations) |
equals, hashCode, toStringaddAnnotation, addAnnotations, addAnnotations, annotations, annotations, removeAnnotation, removeAnnotationsclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAnnotation, annotations, annotations, removeAnnotation, removeAnnotations@Nonnull public static <V> StandardProperty<V> property(@Nonnull String id, @Nonnull Class<V> ofType)
@Nonnull public static StandardProperty<String> property(@Nonnull String id)
@Nonnull public StandardProperty<V> withAnnotations(@Nullable Annotation... annotations)
@Nonnull public StandardProperty<V> withAnnotations(@Nullable Iterable<? extends Annotation> annotations)
public StandardProperty<V> set(@Nullable V content) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2024 echocat. All rights reserved.