All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.almworks.jira.structure.api.attribute.ValueColumn Maven / Gradle / Ivy

The newest version!
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