*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/eplv10.html
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.opendaylight.yangtools.yang.model.repo.spi;
private final int value;
- private Costs(final int value) {
+ Costs(final int value) {
this.value = value;
}
private final SourceIdentifier sourceIdentifier;
private final int cost;
- private PotentialSchemaSource(final SourceIdentifier sourceIdentifier, final Class<? extends T> representation, final int cost) {
+ private PotentialSchemaSource(final SourceIdentifier sourceIdentifier, final Class<? extends T> representation,
+ final int cost) {
this.representation = Preconditions.checkNotNull(representation);
this.sourceIdentifier = Preconditions.checkNotNull(sourceIdentifier);
Preconditions.checkArgument(cost >= 0, "cost has to be non-negative");
this.cost = cost;
}
- public static final <T extends SchemaSourceRepresentation> PotentialSchemaSource<T> create(final SourceIdentifier sourceIdentifier, final Class<? extends T> representation, final int cost) {
+ public static <T extends SchemaSourceRepresentation> PotentialSchemaSource<T> create(
+ final SourceIdentifier sourceIdentifier, final Class<? extends T> representation, final int cost) {
return new PotentialSchemaSource<>(sourceIdentifier, representation, cost);
}