Class PotentialSchemaSource<T extends SourceRepresentation>
java.lang.Object
org.opendaylight.yangtools.yang.model.repo.spi.PotentialSchemaSource<T>
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 enum
Each 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 SourceRepresentation>
PotentialSchemaSource<T> create
(SourceIdentifier sourceId, Class<? extends T> representation, int cost) static <T extends SourceRepresentation>
PotentialSchemaSource<T> create
(SourceIdentifier sourceId, Class<? extends T> representation, PotentialSchemaSource.Costs cost) boolean
int
getCost()
int
hashCode()
-
Method Details
-
create
public static <T extends SourceRepresentation> PotentialSchemaSource<T> create(SourceIdentifier sourceId, Class<? extends T> representation, int cost) -
create
public static <T extends SourceRepresentation> PotentialSchemaSource<T> create(SourceIdentifier sourceId, 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
-
getRepresentation
-
getCost
public int getCost() -
hashCode
public int hashCode() -
equals
-