Class AnalyticsFilter

    • Method Detail

      • prefix

        public final String prefix()

        The prefix to use when evaluating an analytics filter.

        Returns:
        The prefix to use when evaluating an analytics filter.
      • tag

        public final Tag tag()

        The tag to use when evaluating an analytics filter.

        Returns:
        The tag to use when evaluating an analytics filter.
      • and

        public final AnalyticsAndOperator and()

        A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates.

        Returns:
        A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromPrefix

        public static AnalyticsFilter fromPrefix​(String prefix)
        Create an instance of this class with prefix() initialized to the given value.

        The prefix to use when evaluating an analytics filter.

        Parameters:
        prefix - The prefix to use when evaluating an analytics filter.
      • fromTag

        public static AnalyticsFilter fromTag​(Tag tag)
        Create an instance of this class with tag() initialized to the given value.

        The tag to use when evaluating an analytics filter.

        Parameters:
        tag - The tag to use when evaluating an analytics filter.
      • fromTag

        public static AnalyticsFilter fromTag​(Consumer<Tag.Builder> tag)
        Create an instance of this class with tag() initialized to the given value.

        The tag to use when evaluating an analytics filter.

        Parameters:
        tag - The tag to use when evaluating an analytics filter.
      • fromAnd

        public static AnalyticsFilter fromAnd​(AnalyticsAndOperator and)
        Create an instance of this class with and() initialized to the given value.

        A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates.

        Parameters:
        and - A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates.
      • fromAnd

        public static AnalyticsFilter fromAnd​(Consumer<AnalyticsAndOperator.Builder> and)
        Create an instance of this class with and() initialized to the given value.

        A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates.

        Parameters:
        and - A conjunction (logical AND) of predicates, which is used in evaluating an analytics filter. The operator must have at least two predicates.