input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public float divide float factor return value factor | divide by the specified factor |
public int increment return value | increment the value of this mutable integer |
protected lrucache entry create cache entry object key object value return new lrucache entry key value | factory method for cache entries |
public float negate value float value return value | set the value to the negative of its current value |
public int decrement return value | decrement the value of this mutable integer |
public int compare to float other return value other 1 primitives equals value other 0 1 | compares this object with the specified float for order |
public string to string return string value of id | return a string representation of this pid |
public string to string int radix return integer to string id radix | return a string representation of this pid |
public object remove object name if name null throw new null argument exception name check if there is a property with this name boolean contains contains key name string value null if contains value string super remove name if defaults null object obj defaults remove name if value null value string obj property event event new property event this string name value fire property removed event return value | remove a property |
private object get object final int index object obj list get index return objects deref obj | dereference the object at the given index |
public int add int amount return value amount | add the specified amount |
public int size maintain return set size | return the size of the set |
public int compare to object obj return compare to mu float obj | compares this object with the specified object for order |
public object get final int index maintain return get object index | returns the element at the specified position in this list |
public boolean equals final object obj if obj this return true if obj null obj get class get class pid pid pid obj return pid id id return false | check if the given object is equal to this pid |
protected void add property listener final bound property listener listener get the bound property name string name make property name listener get property name get the bound listener list for the property list list list bound listeners get name if list is null then add a new list if list null list new array list bound listeners put name list if listener is not in the list already then add it if list contains listener list add listener notify listener that is is bound listener property bound this | add a bound property listener |
public iterator iterator return new iterator the set s iterator iterator iter set iterator the next available object object next null public boolean has next while iter has next weak object weak weak object iter next object obj null if weak null obj weak get null object has been reclaimed by the gc continue next obj return true return false public object next if next null has next throw new no such element exception object obj next next null return obj public void remove iter remove | return an iteration over the elements in the set |
protected void demote if m capacity 1 throw new illegal state exception can t work with capacity 1 if m count m max capacity throw new illegal state exception cache list entries number m count than the maximum allowed m max capacity if m count m max capacity lrucache entry entry m tail the entry will be removed by age out age out entry else cache is not full do nothing | demotes from the cache the least used entry |
public int size maintain return list size | return the size of the list |
public int subtract int amount return value amount | subtract the specified amount |
public boolean has next for index iters length index if iters index null iters index has next return true return false | check if there are more elements |
public object set final int index final object obj maintain soft object soft soft object create obj queue soft soft object list set index soft return objects deref soft | replaces the element at the specified position in this list with the |
public boolean equals final object obj if obj this return true if obj null obj get class get class compound key key compound key obj return objects equals key elements elements return false | test the equality of an object with this |
public object next if has next throw new no such element exception return iters index next | return the next element from the current iterator |
public void test double2 string try message message sender session create message message set double property prop 127 0 assert equals 127 0 message get string property prop catch jmsexception e fail e | if a property is set as a code double code |
protected boolean remove property listener final bound property listener listener get the bound property name string name make property 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 void add final int index final object obj maintain soft object soft soft object create obj queue list add index soft | inserts the specified element at the specified position in this list |
public void remove iters index remove | remove the current element from the current iterator |
public int hash code return hash code generate elements | get the hash code of this object |
public int multiply int factor return value factor | multiply by the specified factor |
public boolean has next return index array length | returns true if there are more elements in the iteration |
public boolean has next return current 0 | check if there are more elements |
public string to string return super to string strings join elements | return a string representation of this object |
public object remove final int index maintain object obj list remove index return objects deref obj | removes the element at the specified position in this list optional |
public set key set final boolean include defaults if include defaults set set new hash set set add all defaults key set set add all super key set return collections synchronized set set return super key set | returns a set of keys for all entries in this group and optionally |
public object next if has next throw new no such element exception return array index | returns the next element in the iteration |
public object next if current 0 throw new no such element exception return list get current | get the next element |
public void remove list remove current | remove the current element |
private void maintain soft object obj int count 0 while obj soft object queue poll null count list remove obj if count 0 some temporary debugging fluff system err println vm reclaimed count objects | maintains the collection by removing garbage collected objects |
public boolean equals object obj if obj this return true if obj null obj get class get class return primitives equals value mu float obj float value return false | test the equality of this mutable double with another object |
public int divide int factor return value factor | divide by the specified factor |
public boolean add final object obj maintain return set add weak object create obj queue | add an element to the set |
protected boolean add last final object obj return list add obj | appends the given element to the end of this list |
public int negate value int value return value | set the value to the negative of its current value |
protected object remove first return list remove 0 | remove the first object in the queue |
public boolean is empty maintain return set is empty | returns tt true tt if this set contains no elements |
public int complement value int value return value | set the value to its complement |
protected void entry added lrucache entry entry | callback that signals that the given entry has been added to the cache |
public boolean contains final object obj maintain return set contains weak object create obj | returns tt true tt if this set contains the specified element |
public boolean add final object obj boolean added false if list contains obj added list add obj return added | add an element to the set |
public set entry set final boolean include defaults if include defaults set set new hash set set add all defaults entry set set add all super entry set return collections synchronized set set return super entry set | returns a set of entrys for all entries in this group and optionally |
public object get front throws empty collection exception if is empty throw new empty collection exception return list get 0 | get the object at the front of the queue |
public int and int b value int value b return value | i and i s the current value with the specified value |
public boolean remove final object obj maintain return set remove weak object create obj | removes the given element from this set if it is present |
public boolean contains final object obj return list contains obj | returns tt true tt if this set contains the specified element |
public object get back throws empty collection exception if is empty throw new empty collection exception return list get list size 1 | get the object at the back of the queue |
public void test double2 double try message message sender session create message message set double property prop 127 0 assert equals 127 0 message get double property prop 0 catch jmsexception e fail e | if a property is set as a code double code |
public boolean remove final object obj return list remove obj | removes the given element from this set if it is present |
public iterator reverse iterator return new reverse list iterator list | returns an iterator over the elements in this list in reverse sequence |
public int or int b value int value b return value | i or i s the current value with the specified value |
protected void entry removed lrucache entry entry | callback that signals that the given entry has been removed from the cache |
public object clone maintain try return super clone catch clone not supported exception e throw new internal error | returns a shallow copy of this tt weak set tt instance the elements |
public int xor int b value int value b return value | i xor i s the current value with the specified value |
public object get object key process queue weak reference ref weak reference hash get key if ref null return ref get return null | returns the value to which this map maps the specified code key code |
public iterator iterator maintain return new my iterator collection iterator | returns an iterator over the elements contained in this collection |
public int size maintain return collection size | returns the size of the collection |
public boolean equals final object obj if obj this return true if obj null obj get class get class weak object soft weak object obj object a this get object b soft get if a null b null return false if a b return true return a equals b return false | check the equality of an object with this |
public void set maximum size final int size if size 0 size unlimited maximum size throw new illegal argument exception illegal size size maximum size size | set the maximum size of the queue |
public boolean add final object obj maintain soft object soft soft object create obj queue return collection add soft | add an object to the collection |
public int shift right int bits value bits return value | shift the current value to the i right i |
public boolean is full if maximum size unlimited maximum size size maximum size return true return false | check if the queue is full |
private void maintain soft object obj int count 0 while obj soft object queue poll null count collection remove obj if count 0 some temporary debugging fluff system err println vm reclaimed count objects | maintains the collection by removing garbage collected objects |
protected void capacity changed int old capacity | callback that signals that the capacity of the cache is changed |
public int shift right zero int bits value bits return value | shift the current value to the i right i with a zero extension |
public boolean add object obj throws full collection exception if is full throw new full collection exception return add last obj | append and object to the underling list |
public object remove throws empty collection exception if is empty throw new empty collection exception return remove first | remove and return the first object in the queue |
protected void add 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 if list is null then add a new list if list null list collections synchronized list new array list bound listeners put name list if listener is not in the list already then add it if list contains listener list add listener notify listener that is is bound listener property bound this | add a bound property listener |
public void clear while is empty remove | removes all of the elements from this queue |
public int shift left int bits value bits return value | shift the current value to the i left i |
public void test double2 float try message message sender session create message message set double property prop 127 0 message get float 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 int compare to int other return value other 1 value other 0 1 | compares this object with the specified int for order |
public void set value object obj if obj instanceof number value number obj float value else if obj instanceof string try value float parse float string value of obj catch exception e throw new not coercible exception can not convert to float obj else throw new not coercible exception can not convert to float obj | set the value of this mutable float |
public void set as text final string text string tokenizer stok new string tokenizer text array list list new array list while stok has more tokens list add stok next token string the value new string list size list to array the value set value the value | build a string |
public int compare to object obj return compare to mu integer obj | compares this object with the specified object for order |
public object get value try return strings to url get as text catch malformed urlexception e throw new nested runtime exception e | returns a url for the input object converted to a string |
public void set as text final string text object new value integer value of text set value new value | map the argument text into and integer using integer |
public object get value try byte array input stream is new byte array input stream get as text get bytes properties p new properties p load is return p catch ioexception e throw new nested runtime exception e | returns a properties object initialized with the input object |
public void set as text final string text object new value boolean value of text set value new value | map the argument text into boolean |
public object get value try class loader loader thread current thread get context class loader string classname get as text class type loader load class classname return type catch exception e throw new nested runtime exception e | returns a class for the input object converted to a string |
public object get value return new big decimal get as text | returns a big decimal for the input object converted to a string |
public object get value try date format df date format get date instance return df parse get as text catch parse exception e throw new nested runtime exception e | returns a date for the input object converted to a string |
public object get value try string text get as text if text null return null if text starts with seems like localhost sometimes will look like 127 0 0 1 and the get by names barfs on the slash jgh text text substring 1 return inet address get by name strings replace properties text catch unknown host exception e throw new nested runtime exception e | returns a inet address for the input object converted to a string |
public void set as text final string text set value text | sets the property value by parsing a given string |
public object get value try return new file get as text get canonical file catch ioexception e throw new nested runtime exception e | returns a url for the input object converted to a string |
public void add property listeners property listener listeners if listeners null throw new null argument exception listeners for int i 0 i listeners length i add property listener listeners i | add an array of property listeners |
public string to string return long to string time character max radix long to string id character max radix | return a string representation of this uid |
public void set editor search path final string path property editor manager set editor search path path | sets the package names that will be searched for property editors |
public string to string return vmid to string uid to string | return a string representation of this guid |
public int hash code return int time id 32 | return the hash code of this uid |
public string to string string buffer buff new string buffer for int i 0 i address length i int n int address i 0x ff buff append integer to string n character max radix buff append append pid to string character max radix buff append append uid return buff to string | return a string representation of this vmid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.