Code example for DataOutput

Methods: writeLong

0
        super(in);
        this.capacity_bps = in.readLong();
    } 
     
    public void write(DataOutput out) throws IOException {
        super.write(out);
        out.writeLong(capacity_bps);
    } 
     
    public String toString() {
        return super.toString() + ":" + capacity_bps + "bps";
    } 
 
    public int hashCode() { 
        return super.hashCode() + 31*(int)capacity_bps;
    } 
     
    public boolean equals(Object o) {
        if(o == null) return false;
        if(!(o instanceof LinkSpec)) return false;
        LinkSpec l = (LinkSpec)o;