Class ZoneTraitDescriptor.IpAddressPredicate

  • All Implemented Interfaces:
    com.google.common.base.Predicate<java.lang.Object>, java.util.function.Predicate<java.lang.Object>
    Enclosing class:
    ZoneTraitDescriptor<T>

    protected static class ZoneTraitDescriptor.IpAddressPredicate
    extends java.lang.Object
    implements com.google.common.base.Predicate<java.lang.Object>
    Tests an input IP address against a comma-delimited pattern list. Wildcards are valid for address subnets, like so:

    a pattern of 10.20.5.*,10.22.*.* will return true for 10.20.5.200

    You can also specify a range in an address subnet. This predicate will check each subnet in the input address, and return true only if all subnets are within the range in a pattern address. Example:

    10.20.*.0-220,10.20.6.0-9 will return true for 10.20.5.200

    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply​(java.lang.Object input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Predicate

        equals, test
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • IpAddressPredicate

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

      • apply

        public boolean apply​(java.lang.Object input)
        Specified by:
        apply in interface com.google.common.base.Predicate<java.lang.Object>