Code example for CaseFormat

Methods: to

0
    } 
 
    @Override 
    public String getEventName() {
      return String.format("Artifact%sCacheStarted",
          CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, getOperation().toString()));
    } 
  } 
 
  public static class Finished extends ArtifactCacheEvent { 
    /** Not present iff {@link #getOperation()} is not {@link Operation#FETCH}. */ 
    private final Optional<CacheResult> cacheResult;
 
    public Optional<CacheResult> getCacheResult() {
      return cacheResult;
    } 
 
    protected Finished(Operation operation, RuleKey ruleKey, Optional<CacheResult> cacheResult) {
      super(operation, ruleKey);
      Preconditions.checkArgument(