Java Variant Type
Overview of Variant Types in JavaIn type theory,a Variant Type (also known as a Sum Type,Tagged Union,or Discriminated Union) represents a data structure that can hold a value of one of several distinct,pre-defined types at any given time. Unlike languages...