com.sas.iquery.metadata.expr.relational
Class TimeShiftDirection

com.sas.iquery.metadata.expr.relational.TimeShiftDirection

@Immutable
public final class TimeShiftDirection

Models the direction shifting of time/date/timestamps values in an AbstractRelativeTimeValueExpression.

Current, future, or past times are represented as CURRENT, PREVIOUS, or NEXT TimeShiftDirection values.

Since:
9.1.3sp4

Field Summary
static TimeShiftDirection CURRENT
          The "current" type representing the current time/date/timestamp
static TimeShiftDirection NEXT
          The "next" type representing the future in time/date/timestamp
static TimeShiftDirection PREVIOUS
          The "previous" type representing the past in time/date/timestamps
 
Method Summary
 boolean equals(java.lang.Object object2)
          
 int getValue()
          Return the integer representation of the Type.
static java.util.List<TimeShiftDirection> getValues()
          Get the list of supported TimeShiftDirection types.
 int hashCode()
          
 java.lang.String toString()
          Override to generate a readable date string for this object.
 

Field Detail

CURRENT

public static final TimeShiftDirection CURRENT
The "current" type representing the current time/date/timestamp


NEXT

public static final TimeShiftDirection NEXT
The "next" type representing the future in time/date/timestamp


PREVIOUS

public static final TimeShiftDirection PREVIOUS
The "previous" type representing the past in time/date/timestamps

Method Detail

toString

public java.lang.String toString()
Override to generate a readable date string for this object. The string returned is not localized and should not be used for display purposes.

Do not count on the format of the returned string as it may change in future releases in undocumented ways.

Overrides:
toString in class java.lang.Object

getValue

public int getValue()
Return the integer representation of the Type.

Returns:
int 0,1,-1 where each represents current, next, previous

getValues

public static java.util.List<TimeShiftDirection> getValues()
Get the list of supported TimeShiftDirection types.

Returns:
an unmodifiable list of the internal types

equals

public boolean equals(java.lang.Object object2)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object



Copyright © 2009 SAS Institute Inc. All Rights Reserved.