ReportEntryKey.java
/*
* Copyright (c) 2021 Mārtiņš Avots (Martins Avots) and others
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0, or the MIT License,
* which is available at https://spdx.org/licenses/MIT.html.
*
* SPDX-License-Identifier: EPL-2.0 OR MIT
*/
package net.splitcells.dem.testing;
/**
* @see org.junit.platform.engine.reporting.ReportEntry
*/
public class ReportEntryKey<T> {
public static final ReportEntryTimeKey START_TIME = new ReportEntryTimeKey();
public static final ReportEntryTimeKey END_TIME = new ReportEntryTimeKey();
private final Class<T> clazz;
protected ReportEntryKey(Class<T> argClazz) {
clazz = argClazz;
}
public Class<T> key() {
return clazz;
}
public String keyString() {
return clazz.getName();
}
}