Name

DatatypeConstants.Field

Synopsis

This class defines a typesafe enumeration for some of the constants in DatatypeConstants. Note that it is a class, not a Java 5.0 enum type.

public static final class DatatypeConstants.Field {
// No Constructor
                  // Public Instance Methods
     public int getId( );  
// Public Methods Overriding Object
     public String toString( );  
}

Passed To

Duration.{getField( ), isSet( )}

Type Of

DatatypeConstants.{DAYS, HOURS, MINUTES, MONTHS, SECONDS, YEARS}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.