Package nl.vpro.domain.media.update
Enum AssemblageConfig.Steal
- java.lang.Object
-
- java.lang.Enum<AssemblageConfig.Steal>
-
- nl.vpro.domain.media.update.AssemblageConfig.Steal
-
- All Implemented Interfaces:
Serializable
,Comparable<AssemblageConfig.Steal>
,BiPredicate<MediaObject,MediaObject>
- Enclosing class:
- AssemblageConfig
public static enum AssemblageConfig.Steal extends Enum<AssemblageConfig.Steal> implements BiPredicate<MediaObject,MediaObject>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IF_DELETED
IF_INCOMING_NO_MID
Only if the incoming object is new.NO
YES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(MediaObject incoming, MediaObject toUpdate)
String
toString()
static AssemblageConfig.Steal
valueOf(String name)
Returns the enum constant of this type with the specified name.static AssemblageConfig.Steal[]
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, valueOf
-
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
-
-
-
Enum Constant Detail
-
YES
public static final AssemblageConfig.Steal YES
-
IF_DELETED
public static final AssemblageConfig.Steal IF_DELETED
-
NO
public static final AssemblageConfig.Steal NO
-
IF_INCOMING_NO_MID
public static final AssemblageConfig.Steal IF_INCOMING_NO_MID
Only if the incoming object is new. We matched on crid.
-
-
Method Detail
-
values
public static AssemblageConfig.Steal[] 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 (AssemblageConfig.Steal c : AssemblageConfig.Steal.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AssemblageConfig.Steal 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 nameNullPointerException
- if the argument is null
-
test
public boolean test(MediaObject incoming, MediaObject toUpdate)
- Specified by:
test
in interfaceBiPredicate<MediaObject,MediaObject>
-
toString
public String toString()
- Overrides:
toString
in classEnum<AssemblageConfig.Steal>
-
-