Advertisement
Guest User

Untitled

a guest
Nov 28th, 2012
532
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None
  1. public static class Info {
  2.  
  3. private String name;
  4. private String vendor;
  5. private String description;
  6. private String version;
  7. protected Info(String name, String vendor, String description, String version) {
  8. this.name = name;
  9. this.vendor = vendor;
  10. this.description = description;
  11. this.version = version;
  12. }
  13. public final boolean equals(Object obj) {
  14. return super.equals(obj);
  15. }
  16. public final int hashCode() {
  17. return super.hashCode();
  18. }
  19. public final String getName() {
  20. return name;
  21. }
  22. public final String getVendor() {
  23. return vendor;
  24. }
  25. public final String getDescription() {
  26. return description;
  27. }
  28. public final String getVersion() {
  29. return version;
  30. }
  31. public final String toString() {
  32. return name;
  33. }
  34. }
Advertisement
RAW Paste Data Copied
Advertisement