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

com.github.jscancella.domain.internal.PathPair Maven / Gradle / Ivy

Go to download

This is a software library intended to support the creation, manipulation, and validation of "bags" from the bagit specification. It currently supports version 0.93 through 1.0.

There is a newer version: 5.2
Show newest version
package com.github.jscancella.domain.internal;

import java.nio.file.Path;

/**
 * a convenience class for representing a file path and what its relative path should be
 */
public final class PathPair {

  private final Path payloadFile;
  private final String relativeLocation;
  
  /**
   * a convenience class for representing a file path and what its relative path should be
   * 
   * @param payloadFile the actual full path
   * @param relativeLocation the relative path representation
   */
  public PathPair(final Path payloadFile, final String relativeLocation) {
    this.payloadFile = payloadFile;
    this.relativeLocation = relativeLocation;
  }

  /**
   * @return the full path
   */
  public Path getPayloadFile(){
    return payloadFile;
  }

  /**
   * @return the relative path
   */
  public String getRelativeLocation(){
    return relativeLocation;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy