Class PotentialSchemaSource<T extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation>


  • @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.
    • 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()
      • getRepresentation

        public Class<? extends T> getRepresentation()
      • getCost

        public int getCost()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object