mirror of https://github.com/apache/jclouds.git
Fix the Class name
This commit is contained in:
parent
a99ce504f1
commit
f7799c22ad
|
@ -24,7 +24,7 @@ import com.google.gson.annotations.SerializedName;
|
||||||
/**
|
/**
|
||||||
* @author Vijay Kiran
|
* @author Vijay Kiran
|
||||||
*/
|
*/
|
||||||
public class SSHKeyPair implements Comparable<SSHKeyPair> {
|
public class SshKeyPair implements Comparable<SshKeyPair> {
|
||||||
|
|
||||||
public static Builder builder() {
|
public static Builder builder() {
|
||||||
return new Builder();
|
return new Builder();
|
||||||
|
@ -51,13 +51,13 @@ public class SSHKeyPair implements Comparable<SSHKeyPair> {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SSHKeyPair build() {
|
public SshKeyPair build() {
|
||||||
return new SSHKeyPair(fingerprint, name, privateKey);
|
return new SshKeyPair(fingerprint, name, privateKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// for deserialization
|
// for deserialization
|
||||||
SSHKeyPair() {
|
SshKeyPair() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ public class SSHKeyPair implements Comparable<SSHKeyPair> {
|
||||||
@SerializedName("privatekey")
|
@SerializedName("privatekey")
|
||||||
private String privateKey;
|
private String privateKey;
|
||||||
|
|
||||||
public SSHKeyPair(String fingerprint, String name, String privateKey) {
|
public SshKeyPair(String fingerprint, String name, String privateKey) {
|
||||||
this.fingerprint = fingerprint;
|
this.fingerprint = fingerprint;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.privateKey = privateKey;
|
this.privateKey = privateKey;
|
||||||
|
@ -103,7 +103,7 @@ public class SSHKeyPair implements Comparable<SSHKeyPair> {
|
||||||
return false;
|
return false;
|
||||||
if (getClass() != obj.getClass())
|
if (getClass() != obj.getClass())
|
||||||
return false;
|
return false;
|
||||||
SSHKeyPair other = (SSHKeyPair) obj;
|
SshKeyPair other = (SshKeyPair) obj;
|
||||||
if (fingerprint == null) {
|
if (fingerprint == null) {
|
||||||
if (other.fingerprint != null)
|
if (other.fingerprint != null)
|
||||||
return false;
|
return false;
|
||||||
|
@ -129,7 +129,7 @@ public class SSHKeyPair implements Comparable<SSHKeyPair> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(SSHKeyPair arg0) {
|
public int compareTo(SshKeyPair arg0) {
|
||||||
return fingerprint.compareTo(arg0.getFingerprint());
|
return fingerprint.compareTo(arg0.getFingerprint());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue