Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package lab12b;
- import java.util.*;
- import java.io.*;
- /**
- *
- * @author Tomasz
- */
- public class DataSet implements Serializable,Comparable<DataSet>
- {
- private Long id;
- private String info;
- public DataSet(Long id,String info)
- {
- this.id = id;
- this.info = info;
- }
- @Override
- public int compareTo(DataSet obj)
- {
- return id.compareTo(obj.id);
- }
- @Override
- public String toString()
- {
- return " " + id + " " + info;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement