// Path: harahachibu/src/main/java/uk/co/flax/harahachibu/services/data/DiskSpace.java
// public class DiskSpace {
// 
// 	private final long freeSpace;
// 	private final long maxSpace;
// 	private final Date creationDate = new Date();
// 
// 	public DiskSpace(long freeSpace, long maxSpace) {
// 		this.freeSpace = freeSpace;
// 		this.maxSpace = maxSpace;
// 	}
// 
// 	public long getFreeSpace() {
// 		return freeSpace;
// 	}
// 
// 	public long getMaxSpace() {
// 		return maxSpace;
// 	}
// 
// 	public Date getCreationDate() {
// 		return creationDate;
// 	}
// 
// }


import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import uk.co.flax.harahachibu.services.data.DiskSpace;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
					// FALL THROUGH
				case "M":
					value = value * KILOBYTE;
					// FALL THROUGH
				case "K":
					value = value * KILOBYTE;
					t = new DiskSpaceThreshold(value, false);
					break;
				default:
					throw new DiskSpaceCheckerException("Unexpected unit value: " + unit);
			}
		}

		return t;
	}

	public long getThresholdValue() {
		return thresholdValue;
	}

	public boolean isPercentage() {
		return percentage;
	}

	/**
	 * Check whether or not a {@link DiskSpace} object representing
	 * space on a server is within this threshold.
	 * @param diskSpace the disk space data.
	 * @return {code true} if the space available is within the threshold value.
	 */
// Path: harahachibu/src/main/java/uk/co/flax/harahachibu/services/data/DiskSpace.java
// public class DiskSpace {
// 
// 	private final long freeSpace;
// 	private final long maxSpace;
// 	private final Date creationDate = new Date();
// 
// 	public DiskSpace(long freeSpace, long maxSpace) {
// 		this.freeSpace = freeSpace;
// 		this.maxSpace = maxSpace;
// 	}
// 
// 	public long getFreeSpace() {
// 		return freeSpace;
// 	}
// 
// 	public long getMaxSpace() {
// 		return maxSpace;
// 	}
// 
// 	public Date getCreationDate() {
// 		return creationDate;
// 	}
// 
// }


// Path: harahachibu/src/main/java/uk/co/flax/harahachibu/services/DiskSpaceThreshold.java
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import uk.co.flax.harahachibu.services.data.DiskSpace;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

					// FALL THROUGH
				case "M":
					value = value * KILOBYTE;
					// FALL THROUGH
				case "K":
					value = value * KILOBYTE;
					t = new DiskSpaceThreshold(value, false);
					break;
				default:
					throw new DiskSpaceCheckerException("Unexpected unit value: " + unit);
			}
		}

		return t;
	}

	public long getThresholdValue() {
		return thresholdValue;
	}

	public boolean isPercentage() {
		return percentage;
	}

	/**
	 * Check whether or not a {@link DiskSpace} object representing
	 * space on a server is within this threshold.
	 * @param diskSpace the disk space data.
	 * @return {code true} if the space available is within the threshold value.
	 */
	public boolean withinThreshold(DiskSpace diskSpace) {