org.otfeed.command
Class MonthAndYear

java.lang.Object
  extended by org.otfeed.command.MonthAndYear

public final class MonthAndYear
extends java.lang.Object

Composite, encapsulating month and year values. It is used to specify option expiration date.

This class is immutable.


Field Summary
 int month
          Month.
 int year
          Year.
 
Constructor Summary
MonthAndYear(int month, int year)
          Constructor of the composite object.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

month

public final int month
Month. Jan = 1, Feb = 2, ... Dec = 12.


year

public final int year
Year.

Constructor Detail

MonthAndYear

public MonthAndYear(int month,
                    int year)
Constructor of the composite object.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 Mike Kroutikov. All Rights Reserved.