File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed
src/main/java/com/github/dockerjava/core/command Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 55import java .util .List ;
66import java .util .Map ;
77
8+ import org .apache .commons .lang .builder .EqualsBuilder ;
9+ import org .apache .commons .lang .builder .HashCodeBuilder ;
810import org .apache .commons .lang .builder .ToStringBuilder ;
911
1012import com .fasterxml .jackson .annotation .JsonIgnore ;
@@ -412,12 +414,6 @@ public String getCgroupParent() {
412414 return hostConfig .getCgroupParent ();
413415 }
414416
415- @ Override
416- public String toString () {
417- return new ToStringBuilder (this ).append ("create container " ).append (name != null ? "name=" + name + " " : "" )
418- .append (this ).toString ();
419- }
420-
421417 @ Override
422418 public CreateContainerCmd withAttachStderr (Boolean attachStderr ) {
423419 checkNotNull (attachStderr , "attachStderr was not specified" );
@@ -890,4 +886,18 @@ public CreateContainerCmd withPidMode(String pidMode) {
890886 return this ;
891887 }
892888
889+ @ Override
890+ public String toString () {
891+ return ToStringBuilder .reflectionToString (this );
892+ }
893+
894+ @ Override
895+ public boolean equals (Object o ) {
896+ return EqualsBuilder .reflectionEquals (this , o );
897+ }
898+
899+ @ Override
900+ public int hashCode () {
901+ return HashCodeBuilder .reflectionHashCode (this );
902+ }
893903}
You can’t perform that action at this time.
0 commit comments