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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEach registered source has a cost associated with it. -
Method Summary
Modifier and TypeMethodDescriptionReturn a cached reference to an object equal to this object.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) 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) booleanintgetCost()org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifierinthashCode()
-
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
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
-
getCost
public int getCost() -
hashCode
public int hashCode() -
equals
-