Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
vertigo - simple java starter Copyright (C) 2013, KleeGroup, direction.technique@kleegroup.com (http://www.kleegroup.com) KleeGroup, Centre d'affaire la Boursidiere - BP 159 - 92357 Le Plessis Robinson Cedex - France Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package io.vertigo.studio.reporting;
Interface décrivant un résultat de metric.

Author(s):
tchassagnette, pchretien
public final class Metric {
	public static enum Status {
Exécution O
		Executed,
Erreur lors de l'exécutio
		Error,
Métrique non pertinent
		Rejected
	}
	private final Status status;
	private final String title;
	private final String unit;
	private final Object value;
	private final String valueInformation;
	Metric(final Status statusfinal String titlefinal String unitfinal Object valuefinal String valueInformation) {
		Assertion.checkNotNull(status);
		Assertion.checkArgNotEmpty(title);
		Assertion.checkNotNull(unit); //may be empty
		//Assertion.checkNotNull(value);
		//---------------------------------------------------------------------
		this. = status;
		this. = title;
		this. = unit;
		this. = value;
		this. = valueInformation;
	}

Returns:
Status de la métrique.
	public Status getStatus() {
		return ;
	}

Returns:
Titre de la métrique. (notNull)
	public String getTitle() {
		return ;
	}

Returns:
Unité de la métrique. (notNull)
	public String getUnit() {
		return ;
	}

Returns:
Valeur de la métrique. (Integer, Long, String, etc..)
	public Object getValue() {
		return ;
	}

Returns:
Complément d'information sur la valeur. (nullable)
	}
New to GrepCode? Check out our FAQ X