Package com.thecoderscorner.menu.remote
Class RemoteInformation
- java.lang.Object
-
- com.thecoderscorner.menu.remote.RemoteInformation
-
public class RemoteInformation extends java.lang.ObjectRepresents the remote connection details, such as name and version.
-
-
Field Summary
Fields Modifier and Type Field Description static RemoteInformationNOT_CONNECTED
-
Constructor Summary
Constructors Constructor Description RemoteInformation(java.lang.String name, int major, int minor, ApiPlatform platform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMajorVersion()the major version of the remote hostintgetMinorVersion()the minor version of the remote hostjava.lang.StringgetName()the name of the remoteApiPlatformgetPlatform()the platform type of the remote hostjava.lang.StringtoString()
-
-
-
Field Detail
-
NOT_CONNECTED
public static final RemoteInformation NOT_CONNECTED
-
-
Constructor Detail
-
RemoteInformation
public RemoteInformation(java.lang.String name, int major, int minor, ApiPlatform platform)
-
-
Method Detail
-
getName
public java.lang.String getName()
the name of the remote
-
getPlatform
public ApiPlatform getPlatform()
the platform type of the remote host
-
getMajorVersion
public int getMajorVersion()
the major version of the remote host
-
getMinorVersion
public int getMinorVersion()
the minor version of the remote host
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-