Class MaskedIPSet

    • Constructor Detail

      • MaskedIPSet

        public MaskedIPSet()
      • MaskedIPSet

        public MaskedIPSet​(int initialCapacity)
      • MaskedIPSet

        public MaskedIPSet​(RouterContext ctx,
                           Hash peer,
                           int mask)
        The Set of IPs for this peer, with a given mask. Includes the comm system's record of the IP, and all netDb addresses. As of 0.9.24, returned set will include netdb family as well. This gets the peer from the netdb without validation, for efficiency and to avoid deadlocks. Peers are presumed to be validated elsewhere.
        Parameters:
        peer - non-null
        mask - is 1-4 (number of bytes to match)
      • MaskedIPSet

        public MaskedIPSet​(RouterContext ctx,
                           RouterInfo pinfo,
                           int mask)
        The Set of IPs for this peer, with a given mask. Includes the comm system's record of the IP, and all netDb addresses. As of 0.9.24, returned set will include netdb family as well.
        Parameters:
        pinfo - may be null
        mask - is 1-4 (number of bytes to match)
      • MaskedIPSet

        public MaskedIPSet​(RouterContext ctx,
                           Hash peer,
                           RouterInfo pinfo,
                           int mask)
        The Set of IPs for this peer, with a given mask. Includes the comm system's record of the IP, and all netDb addresses. As of 0.9.24, returned set will include netdb family as well.
        Parameters:
        pinfo - may be null
        mask - is 1-4 (number of bytes to match)
    • Method Detail

      • containsAny

        public boolean containsAny​(Set<String> b)
        does this contain any of the elements in b?