blob: b69d8f61aa4f62be9f9fa446e92a294d1ca32c40 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package androidx.test.espresso.flutter.internal.idgenerator;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
/** Generates unique IDs of the parameterized type. */
public interface IdGenerator<T> {
/**
* Returns a new, unique ID.
*
* @throws IdException if there were any errors in getting an ID.
*/
@CanIgnoreReturnValue
T next();
}