java/org/cef/misc/StringRef.java (14 lines of code) (raw):
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
package org.cef.misc;
/**
* Helper class for passing String values by reference.
*/
public class StringRef {
private String value_;
public StringRef() {}
public StringRef(String value) {
value_ = value;
}
public void set(String value) {
value_ = value;
}
public String get() {
return value_;
}
}