Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.util;

This class can be used to pass an argument by reference.

Parameters:
<T> The wrapped type.
Author(s):
Dan Berindei
Since:
5.1
 
public class ByRef<T> {
   private T ref;
   public ByRef(T t) {
       = t;
   }
   public static <T> ByRef<T> create(T t) {
      return new ByRef<T>(t);
   }
   public T get() {
      return ;
   }
   public void set(T t) {
       = t;
   }
New to GrepCode? Check out our FAQ X