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.ParcelableHorizontalOffset defines the horizontal offset of the left and right edges of the content.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<HorizontalOffset>CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description HorizontalOffset(float left, float right)Constructs a newHorizontalOffsetconfigured with left and right offsets.protectedHorizontalOffset(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(java.lang.Object o)floatgetLeft()Returns left offset.floatgetRight()Returns right offset.inthashCode()java.lang.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<HorizontalOffset> CREATOR
-
-
Constructor Detail
-
HorizontalOffset
public HorizontalOffset(float left, float right)Constructs a newHorizontalOffsetconfigured with left and right offsets.- Parameters:
left- Left offset.right- Right offset.
-
HorizontalOffset
protected HorizontalOffset(android.os.Parcel in)
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-