public Address(byte typeOfNumber, byte numberingPlanIndicator, String address) { this(TypeOfNumber.valueOf(typeOfNumber), NumberingPlanIndicator.valueOf(numberingPlanIndicator), address); }
private boolean hasEqualAddrTon(BindParameter other) { if (addrTon == null && other.addrTon != null) { return false; } return addrTon.equals(other.addrTon); }
@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 getTon() { return typeOfNumber.value(); }
/** * Get the <tt>TypeOfNumber</tt> based on the specified byte value * representation. * * @param value is the byte value representation. * @return is the enum const related to the specified byte value. * @throws IllegalArgumentException if there is no enum const associated * with specified byte value. */ public static TypeOfNumber valueOf(byte value) { for (TypeOfNumber val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const TypeOfNumber with value " + value); } }
public byte getTon() { return typeOfNumber.value(); }
/** * Get the <tt>TypeOfNumber</tt> based on the specified byte value * representation. * * @param value is the byte value representation. * @return is the enum const related to the specified byte value. * @throws IllegalArgumentException if there is no enum const associated * with specified byte value. */ public static TypeOfNumber valueOf(byte value) { for (TypeOfNumber val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const TypeOfNumber with value " + value); } }
public byte getTon() { return typeOfNumber.value(); }
public Address(byte typeOfNumber, byte numberingPlanIndicator, String address) { this(TypeOfNumber.valueOf(typeOfNumber), NumberingPlanIndicator.valueOf(numberingPlanIndicator), address); }
private boolean hasEqualTypeOfNumber(Address other) { if (typeOfNumber == null) { if (other.typeOfNumber != null) { return false; } } return typeOfNumber.equals(other.typeOfNumber); }
@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 <tt>TypeOfNumber</tt> based on the specified byte value * representation. * * @param value is the byte value representation. * @return is the enum const related to the specified byte value. * @throws IllegalArgumentException if there is no enum const associated * with specified byte value. */ public static TypeOfNumber valueOf(byte value) { for (TypeOfNumber val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const TypeOfNumber with value " + value); } }
public byte getTon() { return typeOfNumber.value(); }
public Address(byte typeOfNumber, byte numberingPlanIndicator, String address) { this(TypeOfNumber.valueOf(typeOfNumber), NumberingPlanIndicator.valueOf(numberingPlanIndicator), address); }
private boolean hasEqualAddrTon(BindParameter other) { if (addrTon == null) { if (other.addrTon != null) { return false; } } return addrTon.equals(other.addrTon); }
@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 <tt>TypeOfNumber</tt> based on the specified byte value * representation. * * @param value is the byte value representation. * @return is the enum const related to the specified byte value. * @throws IllegalArgumentException if there is no enum const associated * with specified byte value. */ public static TypeOfNumber valueOf(byte value) { for (TypeOfNumber val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException( "No enum const TypeOfNumber 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); }