]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/id/Identification.java
f22c1241d4a2fa0e41a80a8729daabb54e7529e9
1 package org
.tianocore
.frameworkwizard
.platform
.ui
.id
;
3 public class Identification
{
11 String type
; // Optional
13 Identification(String name
, String guid
, String version
){
16 this.version
= version
;
19 public boolean equals(Object obj
) {
20 if (obj
instanceof Identification
) {
21 Identification id
= (Identification
)obj
;
22 if ( guid
.equalsIgnoreCase(id
.guid
)) {
23 if (version
== null || id
.version
== null) {
24 updateName(name
, id
.name
);
27 else if (version
.trim().equalsIgnoreCase("") || id
.version
.trim().equalsIgnoreCase("")){
30 else if (version
.equalsIgnoreCase(id
.version
)) {
37 return super.equals(obj
);
41 void updateName(String name1
, String name2
) {
50 public void setName(String name
) {
54 public void setGuid(String guid
) {
58 public void setVersion(String version
) {
59 this.version
= version
;
62 public String
getGuid() {
66 public String
getName() {
70 public String
getVersion() {
74 public int hashCode(){
75 return guid
.hashCode();