/** * Create from the string representation used when the signal is received as part of an SSH packet. * * @param name name of the signal as received * * @return the enum constant inferred */ public static Signal fromString(String name) { for (Signal sig : Signal.values()) if (sig.toString().equals(name)) return sig; return UNKNOWN; }
/** * Create from the string representation used when the signal is received as part of an SSH packet. * * @param name name of the signal as received * * @return the enum constant inferred */ public static Signal fromString(String name) { for (Signal sig : Signal.values()) if (sig.toString().equals(name)) return sig; return UNKNOWN; }
/** * Create from the string representation used when the signal is received as part of an SSH packet. * * @param name name of the signal as received * * @return the enum constant inferred */ public static Signal fromString(String name) { for (Signal sig : Signal.values()) if (sig.toString().equals(name)) return sig; return UNKNOWN; }