Class Repackaged
- java.lang.Object
-
- com.google.appengine.api.internal.Repackaged
-
public final class Repackaged extends Object
Utilities for dealing with repackaged classes. Not part of the public API.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> List<E>
copyIfRepackagedElseOriginal(List<E> list)
Returns an immutable copy of the given list if it is of a repackaged class, otherwise returns the original list.static <E> List<E>
copyIfRepackagedElseUnmodifiable(List<E> list)
Returns an immutable copy of the given list if it is of a repackaged class, otherwise returns an unmodifiable wrapper around the original list.static boolean
isRepackaged(Object object)
Returns true if the given object has a class that is the result of App Engine repackaging.
-
-
-
Method Detail
-
copyIfRepackagedElseOriginal
public static <E> List<E> copyIfRepackagedElseOriginal(List<E> list)
Returns an immutable copy of the given list if it is of a repackaged class, otherwise returns the original list.
-
copyIfRepackagedElseUnmodifiable
public static <E> List<E> copyIfRepackagedElseUnmodifiable(List<E> list)
Returns an immutable copy of the given list if it is of a repackaged class, otherwise returns an unmodifiable wrapper around the original list.
-
isRepackaged
public static boolean isRepackaged(Object object)
Returns true if the given object has a class that is the result of App Engine repackaging.
-
-