Package no.oslomet.aaas.model
Enum PrivacyModel
- java.lang.Object
-
- java.lang.Enum<PrivacyModel>
-
- no.oslomet.aaas.model.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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KANONYMITYLDIVERSITY_DISTINCTLDIVERSITY_GRASSBERGERENTROPYLDIVERSITY_RECURSIVELDIVERSITY_SHANNONENTROPY
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringname
-
Constructor Summary
Constructors Modifier Constructor Description privatePrivacyModel(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.StringgetName()Getter method for the privacy model used.static PrivacyModelvalueOf(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.
-
-
-
Enum Constant Detail
-
KANONYMITY
public static final PrivacyModel KANONYMITY
-
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
-
-
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 namejava.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.
-
-