Package classes

Class Object_Food

    • 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<Object_Food> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Object_Food> CREATOR
    • Method Detail

      • getKeywords

        public java.lang.String getKeywords()
      • getName

        public java.lang.String getName()
      • getDescription

        public java.lang.String getDescription()
      • getImage

        public java.lang.String getImage​(int width,
                                         int height,
                                         int quality)
        Get the food's image.
        Parameters:
        width - returns an image with the specified width in pixels.
        height - returns an image with the specified height in pixels.
        quality - returns an image with the specified quality. Scales from 0 - 100.
        Returns:
        the URL of the requested image.
      • filter

        public boolean filter​(java.io.Serializable serializable)
        Overrides:
        filter in class Object_BaseObject
      • sortFoods

        public static java.util.ArrayList<Object_Food> sortFoods​(java.util.ArrayList<Object_Food> foods)
      • writeToParcel

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