Package dev.oak3.sbs4j.model
Class Polygon
- java.lang.Object
-
- dev.oak3.sbs4j.model.Polygon
-
- All Implemented Interfaces:
DeserializableObject
,SerializableObject
public class Polygon extends java.lang.Object implements SerializableObject, DeserializableObject
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(DeserializerBuffer deserializerBuffer)
boolean
equals(java.lang.Object o)
java.util.List<Point>
getVertices()
int
hashCode()
void
serialize(SerializerBuffer serializerBuffer)
void
setVertices(java.util.List<Point> vertices)
-
-
-
Constructor Detail
-
Polygon
public Polygon()
-
Polygon
public Polygon(java.util.List<Point> vertices)
-
-
Method Detail
-
getVertices
public java.util.List<Point> getVertices()
-
setVertices
public void setVertices(java.util.List<Point> vertices)
-
serialize
public void serialize(SerializerBuffer serializerBuffer)
- Specified by:
serialize
in interfaceSerializableObject
-
deserialize
public void deserialize(DeserializerBuffer deserializerBuffer) throws ValueDeserializationException
- Specified by:
deserialize
in interfaceDeserializableObject
- Throws:
ValueDeserializationException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-