input
stringlengths
10
828
output
stringlengths
5
107
public boolean equals final object obj if obj this return true if obj null obj get class get class guid guid guid obj return guid vmid equals vmid guid uid equals uid return false
check if the given object is equal to this guid
public boolean equals final object obj if obj this return true if obj null obj get class get class uid uid uid obj return uid time time uid id id return false
checks if the given object is equal to this uid
public string get name return name null string value of value name
returns the name of the state or if null returns the
public boolean equals final object obj if obj this return true if obj null obj get class get class vmid vmid vmid obj return primitives equals vmid address address vmid pid equals pid vmid uid equals uid return false
check if the given object is equal to this vmid
public boolean equals object obj if obj this return true if obj null obj get class get class return value mu integer obj int value return false
test the equality of this mutable integer and another object
public boolean is acceptable final state state return false
always returns false
public boolean remove property listener property listener listener if listener null throw new null argument exception listener boolean removed false if listener instanceof bound property listener removed remove property listener bound property listener listener else removed unbound listeners remove listener return removed
remove a property listener
public void test double2 long try message message sender session create message message set double property prop 127 0 message get long property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code double code
public string to identity string return super to string
returns the identity string of this state
public boolean equals final object obj if obj this return true if obj instanceof state return value state obj get value return false
check for state equality
protected boolean remove property listener bound property listener listener get the bound property name string name listener get property name get the bound listener list for the property list list list bound listeners get name boolean removed false if list null removed list remove listener notify listener that is was unbound if removed listener property unbound this return removed
remove a bound property listener
public boolean equals final object obj if obj this return true if obj null obj get class get class return stack trace obj stack equals stack return false
check if the given object is equals to this
public string to string string buffer buff new string buffer super to string append append n buff append model n model append pretty string buff append n buff append change listeners append change listeners append n return buff to string
returns a human readable snapshot of the current state of the machine
public boolean is triggering event logging event event string regex string event get mdc regex event evaluator boolean is triggering event false if regex null look for a cached regex pattern re re re regex map get regex if re null try re new re regex regex map put regex re catch reexception e if re null string msg event get rendered message if msg null is triggering event re is match msg return is triggering event
lookup the current mdc regex event evaluator to determine the regular
private void fire property added list list property event event if list null return int size list size for int i 0 i size i property listener listener property listener list get i listener property added event
fire a property added event to the given list of listeners
public void test double2 int try message message sender session create message message set double property prop 127 0 message get int property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code double code
protected entry get entry final state state if state null throw new null argument exception state return entry accepting map get state
get an entry from the map
protected entry put entry final state state final set acceptable return entry accepting map put state new entry state acceptable
put a new entry into the map
public boolean is trace enabled return logger delegate is trace enabled
check to see if the trace level is enabled for this logger
protected void fire property added property event event fire all bound listeners if any first if bound listeners null list list list bound listeners get event get property name if list null fire property added list event next fire all unbound listeners fire property added unbound listeners event
fire a property added event to all registered listeners
public entry get entry final int level return entry stack get level
returns the stack trace entry for the element at the given level
public void trace object message logger delegate trace message
issue a log msg with a level of trace
public void set value object obj if obj instanceof number value number obj int value else throw new not coercible exception can not convert to int obj
set the value of this mutable integer
public void test double2 short try message message sender session create message store a value that can t be converted to short message set double property prop 127 0 message get short property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code double code
public void trace object message throwable t logger delegate trace message t
issue a log msg and throwable with a level of trace
public void trace object message log log fqcn xlevel trace message null
issue a log msg with a level of trace
public state get current state return model get current state
returns the current state of the machine
public void trace object message throwable t log log fqcn xlevel trace message t
issue a log msg and throwable with a level of trace
public boolean is debug enabled return logger delegate is debug enabled
check to see if the trace level is enabled for this logger
public boolean is debug enabled level l level debug if log is enabled for l false return false return l is greater or equal log get effective level
check to see if the trace level is enabled for this logger
private void fire property removed list list property event event if list null return int size list size for int i 0 i size i property listener listener property listener list get i listener property removed event
fire a property removed event to the given list of listeners
public void debug object message log log fqcn level debug message null
issue a log msg with a level of debug
public entry get caller entry return get entry 0
returns the stack trace entry for the calling method
public void debug object message logger delegate debug message
issue a log msg with a level of debug
public void debug object message throwable t log log fqcn level debug message t
issue a log msg and throwable with a level of debug
public boolean is info enabled level l level info if log is enabled for l false return false return l is greater or equal log get effective level
check to see if the info level is enabled for this logger
public void debug object message throwable t logger delegate debug message t
issue a log msg and throwable with a level of debug
public void info object message log log fqcn level info message null
issue a log msg with a level of info
public void test double2 byte try message message sender session create message store a value that can t be converted to byte message set double property prop 127 0 message get byte property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code double code
public void info object message throwable t log log fqcn level info message t
issue a log msg and throwable with a level of info
public state get initial state return model get initial state
returns the initial state of the machine
public void warn object message log log fqcn level warn message null
issue a log msg with a level of warn
public boolean is info enabled return logger delegate is info enabled
check to see if the info level is enabled for this logger
protected void fire property removed property event event fire all bound listeners if any first if bound listeners null list list list bound listeners get event get property name if list null fire property removed list event next fire all unbound listeners fire property removed unbound listeners event
fire a property removed event to all registered listeners
public entry get root entry return get entry stack size 1
return the root entry for this stack trace
public void warn object message throwable t log log fqcn level warn message t
issue a log msg and throwable with a level of warn
public void error object message log log fqcn level error message null
issue a log msg with a level of error
public void info object message logger delegate info message
issue a log msg with a level of info
public void error object message throwable t log log fqcn level error message t
issue a log msg and throwable with a level of error
public void fatal object message log log fqcn level fatal message null
issue a log msg with a level of fatal
public void info object message throwable t logger delegate info message t
issue a log msg and throwable with a level of info
public void fatal object message throwable t log log fqcn level fatal message t
issue a log msg and throwable with a level of fatal
public stack trace get sub trace final int level return new stack trace stack sub list level stack size
returns a sub trace starting at the the given level
public void log priority p object message log log fqcn p message null
issue a log msg with the given level
public void test double2 boolean try message message sender session create message store a value that can be converted to boolean message set double property prop 127 0 message get boolean property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code double code
private void fire property changed list list property event event if list null return int size list size for int i 0 i size i property listener listener property listener list get i listener property changed event
fire a property changed event to the given list of listeners
public void warn object message logger delegate warn message
issue a log msg with a level of warn
public void log priority p object message throwable t log log fqcn p message t
issue a log msg with the given priority
public void warn object message throwable t logger delegate warn message t
issue a log msg and throwable with a level of warn
public void log level l object message log log fqcn l message null
issue a log msg with the given level
public void log level l object message throwable t log log fqcn l message t
issue a log msg with the given level
public void error object message logger delegate error message
issue a log msg with a level of error
protected void update acceptable mapping final state state final boolean remove iterator iter accepting map entry set iterator while iter has next entry entry entry map entry iter next get value only attempt to update non final states if entry acceptable states null entry acceptable states contains state entry acceptable states remove state if remove entry acceptable states add state
update acceptable mappings
public stack trace get sub trace final int level int limit if limit 0 limit math min level limit stack size else limit stack size limit is now the ending index of the stack to return return new stack trace stack sub list level limit
returns a sub trace starting at the the given level
public void error object message throwable t logger delegate error message t
issue a log msg and throwable with a level of error
protected void fire property changed property event event fire all bound listeners if any first if bound listeners null list list list bound listeners get event get property name if list null fire property changed list event next fire all unbound listeners fire property changed unbound listeners event
fire a property changed event to all listeners
public void test float2 string try message message sender session create message message set float property prop 127 0 f assert equals 127 0 message get string property prop catch jmsexception e fail e
if a property is set as a code float code
public void fatal object message logger delegate fatal message
issue a log msg with a level of fatal
public void fatal object message throwable t logger delegate fatal message t
issue a log msg and throwable with a level of fatal
public stack trace get caller trace return get sub trace 1
returns the stack trace starting at the calling method
protected string make prefixed property name string base string prefix string name base if prefix null string buffer buff new string buffer base if prefix null buff insert 0 property name separator buff insert 0 prefix return buff to string return name
make a optionaly prefixed property name
public void test float2 double try message message sender session create message message set float property prop 127 0 f assert equals 127 0 message get double property prop 0 catch jmsexception e fail e
if a property is set as a code float code
public void reset state prev model get current state state initial model get initial state change event event change state initial iterator iter model states iterator while iter has next state state state iter next skip previous and initial states they have been notfied by change statex if state equals prev state equals initial continue if state instanceof change listener change listener state state changed event
reset the state machine
public void print final print writer writer final string prefix iterator iter stack iterator while iter has next entry entry entry iter next entry print writer prefix
print this stack trace
public void load string prefix map map throws property exception prefix can be null if map null throw new null argument exception map set properties for each key in map iterator iter map key set iterator while iter has next make a string key with optional prefix string key string value of iter next string name make prefixed property name key prefix string value string value of map get name set the property set property name value
load properties from a map
public void load map map throws property exception load null map
load properties from a map
public void print final print writer writer print writer empty prefix
print this stack trace
protected change event change state state state assert state null replace state with the mapped version state model get mapped state state state prev model get current state model set current state state change event event new change event this prev state let the previous and current states deal if they want if prev instanceof change listener change listener prev state changed event if state instanceof change listener change listener state state changed event fire change event fire state changed event return event
change the state of the machine and send change events
public void test float2 float try message message sender session create message message set float property prop 127 0 f assert equals 127 0 f message get float property prop 0 catch jmsexception e fail e
if a property is set as a code float code
public void load property reader reader throws property exception ioexception if reader null throw new null argument exception reader load reader read properties
load properties from a property reader
public void print final print stream stream final string prefix iterator iter stack iterator while iter has next entry entry entry iter next entry print stream prefix
print this stack trace
public set final states set set new hash set iterator iter model states iterator while iter has next state state state iter next if is state final state set add state return collections unmodifiable set set
return all states which are final
public void load string class name throws property exception ioexception if class name null throw new null argument exception class name property reader reader null try class type class for name class name reader property reader type new instance catch exception e throw new property exception e load the properties from the source load reader
load properties from a property reader specifed by the given class name
public void print final print stream stream print stream empty prefix
print this stack trace
public void test float2 long try message message sender session create message message set float property prop 127 0 f message get long property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code float code
public void print final string prefix print system err prefix
print this stack trace to code system
public void test float2 int try message message sender session create message message set float property prop 127 0 f message get int property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code float code
public boolean is state final return is state final model get current state
determine if the current state is final
public void print print system err
print this stack trace to code system
public string remove property string name return string remove name
remove a property
public boolean is current state final state state return model get current state equals state
check if the given state is the current state
protected string make index property name string base int index return base property name separator index
make an indexed property name
public void test float2 short try message message sender session create message store a value that can t be converted to short message set float property prop 127 0 f message get short property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code float code
public boolean is initial state final state state return model get initial state equals state
check if the given state is the initial state
public iterator names return key set iterator
return an iterator over all contained property names
public void test float2 byte try message message sender session create message store a value that can t be converted to byte message set float property prop 127 0 f message get byte property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code float code
public boolean contains property string name return contains key name
check if this map contains a given property
public void add change listener final change listener listener if listener null throw new null argument exception listener synchronized change listeners if change listeners contains listener change listeners add listener
add a state change listener
public string get short class name return classes strip package name class name
get the short class name for this entry
public property group get property group string basename return new property group basename this
get a property group for the given property base