Java String Ellipse ellipsify(String message)

Here you can find the source of ellipsify(String message)

Description

Adds an ellipsis to the end of a string, generally indicating that this string leads to another choice (like a dialog)

License

Open Source License

Parameter

Parameter Description
message a parameter

Return

The ellipsif-ied string

Declaration

public static String ellipsify(String message) 

Method Source Code

//package com.java2s;
/**//from ww w .j  a v  a  2s  .  c o m
 * Aptana Studio
 * Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
 * Please see the license.html included with this distribution for details.
 * Any modifications to this file must keep this entire header intact.
 */

public class Main {
    /**
     * Adds an ellipsis to the end of a string, generally indicating that this string leads to another choice (like a
     * dialog)
     * 
     * @param message
     * @return The ellipsif-ied string
     */
    public static String ellipsify(String message) {
        return message == null ? null : message + "..."; //$NON-NLS-1$
    }
}

Related

  1. ellipseCircum(double a, double b)
  2. ellipseCircumference(double a, double b)
  3. ellipseString(StringBuilder builder, int maxLength)
  4. ellipsis(final String text, final int length)
  5. ellipsis(final String text, int length)
  6. ellipsis(String string, int length)
  7. ellipsis(String text, int max)