src/share/classes/java/net/Inet4Address.java

Print this page

        

*** 175,185 **** * * @return a <code>boolean</code> indicating if the InetAddress is * a loopback address; or false otherwise. * @since 1.4 */ - private static final int loopback = 2130706433; /* 127.0.0.1 */ public boolean isLoopbackAddress() { /* 127.x.x.x */ byte[] byteAddr = getAddress(); return byteAddr[0] == 127; } --- 175,184 ----