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

com.almworks.jira.structure.api2g.attribute.VersionedRowValues Maven / Gradle / Ivy

There is a newer version: 17.25.3
Show newest version
package com.almworks.jira.structure.api2g.attribute;

import com.almworks.jira.structure.api2g.DataVersion;
import org.jetbrains.annotations.NotNull;

public interface VersionedRowValues extends RowValues {
  @NotNull
  DataVersion getForestVersion();

  @NotNull
  DataVersion getItemsVersion();

  @NotNull
  AttributeTrail getTrail(AttributeSpec attribute);

  // todo add method to extract information about problems encountered during calculation? on the other hand, the older AggregateResult does not have such methods


  VersionedRowValues EMPTY = new VersionedRowValues() {
    @NotNull
    public DataVersion getForestVersion() {
      return DataVersion.ZERO;
    }

    @NotNull
    public DataVersion getItemsVersion() {
      return DataVersion.ZERO;
    }

    @NotNull
    public AttributeTrail getTrail(AttributeSpec attribute) {
      return AttributeTrail.EMPTY;
    }

    public  T get(Long row, AttributeSpec attribute) {
      return null;
    }
  };
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy