blob: dd300daa0c35eab104401fc9fb8c985095f58a9e [file] [log] [blame]
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.desugar.backports;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.ListIterator;
public final class CollectionsMethods {
public static <T> Enumeration<T> emptyEnumeration() {
return Collections.enumeration(Collections.emptyList());
}
public static <T> Iterator<T> emptyIterator() {
return Collections.<T>emptyList().iterator();
}
public static <T> ListIterator<T> emptyListIterator() {
return Collections.<T>emptyList().listIterator();
}
}