com.almworks.jira.structure.api.attribute.ValueColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-api Show documentation
Show all versions of structure-api Show documentation
Public API for the Structure Plugin for JIRA
package com.almworks.jira.structure.api.attribute;
import com.almworks.jira.structure.api.item.ItemIdentity;
import com.atlassian.annotations.PublicApi;
import org.jetbrains.annotations.Nullable;
/**
* Represents a map of values, with one value per key.
*
* @param either {@code Long} (for rows) or {@link ItemIdentity} for items
* @param type of value
*/
@PublicApi
public interface ValueColumn {
/**
* Returns the value for the given key.
*
* @param key the key
* @return value or {@code null} if the value has not been calculated
*/
@Nullable
LoadedValue getValue(@Nullable K key);
static ValueColumn empty() {
return row -> null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy