Enum PrivacyModel

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PrivacyModel>

    public enum PrivacyModel
    extends java.lang.Enum<PrivacyModel>
    Model class for Privacy model. Sets the Privacy model for the anonymization process.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PrivacyModel​(java.lang.String name)
      Setter method for the privacy medel.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Getter method for the privacy model used.
      static PrivacyModel valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PrivacyModel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • LDIVERSITY_DISTINCT

        public static final PrivacyModel LDIVERSITY_DISTINCT
      • LDIVERSITY_GRASSBERGERENTROPY

        public static final PrivacyModel LDIVERSITY_GRASSBERGERENTROPY
      • LDIVERSITY_SHANNONENTROPY

        public static final PrivacyModel LDIVERSITY_SHANNONENTROPY
      • LDIVERSITY_RECURSIVE

        public static final PrivacyModel LDIVERSITY_RECURSIVE
    • Field Detail

      • name

        private java.lang.String name
    • Constructor Detail

      • PrivacyModel

        private PrivacyModel​(java.lang.String name)
        Setter method for the privacy medel.
        Parameters:
        name - String containing the type of privacy model to be used.
    • Method Detail

      • values

        public static PrivacyModel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PrivacyModel c : PrivacyModel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PrivacyModel valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Getter method for the privacy model used.
        Returns:
        String containing the name of the privacy model used.