Class BitFlagSetPredicate

    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • test

        public boolean test​(long flag)
        Specified by:
        test in interface LongPredicate
      • equalTo

        public static BitFlagSetPredicate equalTo​(long flags)
        Parameters:
        flags - Types to match.
        Returns:
        A predicate that matches only the exact given value, i.e. when a flag include all of the given flags and excludes all other flags.
      • matchAll

        public static BitFlagSetPredicate matchAll()
        Returns:
        A predicate that matches all flags.
      • matchNone

        public static BitFlagSetPredicate matchNone()
        Returns:
        A predicate that matches no flags.