public class IntervalYearMonth extends Object implements Comparable<IntervalYearMonth>, Serializable
| Constructor and Description |
|---|
IntervalYearMonth(int totalMonths) |
IntervalYearMonth(int years,
int months) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IntervalYearMonth o) |
boolean |
equals(Object o) |
int |
getMonths() |
int |
getTotalMonths() |
int |
getYears() |
int |
hashCode() |
String |
toString() |
public IntervalYearMonth(int years,
int months)
public IntervalYearMonth(int totalMonths)
public int getTotalMonths()
public int getYears()
public int getMonths()
public int compareTo(IntervalYearMonth o)
compareTo in interface Comparable<IntervalYearMonth>Copyright © 2024 Alibaba Cloud Computing. All rights reserved.