Class Descendants

java.lang.Object
io.sundr.builder.internal.functions.Descendants

public class Descendants extends Object
  • Field Details

    • BUILDABLE_DECENDANTS

      public static final Function<io.sundr.model.TypeDef,Set<io.sundr.model.TypeDef>> BUILDABLE_DECENDANTS
    • PROPERTY_BUILDABLE_DESCENDANTS

      public static Function<io.sundr.model.Property,Set<io.sundr.model.Property>> PROPERTY_BUILDABLE_DESCENDANTS
      Find all buildable descendant equivalents of a property.
  • Constructor Details

    • Descendants

      public Descendants()
  • Method Details

    • isDescendant

      public static boolean isDescendant(io.sundr.model.TypeDef item, io.sundr.model.TypeDef candidate)
      Checks if a type is an descendant of an other type
      Parameters:
      item - The base type.
      candidate - The candidate type.
      Returns:
      true if candidate is a descendant of base type.
    • isNestingIgnored

      public static boolean isNestingIgnored(io.sundr.model.Property property)
    • isNestingFiltered

      public static boolean isNestingFiltered(io.sundr.model.Property property, io.sundr.model.ClassRef classRef)