X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-repo-spi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Frepo%2Fspi%2FPotentialSchemaSource.java;h=a42c904b383c171f43cd76aeb75279c10a30f739;hb=04e2170a5aa0e292c3850b8358c396c099d3f920;hp=c9663386583bb259d96ddba2ac4d39b0c84bae6b;hpb=cca8f2d7d2e6b2bfecdb925ff7e8da462cee6371;p=yangtools.git diff --git a/yang/yang-repo-spi/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/PotentialSchemaSource.java b/yang/yang-repo-spi/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/PotentialSchemaSource.java index c966338658..a42c904b38 100644 --- a/yang/yang-repo-spi/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/PotentialSchemaSource.java +++ b/yang/yang-repo-spi/src/main/java/org/opendaylight/yangtools/yang/model/repo/spi/PotentialSchemaSource.java @@ -14,16 +14,15 @@ import com.google.common.annotations.Beta; import com.google.common.collect.Interner; import com.google.common.collect.Interners; import java.util.Objects; -import org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation; -import org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier; +import org.opendaylight.yangtools.yang.model.api.source.SourceIdentifier; +import org.opendaylight.yangtools.yang.model.api.source.SourceRepresentation; /** - * 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. + * 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. */ @Beta -public final class PotentialSchemaSource { +public final class PotentialSchemaSource { /** * Each registered source has a cost associated with it. Since a particular * representation can be acquired by various means, here are general constants @@ -79,14 +78,14 @@ public final class PotentialSchemaSource { this.cost = cost; } - public static PotentialSchemaSource create( - final SourceIdentifier sourceIdentifier, final Class representation, final int cost) { - return new PotentialSchemaSource<>(sourceIdentifier, representation, cost); + public static PotentialSchemaSource create( + final SourceIdentifier sourceId, final Class representation, final int cost) { + return new PotentialSchemaSource<>(sourceId, representation, cost); } - public static PotentialSchemaSource create( - final SourceIdentifier sourceIdentifier, final Class representation, final Costs cost) { - return new PotentialSchemaSource<>(sourceIdentifier, representation, cost.getValue()); + public static PotentialSchemaSource create( + final SourceIdentifier sourceId, final Class representation, final Costs cost) { + return new PotentialSchemaSource<>(sourceId, representation, cost.getValue()); } /**