Package com.parse

Class ParseRelation<T extends ParseObject>


  • public class ParseRelation<T extends ParseObject>
    extends java.lang.Object
    A class that is used to access all of the children of a many-to-many relationship. Each instance of Parse.Relation is associated with a particular parent object and key.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static <any> CREATOR  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T object)
      Adds an object to this relation.
      int describeContents()  
      ParseQuery<T> getQuery()
      Gets a query that can be used to query the objects in this relation.
      void remove​(T object)
      Removes an object from this relation.
      void writeToParcel​(Parcel dest, int flags)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CREATOR

        public static final <any> CREATOR
    • Method Detail

      • add

        public void add​(T object)
        Adds an object to this relation.
        Parameters:
        object - The object to add to this relation.
      • remove

        public void remove​(T object)
        Removes an object from this relation.
        Parameters:
        object - The object to remove from this relation.
      • getQuery

        public ParseQuery<T> getQuery()
        Gets a query that can be used to query the objects in this relation.
        Returns:
        A ParseQuery that restricts the results to objects in this relations.
      • describeContents

        public int describeContents()
      • writeToParcel

        public void writeToParcel​(Parcel dest,
                                  int flags)