Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<HorizontalOffset> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        HorizontalOffset​(float left, float right)
      Constructs a new HorizontalOffset configured with left and right offsets.
      protected HorizontalOffset​(android.os.Parcel in)  
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<HorizontalOffset> CREATOR
    • 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.
      • 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:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable