Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / cacheinvalidation / src / java / com / google / ipc / invalidation / util / Box.java
index f57c889..0430344 100644 (file)
@@ -16,8 +16,6 @@
 
 package com.google.ipc.invalidation.util;
 
-import com.google.common.base.Supplier;
-
 /**
  * Container for a single arbitrary value. Useful when a nested callback needs
  * to modify a primitive type, which is ordinarily not possible as variables
@@ -26,7 +24,7 @@ import com.google.common.base.Supplier;
  * @param <T> Type of the value being boxed.
  *
  */
-public class Box<T> implements Supplier<T> {
+public class Box<T> {
 
   /** Contents of the box. */
   private T value;
@@ -36,14 +34,6 @@ public class Box<T> implements Supplier<T> {
     this.value = value;
   }
 
-  /**
-   * Returns a supplier for the given value. Note that such a getter's internal value cannot be
-   * changed (by definition).
-   */
-  public static <T> Supplier<T> createSupplier(final T value) {
-    return Box.of(value);
-  }
-
   /** Constructs a Box with {@code null} as the value. */
   public Box() {
     this.value = null;
@@ -58,7 +48,6 @@ public class Box<T> implements Supplier<T> {
     this.value = objectValue;
   }
 
-  @Override
   public T get() {
     return value;
   }