java.lang.Object
java.lang.Enum<Driver>
com.flowingcode.vaadin.addons.shareeasy.enums.Driver
All Implemented Interfaces:
ShareEasyDriver, Serializable, Comparable<Driver>, Constable

public enum Driver extends Enum<Driver> implements ShareEasyDriver
Enumeration that represents the drivers provided by default by Sharee library. Values: copy, telegram, facebook, whatsapp, twitter, linkedin.
  • Enum Constant Details

    • COPY

      public static final Driver COPY
    • TELEGRAM

      public static final Driver TELEGRAM
    • FACEBOOK

      public static final Driver FACEBOOK
    • WHATSAPP

      public static final Driver WHATSAPP
    • TWITTER

      public static final Driver TWITTER
    • LINKEDIN

      public static final Driver LINKEDIN
  • Method Details

    • values

      public static Driver[] 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 Driver 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
    • getName

      public String getName()
      Specified by:
      getName in interface ShareEasyDriver