/* * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package com.facebook.common.internal; import java.util.ArrayList; import java.util.List; /** * A dummy representation of an immutable set. This can be used temporarily as a type until we have * an actual non-gauva implementation. */ public class ImmutableList<E> extends ArrayList<E> { private ImmutableList(List<E> list) { super(list); } public static <E> ImmutableList<E> copyOf(List<E> list) { return new ImmutableList<>(list); } }