public enum CRDTsTypes extends Enum<CRDTsTypes>
| Modifier and Type | Class and Description |
|---|---|
static class |
CRDTsTypes.FLAVOR |
| Enum Constant and Description |
|---|
DAWORSET |
DCCOUNTER |
DEWFLAG |
DLWWMAP |
DLWWMAPCRDT |
DLWWREGISTER |
DLWWSET |
DMVMAP |
DMVREGISTER |
DORMAP |
DPNCOUNTER |
DRGA |
OCOUNTER |
SPNCOUNTER |
| Modifier and Type | Field and Description |
|---|---|
static pt.unl.fct.di.novasys.network.ISerializer<CRDTsTypes> |
serializer
Static method to serialize (and deserialize) and arbitrary CRDType object.
|
| Modifier and Type | Method and Description |
|---|---|
static DeltaCausalCRDT |
createCausalCRDT(CRDTsTypes.FLAVOR flavor,
pt.unl.fct.di.novasys.babel.protocols.storage.utils.types.ReplicatedStructuresOperations.ReplicatedDataTypes type,
CausalContext state,
Object initialValue) |
static GenericCRDT |
createLWWCRDT(CRDTsTypes.FLAVOR flavor,
pt.unl.fct.di.novasys.babel.protocols.storage.utils.types.ReplicatedStructuresOperations.ReplicatedDataTypes type,
VVState state,
Object initialValue) |
CRDTsTypes.FLAVOR |
getFlavor() |
String |
getType() |
boolean |
isOfFlavor(CRDTsTypes.FLAVOR flavor)
Checks if the CRDT is of a specific type
|
static CRDTsTypes |
toCausalCRDType(CRDTsTypes.FLAVOR flavor,
pt.unl.fct.di.novasys.babel.protocols.storage.utils.types.ReplicatedStructuresOperations.ReplicatedDataTypes type) |
static CRDTsTypes |
toCRDLWWTType(CRDTsTypes.FLAVOR flavor,
pt.unl.fct.di.novasys.babel.protocols.storage.utils.types.ReplicatedStructuresOperations.ReplicatedDataTypes type) |
String |
toString() |
static CRDTsTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CRDTsTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CRDTsTypes DPNCOUNTER
public static final CRDTsTypes DLWWSET
public static final CRDTsTypes DLWWMAP
public static final CRDTsTypes DLWWREGISTER
public static final CRDTsTypes DMVMAP
public static final CRDTsTypes DRGA
public static final CRDTsTypes DLWWMAPCRDT
public static final CRDTsTypes DCCOUNTER
public static final CRDTsTypes DAWORSET
public static final CRDTsTypes DEWFLAG
public static final CRDTsTypes DORMAP
public static final CRDTsTypes DMVREGISTER
public static final CRDTsTypes SPNCOUNTER
public static final CRDTsTypes OCOUNTER
public static pt.unl.fct.di.novasys.network.ISerializer<CRDTsTypes> serializer
public static CRDTsTypes[] values()
for (CRDTsTypes c : CRDTsTypes.values()) System.out.println(c);
public static CRDTsTypes 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 String getType()
public CRDTsTypes.FLAVOR getFlavor()
public boolean isOfFlavor(CRDTsTypes.FLAVOR flavor)
flavor - flavor of CRDTpublic String toString()
toString in class Enum<CRDTsTypes>public static CRDTsTypes toCRDLWWTType(CRDTsTypes.FLAVOR flavor, pt.unl.fct.di.novasys.babel.protocols.storage.utils.types.ReplicatedStructuresOperations.ReplicatedDataTypes type)
public static GenericCRDT createLWWCRDT(CRDTsTypes.FLAVOR flavor, pt.unl.fct.di.novasys.babel.protocols.storage.utils.types.ReplicatedStructuresOperations.ReplicatedDataTypes type, VVState state, Object initialValue)
public static CRDTsTypes toCausalCRDType(CRDTsTypes.FLAVOR flavor, pt.unl.fct.di.novasys.babel.protocols.storage.utils.types.ReplicatedStructuresOperations.ReplicatedDataTypes type)
public static DeltaCausalCRDT createCausalCRDT(CRDTsTypes.FLAVOR flavor, pt.unl.fct.di.novasys.babel.protocols.storage.utils.types.ReplicatedStructuresOperations.ReplicatedDataTypes type, CausalContext state, Object initialValue)
Copyright © 2024. All rights reserved.