com.vaadin.shared.util
Class SharedUtil

java.lang.Object
  extended by com.vaadin.shared.util.SharedUtil
All Implemented Interfaces:
java.io.Serializable

public class SharedUtil
extends java.lang.Object
implements java.io.Serializable

Misc internal utility methods used by both the server and the client package.

Since:
7.1
Author:
Vaadin Ltd
See Also:
Serialized Form

Field Summary
static java.lang.String SIZE_PATTERN
          RegEx pattern to extract the width/height values.
 
Constructor Summary
SharedUtil()
           
 
Method Summary
static boolean equals(java.lang.Object o1, java.lang.Object o2)
          Checks if a and b are equals using Object.equals(Object).
static java.lang.String trimTrailingSlashes(java.lang.String value)
          Trims trailing slashes (if any) from a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE_PATTERN

public static final java.lang.String SIZE_PATTERN
RegEx pattern to extract the width/height values.

See Also:
Constant Field Values
Constructor Detail

SharedUtil

public SharedUtil()
Method Detail

equals

public static boolean equals(java.lang.Object o1,
                             java.lang.Object o2)
Checks if a and b are equals using Object.equals(Object). Handles null values as well. Does not ensure that objects are of the same type. Assumes that the first object's equals method handle equals properly.

Parameters:
o1 - The first value to compare
o2 - The second value to compare
Returns:
true if the objects are equal, false otherwise

trimTrailingSlashes

public static java.lang.String trimTrailingSlashes(java.lang.String value)
Trims trailing slashes (if any) from a string.

Parameters:
value - The string value to be trimmed. Cannot be null.
Returns:
String value without trailing slashes.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.