play.utils
Class Utils

java.lang.Object
  extended by play.utils.Utils

public class Utils
extends java.lang.Object

Generic utils


Nested Class Summary
static class Utils.AlternativeDateFormat
           
static class Utils.Maps
          for java.util.Map
 
Constructor Summary
Utils()
           
 
Method Summary
static java.util.Map<java.lang.String,java.lang.String[]> filterMap(java.util.Map<java.lang.String,java.lang.String[]> map, java.lang.String prefix)
           
static java.text.SimpleDateFormat getHttpDateFormatter()
           
static java.lang.String getSimpleNames(java.lang.annotation.Annotation[] values)
           
static java.lang.String join(java.lang.annotation.Annotation[] values, java.lang.String separator)
           
static
<T> java.lang.String
join(java.lang.Iterable<T> values, java.lang.String separator)
           
static java.lang.String join(java.lang.String[] values, java.lang.String separator)
           
static java.lang.String open(java.lang.String file, java.lang.Integer line)
           
static java.lang.String toString(java.lang.annotation.Annotation[] values)
          Deprecated. Use Utils.join(values, " ");
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

join

public static <T> java.lang.String join(java.lang.Iterable<T> values,
                                        java.lang.String separator)

join

public static java.lang.String join(java.lang.String[] values,
                                    java.lang.String separator)

join

public static java.lang.String join(java.lang.annotation.Annotation[] values,
                                    java.lang.String separator)

getSimpleNames

public static java.lang.String getSimpleNames(java.lang.annotation.Annotation[] values)

toString

@Deprecated
public static java.lang.String toString(java.lang.annotation.Annotation[] values)
Deprecated. Use Utils.join(values, " ");


open

public static java.lang.String open(java.lang.String file,
                                    java.lang.Integer line)

getHttpDateFormatter

public static java.text.SimpleDateFormat getHttpDateFormatter()

filterMap

public static java.util.Map<java.lang.String,java.lang.String[]> filterMap(java.util.Map<java.lang.String,java.lang.String[]> map,
                                                                           java.lang.String prefix)


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly