Enum Class ELogDuplicatesStrategy

java.lang.Object
java.lang.Enum<ELogDuplicatesStrategy>
org.onebusaway.gtfs_merge.strategies.ELogDuplicatesStrategy
All Implemented Interfaces:
Serializable, Comparable<ELogDuplicatesStrategy>, Constable

public enum ELogDuplicatesStrategy extends Enum<ELogDuplicatesStrategy>
Defines different logging behaviors to take when a duplicate entity is detected between two GTFS feeds.
See Also:
  • Enum Constant Details

    • NONE

      public static final ELogDuplicatesStrategy NONE
      Nothing is logged when a duplicate is detected.
    • WARNING

      public static final ELogDuplicatesStrategy WARNING
      A warning is logged to the console if a duplicate is detected.
    • ERROR

      public static final ELogDuplicatesStrategy ERROR
      An exception is thrown if a duplicate is detected, halting the merge operation.
  • Method Details

    • values

      public static ELogDuplicatesStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ELogDuplicatesStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null