예제 #1
0
 /*
  * (non-Javadoc)
  * @see java.lang.Object#hashCode()
  */
 @Override
 public int hashCode() {
   int result = 17;
   result += 31 * center.hashCode();
   result += 31 * radius.hashCode();
   return result;
 }
예제 #2
0
 /**
  * Returns the {@link Shape} as a list of usually {@link Double} or {@link List}s of {@link
  * Double}s. Wildcard bound to allow implementations to return a more concrete element type.
  *
  * @return
  */
 public List<? extends Object> asList() {
   return Arrays.asList(Arrays.asList(center.getX(), center.getY()), this.radius.getValue());
 }
 public MarkerData(Point position, String icon) {
   x = (int) position.getX();
   y = (int) position.getY();
   this.icon = icon;
 }