Class Multiplicity

java.lang.Object
org.apache.sis.internal.jaxb.gco.Multiplicity

public final class Multiplicity extends Object
The possible cardinality of a relation. Represented by a set of simple multiplicity ranges. Example:
Since:
1.0
Version:
1.0
  • Field Details

  • Constructor Details

    • Multiplicity

      public Multiplicity()
      Creates a new multiplicity initialized with no ranges.
    • Multiplicity

      @SafeVarargs public Multiplicity(NumberRange<Integer>... ranges)
      Creates a new multiplicity initialized with the given ranges.
      Parameters:
      ranges - the ranges.
  • Method Details

    • range

      public List<NumberRange<Integer>> range()
      Returns the multiplicity as a live list (change to this list are reflected to this object).
      Returns:
      the multiplicity ranges as a live list.