public static OSType fromValue(int code) { for (OSType type : values()) { if (type.code == code) return type; } return UNRECOGNIZED; }
public static CIMOperatingSystem toComputeOs(org.jclouds.ovf.OperatingSystemSection os) { return new CIMOperatingSystem(OSType.fromValue(os.getId()), "", null, os.getDescription()); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((osType == null) ? 0 : osType.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; CIMOperatingSystem other = (CIMOperatingSystem) obj; if (osType == null) { if (other.osType != null) return false; } else if (!osType.equals(other.osType)) return false; return true; }
public static CIMOperatingSystem toComputeOs(OperatingSystemSection os) { return new CIMOperatingSystem(OSType.fromValue(os.getId()), "", null, os.getDescription()); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((osType == null) ? 0 : osType.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; CIMOperatingSystem other = (CIMOperatingSystem) obj; if (osType == null) { if (other.osType != null) return false; } else if (!osType.equals(other.osType)) return false; return true; }
public static CIMOperatingSystem toComputeOs(org.jclouds.ovf.OperatingSystemSection os) { return new CIMOperatingSystem(OSType.fromValue(os.getId()), "", null, os.getDescription()); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((osType == null) ? 0 : osType.hashCode()); return result; }
public static OSType fromValue(int code) { for (OSType type : values()) { if (type.code == code) return type; } return UNRECOGNIZED; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; CIMOperatingSystem other = (CIMOperatingSystem) obj; if (osType == null) { if (other.osType != null) return false; } else if (!osType.equals(other.osType)) return false; return true; }
public static CIMOperatingSystem toComputeOs(org.jclouds.ovf.OperatingSystemSection os) { return new CIMOperatingSystem(OSType.fromValue(os.getId()), "", null, os.getDescription()); }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((osType == null) ? 0 : osType.hashCode()); return result; }
public static OSType fromValue(int code) { for (OSType type : values()) { if (type.code == code) return type; } return UNRECOGNIZED; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; CIMOperatingSystem other = (CIMOperatingSystem) obj; if (osType == null) { if (other.osType != null) return false; } else if (!osType.equals(other.osType)) return false; return true; }
public static CIMOperatingSystem toComputeOs(org.jclouds.ovf.OperatingSystemSection os) { return new CIMOperatingSystem(OSType.fromValue(os.getId()), "", null, os.getDescription()); }