- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for fromInteger (0.16 seconds)
-
android/guava/src/com/google/common/net/InetAddresses.java
* * @param address {@code int}, the 32bit integer address to be converted * @return {@link Inet4Address} equivalent of the argument */ public static Inet4Address fromInteger(int address) { return getInet4Address(Ints.toByteArray(address)); } /** * Returns the {@code Inet4Address} corresponding to a given {@code BigInteger}. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 47.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
assertThat(InetAddresses.coerceToInteger(InetAddresses.forString("127.0.0.1"))) .isEqualTo(0x7f000001); } public void testFromInteger() { assertThat(InetAddresses.fromInteger(0x7f000001)) .isEqualTo(InetAddresses.forString("127.0.0.1")); } public void testFromLittleEndianByteArray() throws UnknownHostException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 36.3K bytes - Click Count (0)