public TcpMatchRangesBuilder setTcpSourcePortEnd(PortNumber value) { if (value != null) { checkTcpSourcePortEndRange(value.getValue()); } this._tcpSourcePortEnd = value; return this; } /**
public static PortNumber getDefaultInstance(String defaultValue) { return new PortNumber(Integer.valueOf(defaultValue)); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_tcpDestinationPort == null) ? 0 : _tcpDestinationPort.hashCode()); result = prime * result + ((_tcpSourcePort == null) ? 0 : _tcpSourcePort.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
return false; } else if(!_port.equals(other.getPort())) { return false;
@ConstructorProperties("value") public PortNumber(java.lang.Integer _value) { if (_value != null) { check_valueRange(_value); } Preconditions.checkNotNull(_value, "Supplied value may not be null"); this._value = _value; }
return false; } else if(!_port.equals(other.getPort())) { return false;
@ConstructorProperties("value") public PortNumber(java.lang.Integer _value) { if (_value != null) { check_valueRange(_value); } Preconditions.checkNotNull(_value, "Supplied value may not be null"); this._value = _value; }
public CmtsNodeBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
public static PortNumber getDefaultInstance(String defaultValue) { return new PortNumber(java.lang.Integer.valueOf(defaultValue)); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_sctpDestinationPort == null) ? 0 : _sctpDestinationPort.hashCode()); result = prime * result + ((_sctpSourcePort == null) ? 0 : _sctpSourcePort.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
public UpdMatchRangesBuilder setUdpSourcePortStart(PortNumber value) { if (value != null) { checkUdpSourcePortStartRange(value.getValue()); } this._udpSourcePortStart = value; return this; } /**
private static Layer4Match Layer4MatchAsSctp(final Match sourceMatch) { SctpMatchBuilder sctpMatchBuilder = new SctpMatchBuilder(); Integer sourcePort = transportPort(sourceMatch, MatchType.TP_SRC); Integer destinationPort = transportPort(sourceMatch, MatchType.TP_DST); if (sourcePort != null) { sctpMatchBuilder.setSctpSourcePort(new PortNumber(sourcePort)); } if (destinationPort != null) { sctpMatchBuilder.setSctpDestinationPort(new PortNumber( destinationPort)); } if(sourcePort != null || destinationPort != null) { return sctpMatchBuilder.build(); } return null; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((_udpDestinationPort == null) ? 0 : _udpDestinationPort.hashCode()); result = prime * result + ((_udpSourcePort == null) ? 0 : _udpSourcePort.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); return result; }
public NetconfNorthboundTcpBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**
private static Layer4Match Layer4MatchAsUdp(final Match sourceMatch) { UdpMatchBuilder udpMatchBuilder = new UdpMatchBuilder(); Integer sourcePort = transportPort(sourceMatch, MatchType.TP_SRC); Integer destinationPort = transportPort(sourceMatch, MatchType.TP_DST); if (sourcePort != null) { udpMatchBuilder.setUdpSourcePort(new PortNumber(sourcePort)); } if (destinationPort != null) { udpMatchBuilder.setUdpDestinationPort(new PortNumber( destinationPort)); } if(sourcePort != null || destinationPort != null) { return udpMatchBuilder.build(); } return null; }
@Override public int hashCode() { if (hashValid) { return hash; } final int prime = 31; int result = 1; result = prime * result + ((_udpDestinationPortEnd == null) ? 0 : _udpDestinationPortEnd.hashCode()); result = prime * result + ((_udpDestinationPortStart == null) ? 0 : _udpDestinationPortStart.hashCode()); result = prime * result + ((_udpSourcePortEnd == null) ? 0 : _udpSourcePortEnd.hashCode()); result = prime * result + ((_udpSourcePortStart == null) ? 0 : _udpSourcePortStart.hashCode()); result = prime * result + ((augmentation == null) ? 0 : augmentation.hashCode()); hash = result; hashValid = true; return result; }
public SalNetconfConnectorBuilder setPort(PortNumber value) { if (value != null) { checkPortRange(value.getValue()); } this._port = value; return this; } /**