Class PotentialSchemaSource<T extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation>

java.lang.Object
org.opendaylight.yangtools.yang.model.repo.spi.PotentialSchemaSource<T>

@Beta public final class PotentialSchemaSource<T extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation> extends Object
A potential schema source. Instances of this class track the various representations of a schema source and the cost attached to obtaining the source from them.
  • Method Details

    • create

      public static <T extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation> PotentialSchemaSource<T> create(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier, Class<? extends T> representation, int cost)
    • create

      public static <T extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation> PotentialSchemaSource<T> create(org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier sourceIdentifier, Class<? extends T> representation, PotentialSchemaSource.Costs cost)
    • cachedReference

      public PotentialSchemaSource<T> cachedReference()
      Return a cached reference to an object equal to this object.
      Returns:
      A potentially shared reference, not guaranteed to be unique.
    • getSourceIdentifier

      public org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier getSourceIdentifier()
    • getRepresentation

      public Class<? extends T> getRepresentation()
    • getCost

      public int getCost()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object