Class HitImpl

java.lang.Object
com.commercetools.api.models.order.HitImpl
All Implemented Interfaces:
Hit, io.vrap.rmf.base.client.ModelBase

public class HitImpl extends Object implements Hit, io.vrap.rmf.base.client.ModelBase
Hit
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Unique identifier of the Order.
    The higher the value is, the more relevant the hit is for the search request.
    Current version of the Order.
    int
     
    void
    Unique identifier of the Order.
    void
    setRelevance(Double relevance)
    The higher the value is, the more relevant the hit is for the search request.
    void
    setVersion(Long version)
    Current version of the Order.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.order.Hit

    withHit

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • HitImpl

      public HitImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Order.

      Specified by:
      getId in interface Hit
      Returns:
      id
    • getVersion

      public Long getVersion()

      Current version of the Order.

      Specified by:
      getVersion in interface Hit
      Returns:
      version
    • getRelevance

      public Double getRelevance()

      The higher the value is, the more relevant the hit is for the search request.

      Specified by:
      getRelevance in interface Hit
      Returns:
      relevance
    • setId

      public void setId(String id)
      Description copied from interface: Hit

      Unique identifier of the Order.

      Specified by:
      setId in interface Hit
      Parameters:
      id - value to be set
    • setVersion

      public void setVersion(Long version)
      Description copied from interface: Hit

      Current version of the Order.

      Specified by:
      setVersion in interface Hit
      Parameters:
      version - value to be set
    • setRelevance

      public void setRelevance(Double relevance)
      Description copied from interface: Hit

      The higher the value is, the more relevant the hit is for the search request.

      Specified by:
      setRelevance in interface Hit
      Parameters:
      relevance - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object