jdk/src/java.base/share/classes/java/net/Inet4Address.java
changeset 40118 f63c761ec2d2
parent 33301 9ee33abf5b4c
child 42474 6b0beb616950
equal deleted inserted replaced
40117:d7a28ec54d11 40118:f63c761ec2d2
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   162     public boolean isMulticastAddress() {
   162     public boolean isMulticastAddress() {
   163         return ((holder().getAddress() & 0xf0000000) == 0xe0000000);
   163         return ((holder().getAddress() & 0xf0000000) == 0xe0000000);
   164     }
   164     }
   165 
   165 
   166     /**
   166     /**
   167      * Utility routine to check if the InetAddress in a wildcard address.
   167      * Utility routine to check if the InetAddress is a wildcard address.
   168      * @return a {@code boolean} indicating if the Inetaddress is
   168      * @return a {@code boolean} indicating if the Inetaddress is
   169      *         a wildcard address.
   169      *         a wildcard address.
   170      * @since 1.4
   170      * @since 1.4
   171      */
   171      */
   172     public boolean isAnyLocalAddress() {
   172     public boolean isAnyLocalAddress() {