Class PotentialSchemaSource<T extends SchemaSourceRepresentation>
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.repo.spi.PotentialSchemaSource<T>
-
@Beta public final class PotentialSchemaSource<T extends 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 Classes Modifier and Type Class Description static class
PotentialSchemaSource.Costs
Each registered source has a cost associated with it.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PotentialSchemaSource<T>
cachedReference()
Return a cached reference to an object equal to this object.static <T extends SchemaSourceRepresentation>
PotentialSchemaSource<T>create(SourceIdentifier sourceIdentifier, Class<? extends T> representation, int cost)
static <T extends SchemaSourceRepresentation>
PotentialSchemaSource<T>create(SourceIdentifier sourceIdentifier, Class<? extends T> representation, PotentialSchemaSource.Costs cost)
boolean
equals(Object obj)
int
getCost()
Class<? extends T>
getRepresentation()
SourceIdentifier
getSourceIdentifier()
int
hashCode()
-
-
-
Method Detail
-
create
public static <T extends SchemaSourceRepresentation> PotentialSchemaSource<T> create(SourceIdentifier sourceIdentifier, Class<? extends T> representation, int cost)
-
create
public static <T extends SchemaSourceRepresentation> PotentialSchemaSource<T> create(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 SourceIdentifier getSourceIdentifier()
-
getCost
public int getCost()
-
-