Class IpValue

    • Constructor Detail

    • Method Detail

      • of

        public static IpValue of​(java.lang.String input)
      • isInRange

        public boolean isInRange​(java.lang.String address)
      • getIpAddressRanges

        public java.util.List<IPAddressRange> getIpAddressRanges()
      • parseCIDR

        public static IPAddressRange parseCIDR​(java.lang.String cidr)
      • shrink

        public IpValue shrink​(Bound<IPAddress> bound)
        Description copied from interface: RuleValue
        Shrinks this rule value by removing those parts are already covered by the given bound.

        The given bounds result from thresholds along paths in the decision tree. Therefore during classification those parts that are covered by these threshold need not to be checked again.

        Specified by:
        shrink in interface RuleValue<IPAddress,​IpValue>
        Returns:
        Returns null if this rule value is completely covered by the given bound.