public enum DiffState extends Enum<DiffState>
TopiaEntityHelper.buildDifferentiel(List, List)
Modifier and Type | Class and Description |
---|---|
static class |
DiffState.DiffStateMap |
Enum Constant and Description |
---|
MODIFIED
entite modifie dans le storage de reference (voir topiaVersion).
|
NEW
nouvel entite dans le storage de reference.
|
REMOVED
entité supprimée dans le storage de reference.
|
Modifier and Type | Method and Description |
---|---|
static void |
addAll(DiffState.DiffStateMap mainMap,
DiffState.DiffStateMap toAdd)
Ajoute dans le premier dictionnaire, les listes du second dictionnaire.
|
static void |
clear(DiffState.DiffStateMap mainMap)
Nettoye un dictionnaire donnee de toute ses donnees.
|
static DiffState.DiffStateMap |
newMap()
Construit un dictionnaire avec pour tous les états une liste vide.
|
static void |
removeEmptyStates(DiffState.DiffStateMap mainMap)
Supprime toutes les entrees vides du dictionnaire .
|
static DiffState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiffState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiffState NEW
public static final DiffState MODIFIED
public static final DiffState REMOVED
public static DiffState[] values()
for (DiffState c : DiffState.values()) System.out.println(c);
public static DiffState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static DiffState.DiffStateMap newMap()
public static void addAll(DiffState.DiffStateMap mainMap, DiffState.DiffStateMap toAdd)
mainMap
- le dictionnaire principaletoAdd
- le dictionne a ajouter dans le dictionnaire principalepublic static void clear(DiffState.DiffStateMap mainMap)
mainMap
- le dictionnaire a nettoyer.public static void removeEmptyStates(DiffState.DiffStateMap mainMap)
mainMap
- le dictionnaire a nettoyerCopyright © 2004–2022 Code Lutin. All rights reserved.