Package play.data.validation

Examples of play.data.validation.IPv4AddressCheck


    assertTrue(testv6("fe80:0:0:0:200:f8ff:fe21:67cf", true));

  }

  private boolean testv4(String addr, boolean expected) {
    IPv4AddressCheck check = new IPv4AddressCheck();
    return expected == check.isSatisfied(null, addr, null, null);
  }
View Full Code Here


    assertTrue(testv6("fe80:0:0:0:200:f8ff:fe21:67cf", true));

  }

  private boolean testv4(String addr, boolean expected) {
    IPv4AddressCheck check = new IPv4AddressCheck();
    return expected == check.isSatisfied(null, addr, null, null);
  }
View Full Code Here

TOP

Related Classes of play.data.validation.IPv4AddressCheck

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.