Package org.eclipse.emf.compare.utils
Class Objects
java.lang.Object
org.eclipse.emf.compare.utils.Objects
Utility method useable on any
Object
.
Mostly answers the same interfaces as Guava's "Objects", but re-implemented here to avoid deprecation issues.
- Since:
- 3.5
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fluent interface to build a String representation of an object following the same format as guava's Objects.toStringHelper(). -
Method Summary
Modifier and TypeMethodDescriptionstatic Objects.ToStringHelper
toStringHelper
(Object object) Creates a builder for thetoString()
of the given object.
-
Method Details
-
toStringHelper
Creates a builder for thetoString()
of the given object.- Parameters:
object
- The object we'll need a string representation of.- Returns:
- A builder for the
toString()
of the given object.
-