Class PrivacyBudget

    • Method Detail

      • differentialPrivacy

        public final DifferentialPrivacyPrivacyBudget differentialPrivacy()

        An object that specifies the epsilon parameter and the utility in terms of total aggregations, as well as the remaining aggregations available.

        Returns:
        An object that specifies the epsilon parameter and the utility in terms of total aggregations, as well as the remaining aggregations available.
      • 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)
      • fromDifferentialPrivacy

        public static PrivacyBudget fromDifferentialPrivacy​(DifferentialPrivacyPrivacyBudget differentialPrivacy)
        Create an instance of this class with differentialPrivacy() initialized to the given value.

        An object that specifies the epsilon parameter and the utility in terms of total aggregations, as well as the remaining aggregations available.

        Parameters:
        differentialPrivacy - An object that specifies the epsilon parameter and the utility in terms of total aggregations, as well as the remaining aggregations available.
      • fromDifferentialPrivacy

        public static PrivacyBudget fromDifferentialPrivacy​(Consumer<DifferentialPrivacyPrivacyBudget.Builder> differentialPrivacy)
        Create an instance of this class with differentialPrivacy() initialized to the given value.

        An object that specifies the epsilon parameter and the utility in terms of total aggregations, as well as the remaining aggregations available.

        Parameters:
        differentialPrivacy - An object that specifies the epsilon parameter and the utility in terms of total aggregations, as well as the remaining aggregations available.