Converts the specified String str from this format to the specified format. A "best effort" approach is taken; if str does not conform to the assumed format, then the behavior of this method is undefined but we make a reasonable effort at converting anyway.
(CaseFormat format, String str)
| 129 | * the behavior of this method is undefined but we make a reasonable effort at converting anyway. |
| 130 | */ |
| 131 | public final String to(CaseFormat format, String str) { |
| 132 | checkNotNull(format); |
| 133 | checkNotNull(str); |
| 134 | return (format == this) ? str : convert(format, str); |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Enum values can override for performance reasons. |
no test coverage detected