Send feedback
Class Interval (2.30.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public class Interval implements Serializable
Static Methods
builder()
public static Interval . Builder builder ()
fromMonthsDaysNanos(int arg0, int arg1, BigInteger arg2)
public static Interval fromMonthsDaysNanos ( int arg0 , int arg1 , BigInteger arg2 )
ofDays(int arg0)
public static Interval ofDays ( int arg0 )
Parameter
Name
Description
arg0
int
ofMicros(long arg0)
public static Interval ofMicros ( long arg0 )
Parameter
Name
Description
arg0
long
ofMillis(long arg0)
public static Interval ofMillis ( long arg0 )
Parameter
Name
Description
arg0
long
ofMonths(int arg0)
public static Interval ofMonths ( int arg0 )
Parameter
Name
Description
arg0
int
ofNanos(BigInteger arg0)
public static Interval ofNanos ( BigInteger arg0 )
ofSeconds(long arg0)
public static Interval ofSeconds ( long arg0 )
Parameter
Name
Description
arg0
long
parseFromString(String arg0)
public static Interval parseFromString ( String arg0 )
Parameter
Name
Description
arg0
String
Methods
equals(Object arg0)
public boolean equals ( Object arg0 )
Parameter
Name
Description
arg0
Object
Overrides
getDays()
Returns
Type
Description
int
getMonths()
Returns
Type
Description
int
getNanos()
public BigInteger getNanos ()
hashCode()
Returns
Type
Description
int
Overrides
toISO8601()
public String toISO8601 ()
Returns
Type
Description
String
toString()
Returns
Type
Description
String
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[]]