Class Suggestion

java.lang.Object
com.liferay.portal.search.rest.dto.v1_0.Suggestion
All Implemented Interfaces:
Serializable

@Generated("") public class Suggestion extends Object implements Serializable
See Also:
Generated:
  • Field Details

    • attributes

      protected Object attributes
    • score

      protected Float score
    • text

      protected String text
    • xClassName

      public String xClassName
  • Constructor Details

    • Suggestion

      public Suggestion()
  • Method Details

    • toDTO

      public static Suggestion toDTO(String json)
    • unsafeToDTO

      public static Suggestion unsafeToDTO(String json)
    • getAttributes

      @Valid public @Valid Object getAttributes()
    • setAttributes

      public void setAttributes(Object attributes)
    • setAttributes

      public void setAttributes(com.liferay.petra.function.UnsafeSupplier<Object,Exception> attributesUnsafeSupplier)
    • getScore

      @Valid public @Valid Float getScore()
    • setScore

      public void setScore(Float score)
    • setScore

      public void setScore(com.liferay.petra.function.UnsafeSupplier<Float,Exception> scoreUnsafeSupplier)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • setText

      public void setText(com.liferay.petra.function.UnsafeSupplier<String,Exception> textUnsafeSupplier)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object