Package com.tick42.glue.core.interop
Class Instance
java.lang.Object
com.tick42.glue.core.interop.Instance
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidforEach(BiConsumer<? super String, ? super Object> action) Returns the name of the application.Returns the name of the machine.getUser()Returns the name of the user.inthashCode()booleanisLocal()Returns whether or not this instance is running on the local machine.booleanCheck if the instance matches all of the fields contained in the query.toString()
-
Method Details
-
getApplication
Returns the name of the application.- Returns:
- the name of the application, may be
null.
-
getUser
Returns the name of the user.- Returns:
- the name of the user, never
null
-
getMachine
Returns the name of the machine.- Returns:
- the name of the machine, never
null
-
isLocal
public boolean isLocal()Returns whether or not this instance is running on the local machine.- Returns:
trueif local,falseif remote- Since:
- 1.3
-
equals
-
hashCode
public int hashCode() -
toString
-
get
-
matches
Check if the instance matches all of the fields contained in the query. Only returnstrueif the query matches completely- Parameters:
query- contains fields that should match this instance's fields- Returns:
- whether or not the instance completely matches the query
- Since:
- 1.3
-
forEach
-