Code example for NetworkInterface

Methods: isVirtual

0
     *         {@link NetworkInterface#isVirtual() virtual} 
     */ 
    @Override 
    protected InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException {
 
        if (networkInterface.isVirtual())
            return address;
        return null; 
    } 
 
    private Object readResolve() throws ObjectStreamException {
        return INSTANCE;
    } 
} 
Experience pair programming with AI  Get Codota for Java