Package com.tick42.glue.core.interop
Class Instance
java.lang.Object
com.tick42.glue.core.interop.Instance
public final class Instance extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstance.Builder -
Method Summary
Modifier and Type Method Description booleanequals(Object o)voidforEach(BiConsumer<? super String,? super Object> action)Objectget(String name)StringgetApplication()Returns the name of the application.StringgetMachine()Returns the name of the machine.StringgetUser()Returns the name of the user.inthashCode()booleanisLocal()Returns whether or not this instance is running on the local machine.booleanmatches(Map<String,Object> query)Check if the instance matches all of the fields contained in the query.StringtoString()
-
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
-