1 25 26 package org.objectweb.speedo.pobjects.fetchgroup; 27 28 31 public class EdgeWeight { 32 33 private int weight; 34 35 public EdgeWeight() { 36 this.weight = -1; 37 } 38 39 public EdgeWeight(int weight){ 40 this.weight = weight; 41 } 42 43 46 public int getWeight() { 47 return weight; 48 } 49 50 53 public void setWeight(int weight) { 54 this.weight = weight; 55 } 56 57 public String toString(){ 58 return "" + weight; 59 } 60 } 61 | Popular Tags |