@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((alphabet == null) ? 0 : alphabet.hashCode()); result = prime * result + ((indicationSense == null) ? 0 : indicationSense.hashCode()); result = prime * result + ((indicationType == null) ? 0 : indicationType.hashCode()); return result; }
public static IndicationType parseDataCoding(byte dataCoding) throws IllegalArgumentException { byte value = (byte)(dataCoding & MASK_INDICATION_TYPE); for (IndicationType val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException("No enum const IndicationType with value " + value + " for dataCoding " + dataCoding); } }
public DataCoding newInstance(byte dataCoding) { /* * Mobile may discard the contents of the message, and only present the * indication to the user. */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, null); } }
public byte toByte() { byte value = 0; if (!isStoreMessage()) { value = DataCodingFactory1100.GROUP; } else if (alphabet.equals(Alphabet.ALPHA_DEFAULT)) { value = DataCodingFactory1101.GROUP; } else if (alphabet.equals(Alphabet.ALPHA_UCS2)) { value = DataCodingFactory1110.GROUP; } value |= indicationSense.value(); value |= indicationType.value(); return value; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; MessageWaitingDataCoding other = (MessageWaitingDataCoding)obj; if (alphabet == null) { if (other.alphabet != null) return false; } else if (!alphabet.equals(other.alphabet)) return false; if (indicationSense == null) { if (other.indicationSense != null) return false; } else if (!indicationSense.equals(other.indicationSense)) return false; if (indicationType == null) { if (other.indicationType != null) return false; } else if (!indicationType.equals(other.indicationType)) return false; return true; }
public DataCoding newInstance(byte dataCoding) { /* * Mobile shall store the text message of the SMS in addition to setting * indication */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); } }
public byte toByte() { byte value = 0; if (!isStoreMessage()) { value = DataCodingFactory1100.GROUP; } else if (alphabet.equals(Alphabet.ALPHA_DEFAULT)) { value = DataCodingFactory1101.GROUP; } else if (alphabet.equals(Alphabet.ALPHA_UCS2)) { value = DataCodingFactory1110.GROUP; } value |= indicationSense.value(); value |= indicationType.value(); return value; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; MessageWaitingDataCoding other = (MessageWaitingDataCoding)obj; if (alphabet == null) { if (other.alphabet != null) return false; } else if (!alphabet.equals(other.alphabet)) return false; if (indicationSense == null) { if (other.indicationSense != null) return false; } else if (!indicationSense.equals(other.indicationSense)) return false; if (indicationType == null) { if (other.indicationType != null) return false; } else if (!indicationType.equals(other.indicationType)) return false; return true; }
public DataCoding newInstance(byte dataCoding) { /* * Mobile may discard the contents of the message, and only present the * indication to the user. */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, null); } }
public static IndicationType parseDataCoding(byte dataCoding) throws IllegalArgumentException { byte value = (byte)(dataCoding & MASK_INDICATION_TYPE); for (IndicationType val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException("No enum const IndicationType with value " + value + " for dataCoding " + dataCoding); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((alphabet == null) ? 0 : alphabet.hashCode()); result = prime * result + ((indicationSense == null) ? 0 : indicationSense.hashCode()); result = prime * result + ((indicationType == null) ? 0 : indicationType.hashCode()); return result; }
public byte toByte() { byte value = 0; if (!isStoreMessage()) { value = DataCodingFactory1100.GROUP; } else if (alphabet.equals(Alphabet.ALPHA_DEFAULT)) { value = DataCodingFactory1101.GROUP; } else if (alphabet.equals(Alphabet.ALPHA_UCS2)) { value = DataCodingFactory1110.GROUP; } value |= indicationSense.value(); value |= indicationType.value(); return value; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; MessageWaitingDataCoding other = (MessageWaitingDataCoding)obj; if (alphabet == null) { if (other.alphabet != null) return false; } else if (!alphabet.equals(other.alphabet)) return false; if (indicationSense == null) { if (other.indicationSense != null) return false; } else if (!indicationSense.equals(other.indicationSense)) return false; if (indicationType == null) { if (other.indicationType != null) return false; } else if (!indicationType.equals(other.indicationType)) return false; return true; }
public DataCoding newInstance(byte dataCoding) { // it's uncompressed UCS2 IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_UCS2); } }
public static IndicationType parseDataCoding(byte dataCoding) throws IllegalArgumentException { byte value = (byte)(dataCoding & MASK_INDICATION_TYPE); for (IndicationType val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException("No enum const IndicationType with value " + value + " for dataCoding " + dataCoding); } }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((alphabet == null) ? 0 : alphabet.hashCode()); result = prime * result + ((indicationSense == null) ? 0 : indicationSense.hashCode()); result = prime * result + ((indicationType == null) ? 0 : indicationType.hashCode()); return result; }
public DataCoding newInstance(byte dataCoding) { /* * Mobile may discard the contents of the message, and only present the * indication to the user. */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, null); } }
public static IndicationType valueOf(byte value) throws IllegalArgumentException { for (IndicationType val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException("No enum const IndicationType with value " + value); }
public DataCoding newInstance(byte dataCoding) { /* * Mobile shall store the text message of the SMS in addition to setting * indication */ IndicationSense indicationSense = IndicationSense.parseDataCoding(dataCoding); IndicationType indicationType = IndicationType.parseDataCoding(dataCoding); return new MessageWaitingDataCoding(indicationSense, indicationType, Alphabet.ALPHA_DEFAULT); } }
public static IndicationType valueOf(byte value) throws IllegalArgumentException { for (IndicationType val : values()) { if (val.value == value) return val; } throw new IllegalArgumentException("No enum const IndicationType with value " + value); }