Class GenericFuel

  • java.lang.Object
    • com.here.sdk.search.GenericFuel

  • public final class GenericFuel
    extends java.lang.Object

    Contains generic fuel type info of fuel station.

    Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.List<FuelAdditive> additives
      The list of available fuel additives.
      FuelType type
      The type of the fuel.
    • Constructor Summary

      Constructors 
      Constructor Description
      GenericFuel​(FuelType type)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        @NonNull
        public FuelType type

        The type of the fuel.

      • additives

        @NonNull
        public java.util.List<FuelAdditive> additives

        The list of available fuel additives. The list can be empty when no fuel additives are available or when the information is unknown.

    • Constructor Detail

      • GenericFuel

        public GenericFuel​(@NonNull
                           FuelType type)

        Creates a new instance.

        Parameters:
        type -

        The type of the fuel.

    • Method Detail

      • equals

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

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