public Address(byte typeOfNumber, byte numberingPlanIndicator, String address) { this(TypeOfNumber.valueOf(typeOfNumber), NumberingPlanIndicator.valueOf(numberingPlanIndicator), address); }
private boolean hasEqualAddrNpi(BindParameter other) { if (addrNpi == null) { if (other.addrNpi != null) { return false; } } return addrNpi.equals(other.addrNpi); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((address == null) ? 0 : address.hashCode()); result = prime * result + ((numberingPlanIndicator == null) ? 0 : numberingPlanIndicator.hashCode()); result = prime * result + ((typeOfNumber == null) ? 0 : typeOfNumber.hashCode()); return result; }
public byte getNpi() { return numberingPlanIndicator.value(); }
/** * Get the associated <tt>NumberingPlanIndicator</tt> by it's value. * * @param value is the value. * @return the associated enum const for specified value. * @throws IllegalArgumentException if there is no enum const associated * with specified <tt>value</tt>. */ public static NumberingPlanIndicator valueOf(byte value) throws IllegalArgumentException { for (NumberingPlanIndicator val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const NumberingPlanIndicator with value " + value); } }
public byte getNpi() { return numberingPlanIndicator.value(); }
/** * Get the associated <tt>NumberingPlanIndicator</tt> by it's value. * * @param value is the value. * @return the associated enum const for specified value. * @throws IllegalArgumentException if there is no enum const associated * with specified <tt>value</tt>. */ public static NumberingPlanIndicator valueOf(byte value) throws IllegalArgumentException { for (NumberingPlanIndicator val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const NumberingPlanIndicator with value " + value); } }
public byte getNpi() { return numberingPlanIndicator.value(); }
public Address(byte typeOfNumber, byte numberingPlanIndicator, String address) { this(TypeOfNumber.valueOf(typeOfNumber), NumberingPlanIndicator.valueOf(numberingPlanIndicator), address); }
private boolean hasEqualNumberingPlanIndicator(Address other) { if (numberingPlanIndicator == null) { if (other.numberingPlanIndicator != null) { return false; } } return numberingPlanIndicator.equals(other.numberingPlanIndicator); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((address == null) ? 0 : address.hashCode()); result = prime * result + ((numberingPlanIndicator == null) ? 0 : numberingPlanIndicator.hashCode()); result = prime * result + ((typeOfNumber == null) ? 0 : typeOfNumber.hashCode()); return result; }
/** * Get the associated <tt>NumberingPlanIndicator</tt> by it's value. * * @param value is the value. * @return the associated enum const for specified value. * @throws IllegalArgumentException if there is no enum const associated * with specified <tt>value</tt>. */ public static NumberingPlanIndicator valueOf(byte value) throws IllegalArgumentException { for (NumberingPlanIndicator val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const NumberingPlanIndicator with value " + value); } }
public byte getNpi() { return numberingPlanIndicator.value(); }
public Address(byte typeOfNumber, byte numberingPlanIndicator, String address) { this(TypeOfNumber.valueOf(typeOfNumber), NumberingPlanIndicator.valueOf(numberingPlanIndicator), address); }
private boolean hasEqualNumberingPlanIndicator(Address other) { if (numberingPlanIndicator == null) { if (other.numberingPlanIndicator != null) { return false; } } return numberingPlanIndicator.equals(other.numberingPlanIndicator); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((addrNpi == null) ? 0 : addrNpi.hashCode()); result = prime * result + ((addrTon == null) ? 0 : addrTon.hashCode()); result = prime * result + ((addressRange == null) ? 0 : addressRange.hashCode()); result = prime * result + ((bindType == null) ? 0 : bindType.hashCode()); result = prime * result + ((password == null) ? 0 : password.hashCode()); result = prime * result + ((systemId == null) ? 0 : systemId.hashCode()); result = prime * result + ((systemType == null) ? 0 : systemType.hashCode()); return result; }
/** * Get the associated <tt>NumberingPlanIndicator</tt> by it's value. * * @param value is the value. * @return the associated enum const for specified value. * @throws IllegalArgumentException if there is no enum const associated * with specified <tt>value</tt>. */ public static NumberingPlanIndicator valueOf(byte value) throws IllegalArgumentException { for (NumberingPlanIndicator val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const NumberingPlanIndicator with value " + value); } }
public byte[] sendCancelSm(OutputStream os, int sequenceNumber, String serviceType, String messageId, TypeOfNumber sourceAddrTon, NumberingPlanIndicator sourceAddrNpi, String sourceAddr, TypeOfNumber destAddrTon, NumberingPlanIndicator destAddrNpi, String destinationAddr) throws PDUStringException, IOException { byte[] b = pduComposer.cancelSm(sequenceNumber, serviceType, messageId, sourceAddrTon.value(), sourceAddrNpi.value(), sourceAddr, destAddrTon.value(), destAddrNpi.value(), destinationAddr); writeAndFlush(os, b); return b; }
public Address(byte typeOfNumber, byte numberingPlanIndicator, String address) { this(TypeOfNumber.valueOf(typeOfNumber), NumberingPlanIndicator.valueOf(numberingPlanIndicator), address); }