package com.altamiracorp.securegraph;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.EnumSet;
import java.util.Set;

public class Text implements Serializable {
    private final String text;
    private final Set<TextIndex> indexHint;

    public Text(String text) {
        this(text, TextIndex.ALL);
    }

    public Text(String text, TextIndex... indexHints) {
        this(text, EnumSet.copyOf(Arrays.asList(indexHints)));
    }

    public Text(String text, Collection<TextIndex> indexHints) {
        this.text = text;
        this.indexHint = EnumSet.copyOf(indexHints);
    }

    public String getText() {
        return text;
    }

    public Set<TextIndex> getIndexHint() {
        return Collections.unmodifiableSet(indexHint);
    }

    @Override
    public String toString() {
        return String.format("%s (indexHint: %s)", getText(), getIndexHint());
    }
}

@@ -82,121 +82,9 @@
 til.
-Arrays;%0Aimport java.util.Collection;%0Aimport java.util.Collections;%0Aimport java.util.EnumSet;%0Aimport java.util.Set
+*
 ;%0A%0Ap
@@ -779,69 +779,16 @@
 urn 
-String.format(%22%25s (indexHint: %25s)%22, getText(), getIndexHint()
+getText(
 );%0A 

change Text.toString to just return the text