Desktop tool for browsing account info from EVE-Online
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

CertInfo.java 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Copyright (c) 2009 Chris Smith
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a copy
  5. * of this software and associated documentation files (the "Software"), to deal
  6. * in the Software without restriction, including without limitation the rights
  7. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. * copies of the Software, and to permit persons to whom the Software is
  9. * furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  20. * SOFTWARE.
  21. */
  22. package uk.co.md87.evetool.api.wrappers.data;
  23. import java.util.List;
  24. import uk.co.md87.evetool.ui.listable.Retrievable;
  25. /**
  26. *
  27. * TODO: Document CertInfo
  28. * @author chris
  29. */
  30. public class CertInfo {
  31. private final int id;
  32. private final int grade;
  33. private final int corp;
  34. private final String desc;
  35. private final RequirementsList skillReqs;
  36. private final List<Integer> certReqs;
  37. public CertInfo(final int id, final int grade, final int corp,
  38. final String desc, final RequirementsList skillReqs,
  39. final List<Integer> certReqs) {
  40. this.id = id;
  41. this.grade = grade;
  42. this.corp = corp;
  43. this.desc = desc;
  44. this.skillReqs = skillReqs;
  45. this.certReqs = certReqs;
  46. }
  47. public List<Integer> getCertReqs() {
  48. return certReqs;
  49. }
  50. @Retrievable(name="Issuing corporation ID")
  51. public int getCorp() {
  52. return corp;
  53. }
  54. @Retrievable(name="Description")
  55. public String getDesc() {
  56. return desc;
  57. }
  58. @Retrievable
  59. public int getGrade() {
  60. return grade;
  61. }
  62. @Retrievable
  63. public int getId() {
  64. return id;
  65. }
  66. public RequirementsList getSkillReqs() {
  67. return skillReqs;
  68. }
  69. /** {@inheritDoc} */
  70. @Override
  71. public String toString() {
  72. return "[" + id + ": grade " + grade + "]";
  73. }
  74. }