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 Classes Modifier and Type Class Description static classPotentialSchemaSource.CostsEach 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 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)booleanequals(Object obj)intgetCost()Class<? extends T>getRepresentation()org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifiergetSourceIdentifier()inthashCode()
-
-
-
Method Detail
-
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()
-
getCost
public int getCost()
-
-