Hello!
Sorry for the stupid question.
I'm very sure, that the Java API provides a class which wraps a reference, and provides a getter and a setter to it.
class SomeWrapperClass<T> {
private T obj;
public T get(){ return obj; }
public void set(T obj){ this.obj=obj; }
}
Am I right? Is there something like this in the Java API?
Thank you.
Yes, I could write it y myself, but why should I mimic existing functionality?
EDIT: I wanted to use it for reference parameters (like the ref keyword in C#), or more specific, to be able to "write to method parameters" ;)