Class OverPeriodDateAttribute
- java.lang.Object
-
- com.gooddata.sdk.model.executeafm.afm.OverPeriodDateAttribute
-
- All Implemented Interfaces:
java.io.Serializable
public class OverPeriodDateAttribute extends java.lang.Object implements java.io.SerializableDefinition of theOverPeriodMeasureDefinitionattribute.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OverPeriodDateAttribute(ObjQualifier attribute, java.lang.Integer periodsAgo)Create a new instance ofOverPeriodDateAttribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ObjQualifiergetAttribute()TheObjQualifierof the attribute from the date data set that defines the PoP period.java.lang.IntegergetPeriodsAgo()The number of periods defined by theattributeabout which this period will be shifted about.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
OverPeriodDateAttribute
public OverPeriodDateAttribute(ObjQualifier attribute, java.lang.Integer periodsAgo)
Create a new instance ofOverPeriodDateAttribute.- Parameters:
attribute- TheObjQualifierof the attribute from the date data set that defines the PoP period and date data set. The parameter must not be null.periodsAgo- The number of periods defined by theattributeabout which this period will be shifted about. The positive number shifts the period to the past, the negative to the future. The parameter must not be null.- Throws:
java.lang.IllegalArgumentException- Thrown when one of the required parameter is null.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAttribute
public ObjQualifier getAttribute()
TheObjQualifierof the attribute from the date data set that defines the PoP period.- Returns:
- The date data set attribute that defines the PoP attribute.
-
getPeriodsAgo
public java.lang.Integer getPeriodsAgo()
The number of periods defined by theattributeabout which this period will be shifted about. The positive number shifts the period to the past, the negative to the future.- Returns:
- The number of periods the data will be shifted about.
-
-