Interface HasName

    • Method Detail

      • filterByName

        static <T extends HasNameOptional<T> filterByName​(Collection<T> collections,
                                                            String name)
        An helper method to filter a Collection of HasName object based on its name.
        Parameters:
        collections - the collection of HasName.
        Returns:
        a set containing only the string ids.
      • getIds

        static Set<String> getIds​(Collection<? extends HasName> collections)
        An helper method to get string names from a collection of HasName objects.
        Parameters:
        collections - the collection of HasName.
        Returns:
        a set containing only the string ids.