net.time4j.format.NumericalElement Maven / Gradle / Ivy
/*
* -----------------------------------------------------------------------
* Copyright © 2013-2015 Meno Hochschild,
* -----------------------------------------------------------------------
* This file (NumericalElement.java) is part of project Time4J.
*
* Time4J 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 2.1 of the License, or
* (at your option) any later version.
*
* Time4J 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 Time4J. If not, see .
* -----------------------------------------------------------------------
*/
package net.time4j.format;
import net.time4j.engine.ChronoElement;
/**
* A chronological element which allows a numerical representation.
*
* @param generic type of element values
* @author Meno Hochschild
*/
/*[deutsch]
* Repräsentiert ein chronologisches Element, das eine numerische
* Darstellung erlaubt.
*
* @param generic type of element values
* @author Meno Hochschild
*/
public interface NumericalElement
extends ChronoElement {
//~ Methoden ----------------------------------------------------------
/**
* Translates given element value to a numerical integer.
*
* @param value value to be converted to int
* @return Integer-representation of given value
*/
/*[deutsch]
* Ermittelt eine numerische Darstellung des angegebenen Werts.
*
* @param value value to be converted to int
* @return Integer-representation of given value
*/
int numerical(V value);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy