Package dev.pcvolkmer.mv64e.model
Class Age
- java.lang.Object
-
- dev.pcvolkmer.mv64e.model.Age
-
public class Age extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAge.Builderstatic classAge.UnitEnum
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_UNITstatic java.lang.StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description Age()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Age.Builderbuilder()booleanequals(java.lang.Object o)Age.UnitEnumgetUnit()java.math.BigDecimalgetValue()inthashCode()voidsetUnit(Age.UnitEnum unit)voidsetValue(java.math.BigDecimal value)Age.BuildertoBuilder()java.lang.StringtoString()Ageunit(Age.UnitEnum unit)Agevalue(java.math.BigDecimal value)
-
-
-
Field Detail
-
JSON_PROPERTY_VALUE
public static final java.lang.String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UNIT
public static final java.lang.String JSON_PROPERTY_UNIT
- See Also:
- Constant Field Values
-
-
Method Detail
-
value
public Age value(java.math.BigDecimal value)
-
getValue
public java.math.BigDecimal getValue()
-
setValue
public void setValue(java.math.BigDecimal value)
-
unit
public Age unit(Age.UnitEnum unit)
-
getUnit
public Age.UnitEnum getUnit()
-
setUnit
public void setUnit(Age.UnitEnum unit)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static Age.Builder builder()
-
toBuilder
public Age.Builder toBuilder()
-
-