Class InetAddressPattern

  • All Implemented Interfaces:

    public abstract class InetAddressPattern
    extends java.lang.Object
    implements java.util.function.Predicate<>
    A pattern representing a single or range of InetAddress. To create a pattern use the from(String) method, which will create a pattern given a string conforming to one of the following formats.
    A single InetAddress either in hostname or address format. All formats supported by InetAddress are accepted. Not ethat using hostname matches may force domain lookups. eg. "[::1]", "", "::ffff:"
    An InetAddress with a integer number of bits to indicate the significant prefix. eg. "" will match from "" to ""
    An inclusive range of InetAddresses. eg. "[a000::1]-[afff::]", ""
    Legacy format
    The legacy format used for IPv4 only. eg. "10.10.10-14.0-128"
    • Field Summary

      Modifier and Type Field Description
      protected java.lang.String _pattern  
    • Constructor Summary

      Constructor Description
      InetAddressPattern​(java.lang.String pattern)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static InetAddressPattern from​(java.lang.String pattern)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or, test
    • Field Detail

      • _pattern

        protected final java.lang.String _pattern
    • Constructor Detail

      • InetAddressPattern

        public InetAddressPattern​(java.lang.String pattern)
    • Method Detail

      • toString

        public java.lang.String toString()
        toString in class java.lang.Object