com.yandex.mobile.ads.nativeads.template
Class HorizontalOffset
java.lang.Object
com.yandex.mobile.ads.nativeads.template.HorizontalOffset
- All Implemented Interfaces:
- android.os.Parcelable
public final class HorizontalOffset
extends java.lang.Object
implements android.os.Parcelable
HorizontalOffset defines the horizontal offset of the left and right edges of the content.
Field Summary
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<HorizontalOffset> | CREATOR |
Constructor Summary
Constructor and Description |
---|
HorizontalOffset(float left, float right)
Constructs a new
HorizontalOffset configured with left and right offsets. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int | describeContents() |
boolean | equals(java.lang.Object o) |
float | getLeft()
Returns left offset.
|
float | getRight()
Returns right offset.
|
int | hashCode() |
java.lang.String | toString() |
void | writeToParcel(android.os.Parcel dest, int flags) |
Constructor Detail
HorizontalOffset
public HorizontalOffset(float left, float right)
Constructs a new
HorizontalOffset
configured with left and right offsets.- Parameters:
left
- Left offset.right
- Right offset.
Method Detail
getLeft
public float getLeft()
Returns left offset.
- Returns:
- Left offset.
getRight
public float getRight()
Returns right offset.
- Returns:
- Right offset.
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable