public static Timeticks getDefaultInstance(String defaultValue) { return new Timeticks(java.lang.Long.valueOf(defaultValue)); }
@ConstructorProperties("value") public Timeticks(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() { if (hashValid) { return hash; } final int prime = 31; int result = 1; result = prime * result + ((_negotiatedHoldTime == null) ? 0 : _negotiatedHoldTime.hashCode()); result = prime * result + ((_uptime == null) ? 0 : _uptime.hashCode()); hash = result; hashValid = true; return result; }
public State8Builder setUptime(Timeticks value) { if (value != null) { checkUptimeRange(value.getValue()); } this._uptime = value; return this; } /**
@Override public boolean equals(java.lang.Object obj) { if (this == obj) { return true; } if (!(obj instanceof DataObject)) { return false; } if (!org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev140305.State8.class.equals(((DataObject)obj).getImplementedInterface())) { return false; } org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev140305.State8 other = (org.opendaylight.yang.gen.v1.http.openconfig.net.yang.bgp.rev140305.State8)obj; if (_negotiatedHoldTime == null) { if (other.getNegotiatedHoldTime() != null) { return false; } } else if(!_negotiatedHoldTime.equals(other.getNegotiatedHoldTime())) { return false; } if (_uptime == null) { if (other.getUptime() != null) { return false; } } else if(!_uptime.equals(other.getUptime())) { return false; } return true; }
@ConstructorProperties("value") public Timeticks(java.lang.Long _value) { if (_value != null) { check_valueRange(_value); } Preconditions.checkNotNull(_value, "Supplied value may not be null"); this._value = _value; }
public static Timeticks getDefaultInstance(String defaultValue) { return new Timeticks(Long.valueOf(defaultValue)); }
@ConstructorProperties("value") public Timeticks(java.lang.Long _value) { if (_value != null) { check_valueRange(_value); } Preconditions.checkNotNull(_value, "Supplied value may not be null"); this._value = _value; }
public static Timeticks getDefaultInstance(String defaultValue) { return new Timeticks(Long.valueOf(defaultValue)); }
@ConstructorProperties("value") public Timeticks(Long _value) { if (_value != null) { check_valueRange(_value); } Objects.requireNonNull(_value, "Supplied value may not be null"); this._value = _value; }
public static Timeticks getDefaultInstance(String defaultValue) { return new Timeticks(Long.valueOf(defaultValue)); }