org.conqat.engine.index.shared.IProjectId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of teamscale-commons Show documentation
Show all versions of teamscale-commons Show documentation
Provides common DTOs for Teamscale
package org.conqat.engine.index.shared;
import org.checkerframework.checker.nullness.qual.Nullable;
import com.fasterxml.jackson.annotation.JsonCreator;
/** Unambiguous ID for Teamscale projects. */
public interface IProjectId extends Comparable {
/**
* Returns true when this is an {@link InternalProjectId}. Returns false when
* this is a {@link PublicProjectId}.
*/
boolean isInternal();
/**
* Deserializes a project ID either to an {@link InternalProjectId} or a
* {@link PublicProjectId}. Empty or null values are deserialized to
* null
.
*/
@JsonCreator
static @Nullable IProjectId getInstance(String projectId) {
return ProjectIdBase.convert(projectId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy