File tree Expand file tree Collapse file tree
gestalt-module/src/main/java/org/terasology/gestalt/module/dependencyresolution Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717package org .terasology .gestalt .module .dependencyresolution ;
1818
19+ import com .google .common .base .MoreObjects ;
1920import com .google .common .collect .ArrayListMultimap ;
2021import com .google .common .collect .HashMultimap ;
2122import com .google .common .collect .ImmutableSet ;
@@ -391,6 +392,16 @@ public boolean isCompatible(PossibleVersion version) {
391392 return missingAllowed ;
392393 }
393394 }
395+
396+ @ Override
397+ public String toString () {
398+ MoreObjects .ToStringHelper s = MoreObjects .toStringHelper (this )
399+ .addValue (versionRange );
400+ if (missingAllowed ) {
401+ s .addValue ("missingAllowed" );
402+ }
403+ return s .toString ();
404+ }
394405 }
395406
396407 private static class PossibleVersion implements Comparable <PossibleVersion > {
@@ -439,6 +450,13 @@ public boolean equals(Object obj) {
439450 public int hashCode () {
440451 return Objects .hash (version );
441452 }
453+
454+ @ Override
455+ public String toString () {
456+ return MoreObjects .toStringHelper (this )
457+ .addValue (version .map (Object ::toString ).orElse ("empty" ))
458+ .toString ();
459+ }
442460 }
443461
444462}
You can’t perform that action at this time.
0 commit comments