public class YearType extends Object implements CloneableType
Constructor and Description |
---|
YearType(Date date) |
YearType(String year)
Creates a new year from a string value.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Duplicates this object.
|
boolean |
equals(Object o) |
String |
toString()
Returns a String representation of this object.
|
public YearType(String year)
year
- String to parse.public YearType(Date date)
date
- Date to get the year from.Copyright © 2024. All rights reserved.