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

com.semanticcms.autogit.model.GitStatus Maven / Gradle / Ivy

/*
 * semanticcms-autogit-model - SemanticCMS automatic Git.
 * Copyright (C) 2016  AO Industries, Inc.
 *     [email protected]
 *     7262 Bull Pen Cir
 *     Mobile, AL 36695
 *
 * This file is part of semanticcms-autogit-model.
 *
 * semanticcms-autogit-model is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * semanticcms-autogit-model is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with semanticcms-autogit-model.  If not, see .
 */
package com.semanticcms.autogit.model;

// Java 1.8: import java.time.Instant;
import java.util.List;

/**
 * The Git status at a given moment in time.
 */
public class GitStatus {

	// Java 1.8: private final Instant statusTime;
	private final long statusTime;
	private final State state;
	private final List uncommittedChanges;

	public GitStatus(
		// Java 1.8: Instant statusTime,
		long statusTime,
		State state,
		List uncommittedChanges
	) {
		this.statusTime = statusTime;
		this.state = state;
		this.uncommittedChanges = uncommittedChanges;
	}

	// Java 1.8: public Instant getStatusTime() {
	public long getStatusTime() {
		return statusTime;
	}

	public State getState() {
		return state;
	}

	public List getUncommittedChanges() {
		return uncommittedChanges;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy