| Constructor and Description |
|---|
PropertyMetadata(String name,
Class<V> valueType,
V value)
Constructs a
PropertyMetadata. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName()
Returns the name of the metadata.
|
Object |
getValue()
Returns the value of the metadata.
|
Class<?> |
getValueType()
Returns the type of value of the metadata.
|
int |
hashCode() |
boolean |
hasValueOfType(Class<?> type)
Checks if the value of the metadata is an instance of the given type.
|
String |
toString() |
public PropertyMetadata(String name, Class<V> valueType, V value)
PropertyMetadata.V - Type of value.name - Name of the metadata.valueType - Type of value of the metadata.value - Value of the metadata.public String getName()
public Class<?> getValueType()
public Object getValue()
getValueType().null.public boolean hasValueOfType(Class<?> type)
type - Type to check.type.isInstance(this.getValue)Copyright © 2023 Miki. All rights reserved.