Interface BlockedProtocolVersions


  • public interface BlockedProtocolVersions
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int blocksAbove()
      Returns the boundary above which protocol versions are blocked, or -1 if none is set.
      int blocksBelow()
      Returns the boundary below which protocol versions are blocked, or -1 if none is set.
      boolean contains​(int protocolVersion)
      Returns whether the given protocol version is blocked per boundary ranges or individually blocked versions.
      it.unimi.dsi.fastutil.ints.IntSet singleBlockedVersions()
      Returns a set of blocked protocol versions between the outer block ranges.
    • Method Detail

      • contains

        boolean contains​(int protocolVersion)
        Returns whether the given protocol version is blocked per boundary ranges or individually blocked versions.
        Parameters:
        protocolVersion - protocol version
        Returns:
        whether the given protocol version is blocked
      • blocksBelow

        int blocksBelow()
        Returns the boundary below which protocol versions are blocked, or -1 if none is set.
        Returns:
        exclusive boundary below which protocol versions are blocked, or -1 if none
      • blocksAbove

        int blocksAbove()
        Returns the boundary above which protocol versions are blocked, or -1 if none is set.
        Returns:
        exclusive boundary above which protocol versions are blocked, or -1 if none
      • singleBlockedVersions

        it.unimi.dsi.fastutil.ints.IntSet singleBlockedVersions()
        Returns a set of blocked protocol versions between the outer block ranges.
        Returns:
        set of blocked protocol versions between the outer block ranges