@Test public void testCheckRange() throws Exception { checkRange(0, 0, 0); checkRange(0, 10, 100); }
protected static void checkRange(int min, int val, int max) throws IntegerOutOfRangeException { if ((val < min) || (val > max)) { throw new IntegerOutOfRangeException(min, max, val); } }
ByteData extends SmppObject { protected static void checkRange(int min, int val, int max) throws IntegerOutOfRangeException { if ((val < min) || (val > max)) { throw new IntegerOutOfRangeException(min, max, val); } } }
ByteData extends SmppObject { protected static void checkRange(int min, int val, int max) throws IntegerOutOfRangeException { if ((val < min) || (val > max)) { throw new IntegerOutOfRangeException(min, max, val); } } ByteData(); }
ByteData extends SmppObject { protected static void checkRange(int min, int val, int max) throws IntegerOutOfRangeException { if ((val < min) || (val > max)) { throw new IntegerOutOfRangeException(min, max, val); } } ByteData(); abstract void setData(ByteBuffer buffer); abstract ByteBuffer getData(); String debugString(); }
ByteData extends SmppObject { protected static void checkRange(int min, int val, int max) throws IntegerOutOfRangeException { if ((val < min) || (val > max)) { throw new IntegerOutOfRangeException(min, max, val); } } ByteData(); abstract void setData(ByteBuffer buffer); abstract ByteBuffer getData(); String debugString();  }