public static Ipv6FlowLabel getDefaultInstance(String defaultValue) { return new Ipv6FlowLabel(Long.valueOf(defaultValue)); }
@ConstructorProperties("value") public Ipv6FlowLabel(java.lang.Long _value) { if (_value != null) { check_valueRange(_value); } Preconditions.checkNotNull(_value, "Supplied value may not be null"); this._value = _value; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_flabelMask == null) ? 0 : _flabelMask.hashCode()); result = prime * result + ((_ipv6Flabel == null) ? 0 : _ipv6Flabel.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
public Ipv6LabelBuilder setFlabelMask(Ipv6FlowLabel value) { if (value != null) { BigInteger _constraint = BigInteger.valueOf(value.getValue()); boolean isValidRange = false; for (Range<BigInteger> r : _flabelMask_range()) { if (r.contains(_constraint)) { isValidRange = true; } } if (!isValidRange) { throw new IllegalArgumentException(String.format("Invalid range: %s, expected: %s.", value, _flabelMask_range)); } } this._flabelMask = value; return this; } public static List<Range<BigInteger>> _flabelMask_range() {
public Ipv6LabelBuilder setIpv6Flabel(Ipv6FlowLabel value) { if (value != null) { BigInteger _constraint = BigInteger.valueOf(value.getValue()); boolean isValidRange = false; for (Range<BigInteger> r : _ipv6Flabel_range()) { if (r.contains(_constraint)) { isValidRange = true; } } if (!isValidRange) { throw new IllegalArgumentException(String.format("Invalid range: %s, expected: %s.", value, _ipv6Flabel_range)); } } this._ipv6Flabel = value; return this; } public static List<Range<BigInteger>> _ipv6Flabel_range() {
public static Ipv6FlowLabel getDefaultInstance(String defaultValue) { return new Ipv6FlowLabel(java.lang.Long.valueOf(defaultValue)); }
@ConstructorProperties("value") public Ipv6FlowLabel(java.lang.Long _value) { if (_value != null) { check_valueRange(_value); } Preconditions.checkNotNull(_value, "Supplied value may not be null"); this._value = _value; }