Class TypeCollector.ReachableTypes

java.lang.Object
org.springframework.data.util.TypeCollector.ReachableTypes
Enclosing class:
TypeCollector

public static class TypeCollector.ReachableTypes extends Object
Container for reachable types starting from a set of root types.
Since:
3.0
Author:
Christoph Strobl, Sebastien Deleuze, John Blum, Mark Paluch
  • Method Details

    • forEach

      public void forEach(Consumer<ResolvableType> action)
      Performs the given action for each element of the reachable types until all elements have been processed or the action throws an exception. Actions are performed in the order of iteration, if that order is specified. Exceptions thrown by the action are relayed to the caller.
      Parameters:
      action - The action to be performed for each element
    • list

      public List<Class<?>> list()
      Return all reachable types as list of classes. The resulting list is unmodifiable.
      Returns:
      an unmodifiable list of reachable types.