Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


oracle.as.scheduler
Class RecurrenceFields.YEAR

java.lang.Object
  extended by oracle.as.scheduler.RecurrenceFields.YEAR

All Implemented Interfaces:
java.io.Serializable
Enclosing class:
RecurrenceFields

public static class RecurrenceFields.YEAR
extends java.lang.Object
implements java.io.Serializable

Encapsulate the value of a year.

Its a wrapper class on top of the primitive integer to represent a year with the required restrictions on the integer value. All years after 1900 can be represented by this class. The maximum year supported by this class is 9999. The class does not expose any public constructors. An instance of YEAR can be constructed by using the valueOf method.

See Also:
Serialized Form

Method Summary
 int value()
          Returns the value of this YEAR as an int.
static RecurrenceFields.YEAR valueOf(int value)
          Returns a YEAR instance representing the specified int value.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

value

public int value()
Returns the value of this YEAR as an int.
Returns:
- numeric value represented by this object.

valueOf

public static RecurrenceFields.YEAR valueOf(int value)
                                     throws IllegalArgumentException
Returns a YEAR instance representing the specified int value. The value must be a positive integer greater than 0.
Parameters:
value - - an int value.
Returns:
- instance of YEAR representing the int value.
Throws:
IllegalArgumentException - - the specified value is invalid.

Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.