Klasse CompoundSnapshotNodeFactory

java.lang.Object
de.serra.so_dirty.sn.CompoundSnapshotNodeFactory
Alle implementierten Schnittstellen:
SnapshotNodeFactory
Bekannte direkte Unterklassen:
DefaultSnapshotNodeFactory

public class CompoundSnapshotNodeFactory extends Object implements SnapshotNodeFactory
SnapshotNodeFactory that delegates to an inner list of factories.
Autor:
Peter Lamby
  • Konstruktordetails

    • CompoundSnapshotNodeFactory

      public CompoundSnapshotNodeFactory(SnapshotNodeFactory @Nullable ... inner)
      Constructs.
      Parameter:
      inner - The actual factories.
  • Methodendetails

    • add

      public void add(SnapshotNodeFactory factory)
      Add a factory to the list of factories.
      Parameter:
      factory - The factory to add.
    • supports

      public boolean supports(Class<?> type)
      Beschreibung aus Schnittstelle kopiert: SnapshotNodeFactory
      Determines if this Factory is responsible for type.
      Angegeben von:
      supports in Schnittstelle SnapshotNodeFactory
      Parameter:
      type - The type.
      Gibt zurück:
      true if the type is supported.
    • toSnapshotNode

      public @Nullable SnapshotNode toSnapshotNode(Object value)
      Beschreibung aus Schnittstelle kopiert: SnapshotNodeFactory
      Creates an SnapshotNode for value. Only call this if the type is supported.
      Angegeben von:
      toSnapshotNode in Schnittstelle SnapshotNodeFactory
      Parameter:
      value - The value for which to create an SnapshotNode.
      Gibt zurück:
      The created node