Class ServerUtils
- java.lang.Object
-
- com.android.build.gradle.external.cmake.server.ServerUtils
-
public class ServerUtils extends java.lang.ObjectUtility class for Cmake server.
-
-
Constructor Summary
Constructors Constructor Description ServerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisCmakeInputsResultValid(CmakeInputsResult cmakeInputsResult)Validates if the response to cmake inputs from Cmake server is validstatic booleanisCodeModelValid(CodeModel codeModel)Validates if the response to code model from Cmake server is validstatic booleanisComputedResultValid(ComputeResult computeResult)Validates if the result of compute from Cmake server is validstatic booleanisConfigureResultValid(ConfigureResult configureResult)Validates the given response to configure command from Cmake serverstatic booleanisHandshakeResultValid(HandshakeResult handshakeResult)Validates the given handshake result object.static booleanisHelloResultValid(HelloResult helloResult)Validates the given hello result object.
-
-
-
Method Detail
-
isHelloResultValid
public static boolean isHelloResultValid(HelloResult helloResult)
Validates the given hello result object.- Parameters:
helloResult- - given hello result received from Cmake server- Returns:
- true if the given HelloResult object is valid
-
isHandshakeResultValid
public static boolean isHandshakeResultValid(@NonNull HandshakeResult handshakeResult)Validates the given handshake result object.- Parameters:
handshakeResult- - given handshake result received from Cmake server- Returns:
- true if the given HandshakeResult object is valid
-
isConfigureResultValid
public static boolean isConfigureResultValid(ConfigureResult configureResult)
Validates the given response to configure command from Cmake server- Returns:
- true if the given ConfigureResult is valid
-
isComputedResultValid
public static boolean isComputedResultValid(@NonNull ComputeResult computeResult)Validates if the result of compute from Cmake server is valid- Returns:
- true if the given ComputeResult is valid
-
isCodeModelValid
public static boolean isCodeModelValid(@NonNull CodeModel codeModel)Validates if the response to code model from Cmake server is valid- Returns:
- true if the given CodeModel has all the fields that are required by gradle to work as expected.
-
isCmakeInputsResultValid
public static boolean isCmakeInputsResultValid(@NonNull CmakeInputsResult cmakeInputsResult)Validates if the response to cmake inputs from Cmake server is valid- Returns:
- true if the given cmake Inputs has all the fields that are required by gradle to work as expected.
-
-