Code example for NetworkInterface

Methods: isPointToPoint

0
     *         {@link NetworkInterface#isPointToPoint() point-to-point interface}. 
     */ 
    @Override 
    protected InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException {
 
        if( networkInterface.isPointToPoint() )
            return address;
        return null; 
    } 
 
    private Object readResolve() throws ObjectStreamException {
        return INSTANCE;
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java