Java Code Examples for java.text.NumberFormat#clone()

The following examples show how to use java.text.NumberFormat#clone() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ComplexFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an instance with a custom imaginary character, and a custom number
 * format for both real and imaginary parts.
 * @param imaginaryCharacter The custom imaginary character.
 * @param format the custom format for both real and imaginary parts.
 */
public ComplexFormat(String imaginaryCharacter, NumberFormat format) {
    this(imaginaryCharacter, format, (NumberFormat)format.clone());
}
 
Example 2
Source File: ProperBigFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperBigFractionFormat(final NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 3
Source File: ProperBigFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperBigFractionFormat(final NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 4
Source File: ComplexFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an instance with a custom imaginary character, and a custom number
 * format for both real and imaginary parts.
 * @param imaginaryCharacter The custom imaginary character.
 * @param format the custom format for both real and imaginary parts.
 */
public ComplexFormat(String imaginaryCharacter, NumberFormat format) {
    this(imaginaryCharacter, format, (NumberFormat)format.clone());
}
 
Example 5
Source File: ComplexFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an instance with a custom imaginary character, and a custom number
 * format for both real and imaginary parts.
 * @param imaginaryCharacter The custom imaginary character.
 * @param format the custom format for both real and imaginary parts.
 */
public ComplexFormat(String imaginaryCharacter, NumberFormat format) {
    this(imaginaryCharacter, format, (NumberFormat)format.clone());
}
 
Example 6
Source File: ProperFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperFractionFormat(NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 7
Source File: ComplexFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an instance with a custom imaginary character, and a custom number
 * format for both real and imaginary parts.
 * @param imaginaryCharacter The custom imaginary character.
 * @param format the custom format for both real and imaginary parts.
 */
public ComplexFormat(String imaginaryCharacter, NumberFormat format) {
    this(imaginaryCharacter, format, (NumberFormat)format.clone());
}
 
Example 8
Source File: ProperFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperFractionFormat(NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 9
Source File: ProperFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperFractionFormat(NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 10
Source File: AbstractFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an improper formatting instance with a custom number format for
 * both the numerator and denominator.
 * @param format the custom format for both the numerator and denominator.
 */
protected AbstractFormat(final NumberFormat format) {
    this(format, (NumberFormat) format.clone());
}
 
Example 11
Source File: ProperFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperFractionFormat(NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 12
Source File: ProperBigFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperBigFractionFormat(final NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 13
Source File: ProperFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperFractionFormat(NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 14
Source File: Cardumen_0032_t.java    From coming with MIT License 2 votes vote down vote up
/**
 * Create an instance with a custom imaginary character, and a custom number
 * format for both real and imaginary parts.
 * @param imaginaryCharacter The custom imaginary character.
 * @param format the custom format for both real and imaginary parts.
 */
public ComplexFormat(String imaginaryCharacter, NumberFormat format) {
    this(imaginaryCharacter, format, (NumberFormat)format.clone());
}
 
Example 15
Source File: ProperFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperFractionFormat(NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 16
Source File: AbstractFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an improper formatting instance with a custom number format for
 * both the numerator and denominator.
 * @param format the custom format for both the numerator and denominator.
 */
protected AbstractFormat(final NumberFormat format) {
    this(format, (NumberFormat) format.clone());
}
 
Example 17
Source File: FractionFormat.java    From cacheonix-core with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Create an improper formatting instance with a custom number format for
 * both the numerator and denominator.
 * @param format the custom format for both the numerator and denominator.
 */
public FractionFormat(NumberFormat format) {
    this(format, (NumberFormat)format.clone());
}
 
Example 18
Source File: ProperBigFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperBigFractionFormat(final NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}
 
Example 19
Source File: AbstractFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create an improper formatting instance with a custom number format for
 * both the numerator and denominator.
 * @param format the custom format for both the numerator and denominator.
 */
protected AbstractFormat(final NumberFormat format) {
    this(format, (NumberFormat) format.clone());
}
 
Example 20
Source File: ProperFractionFormat.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a proper formatting instance with a custom number format for the
 * whole, numerator, and denominator.
 * @param format the custom format for the whole, numerator, and
 *        denominator.
 */
public ProperFractionFormat(NumberFormat format) {
    this(format, (NumberFormat)format.clone(), (NumberFormat)format.clone());
}