Enum Joiner.Status

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ADDED
      an ADDED status is returned when a child successfully adds itself to the join list but without reaching the expected number of children
      DONE
      a DONE status is returned when a child successfully adds itself to the join list reaching the expected number of children and there is a parent thread waiting for the children
      DUPLICATE
      a DUPLICATE status is returned when a child fails to add itself to the join list because it is already present
      EXCESS
      an EXCESS status is returned when a child fails to add itself to a join list because it already contains the expected number of children
      FILLED
      a FILLED status is returned when a child successfully adds itself to the join list reaching the expected number of children but there is no parent thread waiting for the children
    • Enum Constant Detail

      • DUPLICATE

        public static final Joiner.Status DUPLICATE
        a DUPLICATE status is returned when a child fails to add itself to the join list because it is already present
      • EXCESS

        public static final Joiner.Status EXCESS
        an EXCESS status is returned when a child fails to add itself to a join list because it already contains the expected number of children
      • ADDED

        public static final Joiner.Status ADDED
        an ADDED status is returned when a child successfully adds itself to the join list but without reaching the expected number of children
      • FILLED

        public static final Joiner.Status FILLED
        a FILLED status is returned when a child successfully adds itself to the join list reaching the expected number of children but there is no parent thread waiting for the children
      • DONE

        public static final Joiner.Status DONE
        a DONE status is returned when a child successfully adds itself to the join list reaching the expected number of children and there is a parent thread waiting for the children
    • Method Detail

      • values

        public static Joiner.Status[] 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 (Joiner.Status c : Joiner.Status.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Joiner.Status 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 name
        NullPointerException - if the argument is null