
com.jetbrains.pluginverifier.repository.resources.AvailableResource.kt Maven / Gradle / Ivy
/*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.pluginverifier.repository.resources
import com.jetbrains.pluginverifier.repository.cleanup.UsageStatistic
/**
* Descriptor of the resource available at the moment in the [ResourceRepository].
*/
open class AvailableResource>(
/**
* The key of the resource in the [repository] [ResourceRepository]
*/
val key: K,
/**
* Resource descriptor
*/
val resourceInfo: ResourceInfo,
/**
* Usage statistics of the resource
*/
val usageStatistic: UsageStatistic,
/**
* Indicates whether the resource is currently locked in the [ResourceRepository]
*/
val isLocked: Boolean
) {
override fun toString() = key.toString()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy