Java String Suffix suffix(String name, String suffix)

Here you can find the source of suffix(String name, String suffix)

Description

suffix

License

MIT License

Declaration

public static String suffix(String name, String suffix) 

Method Source Code

//package com.java2s;
/*/*from ww w . j  a  va  2s  .c  o  m*/
 * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2014, Gluu
 */

public class Main {
    public static String suffix(String name, String suffix) {
        return (suffix == null) ? name : name + suffix;
    }
}

Related

  1. suffix(final String source, final String target)
  2. suffix(String fname)
  3. suffix(String input, char delimiter)
  4. suffix(String mime)
  5. suffix(String name, char separator)
  6. suffix(String prefix, String path)
  7. suffix(String s, int delim)
  8. suffix(String s, String suffix)
  9. suffix(String str, int width, String with)