File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
gestalt-module/src/main/java/org/terasology/gestalt/module/dependencyresolution Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 33
44package org .terasology .gestalt .module .dependencyresolution ;
55
6+ import com .google .common .base .MoreObjects ;
67import com .google .common .collect .ArrayListMultimap ;
78import com .google .common .collect .HashMultimap ;
89import com .google .common .collect .ImmutableSet ;
@@ -378,6 +379,16 @@ public boolean isCompatible(PossibleVersion version) {
378379 return missingAllowed ;
379380 }
380381 }
382+
383+ @ Override
384+ public String toString () {
385+ MoreObjects .ToStringHelper s = MoreObjects .toStringHelper (this )
386+ .addValue (versionRange );
387+ if (missingAllowed ) {
388+ s .addValue ("missingAllowed" );
389+ }
390+ return s .toString ();
391+ }
381392 }
382393
383394 private static class PossibleVersion implements Comparable <PossibleVersion > {
@@ -426,6 +437,13 @@ public boolean equals(Object obj) {
426437 public int hashCode () {
427438 return Objects .hash (version );
428439 }
440+
441+ @ Override
442+ public String toString () {
443+ return MoreObjects .toStringHelper (this )
444+ .addValue (version .map (Object ::toString ).orElse ("empty" ))
445+ .toString ();
446+ }
429447 }
430448
431449}
You can’t perform that action at this time.
0 commit comments