Class DiscriminatedUnionMember<D,V>
java.lang.Object
de.xima.fc.workflow.processor.value.DiscriminatedUnionMember<D,V>
- Type Parameters:
D
- Type of the discriminator that identifies the type of this member.V
- Type of the member's value.
- All Implemented Interfaces:
IDiscriminatedUnionMember<D,
V>
public final class DiscriminatedUnionMember<D,V>
extends Object
implements IDiscriminatedUnionMember<D,V>
Default POJO implementation of a
IDiscriminatedUnionMember
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
-
Method Details
-
equals
-
getDiscriminator
- Specified by:
getDiscriminator
in interfaceIDiscriminatedUnionMember<D,
V> - Returns:
- The discriminator that identifies the type of this member.
-
getValue
- Specified by:
getValue
in interfaceIDiscriminatedUnionMember<D,
V> - Returns:
- The value of this member.
-
hashCode
public int hashCode() -
toString
-
of
- Type Parameters:
D
- Type of the discriminator.V
- Type of the value.- Parameters:
discriminator
- Discriminator that discriminates the union member.value
- Value of the union member.- Returns:
- A new member of a discriminated union with the given discriminator and value.
-