3import java.lang.reflect.Type;
4import java.util.ArrayList;
7import com.google.gson.JsonElement;
8import com.google.gson.JsonSerializationContext;
9import com.google.gson.JsonSerializer;
37 this.addAll(selVrtxs);
44 StringBuilder sb =
new StringBuilder();
45 sb.append(
"SymmetricVertexes [");
46 for (
int i=0; i<this.size(); i++)
48 sb.append(this.
get(i).getVertexId());
49 if (i<(this.size()-1))
59 implements JsonSerializer<SymmetricVertexes>
63 JsonSerializationContext context)
65 List<Long> vertexIDs =
new ArrayList<Long>();
68 vertexIDs.add(v.getVertexId());
70 return context.serialize(vertexIDs);
Class representing a list of references pointing to instances that are related by some conventional c...
JsonElement serialize(SymmetricVertexes list, Type typeOfSrc, JsonSerializationContext context)
A collection of Vertexs that are related by a relation that we call "symmetry", even though this clas...
SymmetricVertexes(List< Vertex > selVrtxs)
static final long serialVersionUID
Version ID.
A vertex is a data structure that has an identity and holds a list of AttachmentPoints.