Java String Pluralize pluralize(int value, CharSequence singularForm, CharSequence pluralForm)

Here you can find the source of pluralize(int value, CharSequence singularForm, CharSequence pluralForm)

Description

pluralize

License

Open Source License

Declaration

public static String pluralize(int value, CharSequence singularForm, CharSequence pluralForm) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String pluralize(int value, CharSequence singularForm, CharSequence pluralForm) {
        return Integer.toString(value) + " " + (value == 1 ? singularForm : pluralForm);
    }//from  w  ww .j  a v a  2 s  .  c  om
}

Related

  1. pluralize(int count, String singular)
  2. pluralize(int count, String singular, String plural)
  3. pluralize(int count, String singular, String plural)
  4. pluralize(int count, String word)
  5. Pluralize(int quantity, String units)
  6. pluralize(long count, String singularFormat, String pluralFormat)
  7. pluralize(long strictlyPositiveCount, String singular, String plural)
  8. pluralize(long val, String singular, String plural)
  9. pluralize(String base, int quantity)