Class SpecificExtraction

  • All Implemented Interfaces:
    android.os.Parcelable

    public class SpecificExtraction
    extends Extraction
    • 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<SpecificExtraction> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      SpecificExtraction​(java.lang.String name, java.lang.String value, java.lang.String entity, Box box, java.util.List<Extraction> candidates)
      Value object for a specific extraction from the Gini API.
    • Field Detail

    • Constructor Detail

      • SpecificExtraction

        public SpecificExtraction​(java.lang.String name,
                                  java.lang.String value,
                                  java.lang.String entity,
                                  @Nullable
                                  Box box,
                                  java.util.List<Extraction> candidates)
        Value object for a specific extraction from the Gini API.
        Parameters:
        name - The specific extraction's name, e.g. "amountToPay".
        value - The extraction's value. Changing this value marks the extraction as dirty.
        entity - The extraction's entity.
        box - Optional the box where the extraction is found. Only available on some extractions.
        candidates - A list containing other candidates for this specific extraction. Candidates are of the same entity as the found extraction.
    • Method Detail

      • getName

        public java.lang.String getName()
      • getCandidate

        public java.util.List<Extraction> getCandidate()
      • describeContents

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

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