Class Size2D

  • All Implemented Interfaces:
    android.os.Parcelable, java.io.Serializable

    public class Size2D
    extends java.lang.Object
    implements android.os.Parcelable, java.io.Serializable
    Size2D class similar to Point but implements serializable
    See Also:
    Serialized Form
    • 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<Size2D> CREATOR  
      int height  
      int width  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Size2D​(int width, int height)  
      protected Size2D​(android.os.Parcel in)  
    • Field Detail

      • width

        public int width
      • height

        public int height
      • CREATOR

        public static final android.os.Parcelable.Creator<Size2D> CREATOR
    • Constructor Detail

      • Size2D

        public Size2D​(int width,
                      int height)
      • Size2D

        protected Size2D​(android.os.Parcel in)
    • Method Detail

      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • writeToParcel

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

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