Class RootItemSearchResult

java.lang.Object
de.hybris.platform.integrationservices.search.RootItemSearchResult

@Immutable public final class RootItemSearchResult extends Object
Represents the search result from the RootItemSearchService
  • Field Details

  • Method Details

    • createFrom

      public static RootItemSearchResult createFrom(Collection<Object> refPathExecutionResult)
      Creates an instance of RootItemSearchResult from given collection of reference path execution.
      Parameters:
      refPathExecutionResult - collection of objects after execution of reference path to root
      Returns:
      an instance from given collection or EMPTY_RESULT if collection is null, or empty.
    • hasAnyObjectInRefPathExecutionResult

      public boolean hasAnyObjectInRefPathExecutionResult()
      Indicates whether there is any object in reference path execution
      Returns:
      true if there is an object, else false
    • getRootItems

      public Collection<ItemModel> getRootItems()
      Get the root ItemModels
      Returns:
      Collection of root ItemModels, or an empty collection
    • 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