org.babyfish.jimmer.client.runtime.impl.Graph Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-client Show documentation
Show all versions of jimmer-client Show documentation
A revolutionary ORM framework for both java and kotlin
package org.babyfish.jimmer.client.runtime.impl;
import java.util.HashSet;
import java.util.Set;
public abstract class Graph {
@Override
public final String toString() {
return toString(new HashSet<>());
}
public final String toString(Set stack) {
if (!stack.add(this)) {
return "...";
}
try {
return toStringImpl(stack);
} finally {
stack.remove(this);
}
}
protected abstract String toStringImpl(Set stack);
protected static String string(Object o, Set stack) {
return ((Graph) o).toString(stack);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy