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

com.github.marschal.svndiffstat.DiffStatConfiguration Maven / Gradle / Ivy

The newest version!
package com.github.marschal.svndiffstat;

import java.awt.Dimension;
import java.io.File;
import java.nio.file.Path;
import java.util.Set;

final class DiffStatConfiguration {

  private final Set authors;
  private final Set includedFiles;
  private final File workingCopy;
  private final Dimension dimension;
  private final Path savePath;
  private final boolean doubleSize;
  private final int maxChanges;
  private String protocol;

  DiffStatConfiguration(Set authors, Set includedFiles, File workingCopy, Dimension dimension, Path savePath, boolean doubleSize, int maxChanges, String protocol) {
    this.authors = authors;
    this.includedFiles = includedFiles;
    this.workingCopy = workingCopy;
    this.dimension = dimension;
    this.savePath = savePath;
    this.doubleSize = doubleSize;
    this.maxChanges = maxChanges;
    this.protocol = protocol;
  }

  Set getAuthors() {
    return this.authors;
  }

  Set getIncludedFiles() {
    return this.includedFiles;
  }

  File getWorkingCopy() {
    return this.workingCopy;
  }

  Dimension getDimension() {
    return this.dimension;
  }

  Path getSavePath() {
    return this.savePath;
  }

  int multiplierInt() {
    return this.doubleSize ? 2 : 1;
  }

  double multiplierDouble() {
    return this.doubleSize ? 2.0d : 1.0d;
  }

  float multiplierFloat() {
    return this.doubleSize ? 2.0f : 1.0f;
  }

  boolean isDoubleSize() {
    return this.doubleSize;
  }

  int getMaxChanges() {
    return this.maxChanges;
  }
  
  public String getProtocol() {
    return protocol;
  }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy