Пример #1
0
 @Nullable
 public Color parse(@Nullable String str) throws ParseException {
   return isBlank(str) ? null : delegate.parse(str);
 }
Пример #2
0
 /**
  * Returns the pattern used by this {@code ColorFormatter}
  *
  * @return the pattern this {@code ColorFormatter} uses for parsing/formatting.
  */
 @Nonnull
 public String getPattern() {
   return delegate.getPattern();
 }
Пример #3
0
 @Nullable
 public String format(@Nullable Color color) {
   return color == null ? null : delegate.format(color);
 }