Package io.ran
Class Property<T>
java.lang.Object
io.ran.Property<T>
- Type Parameters:
T
- The class of the property
Holds details about a property of a class.
For example, we have class 'Employee' with field 'name' of type String, then
the property.token is 'name'
the property.on is 'Employee'
the property.type is 'String'
see io.ran.Clazz#getFields(boolean)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Property.NumberValue<V extends Number>
static class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copy()
boolean
static <T> Property<T>
get()
Creates a new property without name or typestatic <T> Property<T>
Creates a new property with name, but without typestatic <T> Property<T>
Creates a new property with name and typestatic <T> Property<T>
Creates a new property with name and typegetKeys()
Clazz<?>
getOn()
Returns class that owns this propertygetToken()
Return property namegetType()
int
hashCode()
static Property.PropertyList
list()
static Property.PropertyList
boolean
matchesSnakeCase
(String snakeCase) void
values
(Collection<T> values) final Property.PropertyValueList<T>
-
Method Details
-
get
Creates a new property without name or type -
get
Creates a new property with name, but without type -
get
Creates a new property with name and type -
get
Creates a new property with name and type -
getToken
Return property name -
getType
- Returns:
- the type of the property, or null if this is not set
-
value
-
values
-
values
-
list
-
list
-
addKey
-
getKeys
-
getOn
Returns class that owns this property -
setOn
-
matchesSnakeCase
-
getSnakeCase
-
equals
-
hashCode
public int hashCode() -
setToken
-
copy
-
getAnnotations
-