Package io.trino.jdbc
Class TrinoIntervalYearMonth
- java.lang.Object
-
- io.trino.jdbc.TrinoIntervalYearMonth
-
- All Implemented Interfaces:
Comparable<TrinoIntervalYearMonth>
public class TrinoIntervalYearMonth extends Object implements Comparable<TrinoIntervalYearMonth>
-
-
Constructor Summary
Constructors Constructor Description TrinoIntervalYearMonth(int months)TrinoIntervalYearMonth(int year, int months)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(TrinoIntervalYearMonth o)booleanequals(Object obj)intgetMonths()inthashCode()StringtoString()
-
-
-
Method Detail
-
getMonths
public int getMonths()
-
compareTo
public int compareTo(TrinoIntervalYearMonth o)
- Specified by:
compareToin interfaceComparable<TrinoIntervalYearMonth>
-
-