Code example for ImmutableMap.Builder

Methods: put

0
        String value = getInternal(name);
        if (value != null) {
            if (value.startsWith("ref: ")) {
                value = value.substring("ref: ".length());
            } 
            builder.put(name, value);
        } 
    } 
 
    /** 
     * @return all references under the specified namespace 
     */ 
    @Override 
    public Map<String, String> getAll(String namespace) {
        Preconditions.checkNotNull(namespace);
        File refsRoot;
        try { 
            Optional<URL> envHome = new ResolveGeogigDir(platform).call();
            refsRoot = new File(envHome.get().toURI());
        } catch (Exception e) {