*/
package org.opendaylight.yangtools.yang.model.util.type;
-import com.google.common.base.MoreObjects.ToStringHelper;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import java.util.List;
AbstractRangedBaseType(final QName qname, final Number minValue, final Number maxValue) {
super(qname);
- this.rangeConstraints = ImmutableList.<RangeConstraint>of(BaseConstraints.newRangeConstraint(
- minValue, maxValue, Optional.<String>absent(), Optional.<String>absent()));
+ this.rangeConstraints = ImmutableList.of(BaseConstraints.newRangeConstraint(
+ minValue, maxValue, Optional.absent(), Optional.absent()));
}
AbstractRangedBaseType(final SchemaPath path, final List<UnknownSchemaNode> unknownSchemaNodes,
public final List<RangeConstraint> getRangeConstraints() {
return rangeConstraints;
}
-
- @Override
- protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
- return super.addToStringAttributes(toStringHelper).add("range", rangeConstraints);
- }
}