test_class.declarator: logger = LoggerFactory.getLogger(TypeOfAddressTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(TypeOfAddressTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.file: ch-commons-gsm/src/test/java/com/cloudhopper/commons/gsm/TypeOfAddressTest.java
test_class.identifier: TypeOfAddressTest
test_case.body: @Test
      public void valueOf() {
          TypeOfAddress toa = TypeOfAddress.valueOf((byte)0x91);
          Assert.assertEquals(Ton.INTERNATIONAL, toa.getTon());
          Assert.assertEquals(Npi.ISDN, toa.getNpi());
          TypeOfAddress toa2 = TypeOfAddress.valueOf((byte)0x81);
          Assert.assertEquals(Ton.INTERNATIONAL, toa2.getTon());
          Assert.assertEquals(Npi.UNKNOWN, toa2.getNpi());
      }
test_case.class_method_signature: TypeOfAddressTest.valueOf()
test_case.full_signature: @Test public void valueOf()
test_case.identifier: valueOf
test_case.invocations: valueOf assertEquals getTon assertEquals getNpi valueOf assertEquals getTon assertEquals getNpi
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void valueOf()
focal_class.declarator: ton
focal_class.modifier: private
focal_class.original_string: private Ton ton;
focal_class.type: Ton
focal_class.var_name: ton
focal_class.declarator: npi
focal_class.modifier: private
focal_class.original_string: private Npi npi;
focal_class.type: Npi
focal_class.var_name: npi
focal_class.file: ch-commons-gsm/src/main/java/com/cloudhopper/commons/gsm/TypeOfAddress.java
focal_class.identifier: TypeOfAddress
focal_class.class_method_signature: TypeOfAddress.TypeOfAddress(Ton ton, Npi npi)
focal_class.full_signature: public  TypeOfAddress(Ton ton, Npi npi)
focal_class.identifier: TypeOfAddress
focal_class.modifiers: public
focal_class.parameters: (Ton ton, Npi npi)
focal_class.signature:  TypeOfAddress(Ton ton, Npi npi)
focal_class.class_method_signature: TypeOfAddress.getTon()
focal_class.full_signature: public Ton getTon()
focal_class.identifier: getTon
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Ton
focal_class.signature: Ton getTon()
focal_class.class_method_signature: TypeOfAddress.setTon(Ton ton)
focal_class.full_signature: public void setTon(Ton ton)
focal_class.identifier: setTon
focal_class.modifiers: public
focal_class.parameters: (Ton ton)
focal_class.return: void
focal_class.signature: void setTon(Ton ton)
focal_class.class_method_signature: TypeOfAddress.getNpi()
focal_class.full_signature: public Npi getNpi()
focal_class.identifier: getNpi
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Npi
focal_class.signature: Npi getNpi()
focal_class.class_method_signature: TypeOfAddress.setNpi(Npi npi)
focal_class.full_signature: public void setNpi(Npi npi)
focal_class.identifier: setNpi
focal_class.modifiers: public
focal_class.parameters: (Npi npi)
focal_class.return: void
focal_class.signature: void setNpi(Npi npi)
focal_class.class_method_signature: TypeOfAddress.toByte()
focal_class.full_signature: public byte toByte()
focal_class.identifier: toByte
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: byte
focal_class.signature: byte toByte()
focal_class.class_method_signature: TypeOfAddress.toByte(TypeOfAddress toa)
focal_class.full_signature: public static byte toByte(TypeOfAddress toa)
focal_class.identifier: toByte
focal_class.modifiers: public static
focal_class.parameters: (TypeOfAddress toa)
focal_class.return: byte
focal_class.signature: byte toByte(TypeOfAddress toa)
focal_class.class_method_signature: TypeOfAddress.valueOf(byte b)
focal_class.full_signature: public static TypeOfAddress valueOf(byte b)
focal_class.identifier: valueOf
focal_class.modifiers: public static
focal_class.parameters: (byte b)
focal_class.return: TypeOfAddress
focal_class.signature: TypeOfAddress valueOf(byte b)
focal_class.class_method_signature: TypeOfAddress.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public static TypeOfAddress valueOf(byte b) {
          // bits 0-3 are the ton (shift over 0, then only the first 4 bits)
          int ton = (b & 0x0F);
          // bits 4-7 are the npi (shift over 4, then only the first 3 bits)
          int npi = ((b >> 4) & 0x07);
          // create our type of address now
          return new TypeOfAddress(Ton.fromInt(ton), Npi.fromInt(npi));
      }
focal_method.class_method_signature: TypeOfAddress.valueOf(byte b)
focal_method.full_signature: public static TypeOfAddress valueOf(byte b)
focal_method.identifier: valueOf
focal_method.invocations: fromInt fromInt
focal_method.modifiers: public static
focal_method.parameters: (byte b)
focal_method.return: TypeOfAddress
focal_method.signature: TypeOfAddress valueOf(byte b)