Added toString() methods.

This commit is contained in:
Inderjeet Singh 2010-10-22 15:12:05 +00:00
parent 91bee2a688
commit c01fd85adb
3 changed files with 15 additions and 0 deletions

View File

@ -76,6 +76,10 @@ public final class MetaData<R extends RestResource<R>> {
map.remove(key);
}
@Override
public String toString() {
return String.format("%s", map);
}
/**
* Gson Type adapter for {@link MetaData}. The serialized representation on wire is just a
* Map<String, String>

View File

@ -109,4 +109,10 @@ public final class RestCallSpec {
public Type getResourceType() {
return resourceType;
}
@Override
public String toString() {
return String.format("path: %s, resourceType: %s, requestSpec: %s, responseSpec: %s",
path, resourceType, requestSpec, responseSpec);
}
}

View File

@ -44,4 +44,9 @@ public class MetaDataMap<R extends RestResource<R>> {
}
return metaData;
}
@Override
public String toString() {
return String.format("%s", map);
}
}