Enum DiffState

java.lang.Object
java.lang.Enum<DiffState>
org.nuiton.topia.persistence.util.DiffState
All Implemented Interfaces:
Serializable, Comparable<DiffState>, java.lang.constant.Constable

public enum DiffState extends Enum<DiffState>
Pour qualifier l'etat d'une entite lors du calcul d'un differentiel entre deux entites.
Since:
2.2.0
Author:
Tony Chemit - chemit@codelutin.com
See Also:
  • Enum Constant Details

    • NEW

      public static final DiffState NEW
      nouvel entite dans le storage de reference. A ajouter dans le storage local.
    • MODIFIED

      public static final DiffState MODIFIED
      entite modifie dans le storage de reference (voir topiaVersion). A mettre a jour dans le storage local.
    • REMOVED

      public static final DiffState REMOVED
      entité supprimée dans le storage de reference. A supprimer du storage local (apres remplacement par autre chose...)
  • Method Details

    • values

      public static DiffState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DiffState valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • newMap

      public static DiffState.DiffStateMap newMap()
      Construit un dictionnaire avec pour tous les états une liste vide.
      Returns:
      le dictionnaire crée
    • addAll

      public static void addAll(DiffState.DiffStateMap mainMap, DiffState.DiffStateMap toAdd)
      Ajoute dans le premier dictionnaire, les listes du second dictionnaire.
      Parameters:
      mainMap - le dictionnaire principale
      toAdd - le dictionne a ajouter dans le dictionnaire principale
    • clear

      public static void clear(DiffState.DiffStateMap mainMap)
      Nettoye un dictionnaire donnee de toute ses donnees.
      Parameters:
      mainMap - le dictionnaire a nettoyer.
    • removeEmptyStates

      public static void removeEmptyStates(DiffState.DiffStateMap mainMap)
      Supprime toutes les entrees vides du dictionnaire .
      Parameters:
      mainMap - le dictionnaire a nettoyer