All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.saucelabs.saucebindings.Prerun Maven / Gradle / Ivy

The newest version!
package com.saucelabs.saucebindings;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import lombok.Getter;

public enum Prerun {
  EXECUTABLE("executable"),
  ARGS("args"),
  BACKGROUND("background"),
  TIMEOUT("timeout");

  @Getter private final String value;

  private static final class PrerunLookup {
    private static final Map lookup = new HashMap();
  }

  public static Set keys() {
    return PrerunLookup.lookup.keySet();
  }

  Prerun(String value) {
    this.value = value;
    PrerunLookup.lookup.put(value, this.name());
  }

  public static String fromString(String value) {
    return PrerunLookup.lookup.get(value);
  }

  public String toString() {
    return this.value;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy