Package io.prestosql.jdbc
Class PrestoIntervalYearMonth
- java.lang.Object
-
- io.prestosql.jdbc.PrestoIntervalYearMonth
-
- All Implemented Interfaces:
java.lang.Comparable<PrestoIntervalYearMonth>
public class PrestoIntervalYearMonth extends java.lang.Object implements java.lang.Comparable<PrestoIntervalYearMonth>
-
-
Constructor Summary
Constructors Constructor Description PrestoIntervalYearMonth(int months)PrestoIntervalYearMonth(int year, int months)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PrestoIntervalYearMonth o)booleanequals(java.lang.Object obj)intgetMonths()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getMonths
public int getMonths()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(PrestoIntervalYearMonth o)
- Specified by:
compareToin interfacejava.lang.Comparable<PrestoIntervalYearMonth>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-