overrides the fetch offsets that the consumer will use on the next poll if this api is invoked for the same message queue more than once , the latest offset will be used on the next poll ( ) note that you may lose data if this api is arbitrarily used in the middle of consumption

void seek ( message queue message queue , long offset ) throws m q client exception ;


increases indentation for description of string of child { @ link operation } the input can already contain indentation this will increase all the indentations by one level

static string indent ( string item ) { return " \ n " + operation indent + item replace ( " \ n " + operation indent , " \ n " + operation indent + operation indent ) ; }


returns a synchronized ( thread - safe ) table backed by the specified table in order to guarantee serial access , it is critical that < b > all < b > access to the backing table is accomplished through the returned table it is imperative that the user manually synchronize on the returned table when accessing any of its collection views : { @ code table < r , c , v > table = tables synchronized table ( hash based table < r , c , v > create ( ) ) ; map < c , v > row = table row ( row key ) ; needn ' t be in synchronized block synchronized ( table ) { synchronizing on table , not row ! iterator < entry < c , v > > i = row entry set ( ) iterator ( ) ; must be in synchronized block while ( i has next ( ) ) { foo ( i next ( ) ) ; } } } failure to follow this advice may result in non - deterministic behavior the returned table will be serializable if the specified table is serializable

public static < r , c , v > table < r , c , v > synchronized table ( table < r , c , v > table ) { return synchronized table ( table , null ) ; }


convert the given object to string with each line indented by 4 spaces ( except the first line )

private string to indented string ( object o ) { if ( o = = null ) { return " null " ; } return o to string ( ) replace ( " \ n " , " \ n " ) ; }


public void enum integer test ( ) { / / todo : test enum integer }


creates a { @ link binary string data } instance from the given bytes with offset and number of bytes

public static < t > binary raw value data < t > from bytes ( byte [ ] bytes , int offset , int num bytes ) { return new binary raw value data < > ( new memory segment [ ] { memory segment factory wrap ( bytes ) } , offset , num bytes ) ; }


public i java project get java project ( ) { for ( i java project java project : ghidra project utils get java projects ( ) ) { i project project = java project get project ( ) ; if ( project get name ( ) equals ( project combo get text ( ) ) ) { return java project ; } } return null ; }


releases an instance of the given resource the instance must have been obtained from { @ link # get ( resource ) } otherwise will throw illegal argument exception caller must not release a reference more than once it ' s advisory that you clear the reference to the instance with the null returned by this method

public static < t > t release ( final resource < t > resource , final t instance ) { return holder release internal ( resource , instance ) ; }


register a listener that will be called when this model visibility has changed the listener will contribute to this model ' s hash code state per the { @ link com airbnb epoxy epoxy attribute option # do not hash } rules

public on view recycled view model on visibility changed ( on model visibility changed listener < on view recycled view model , on view recycled view > listener ) { on mutation ( ) ; this on model visibility changed listener epoxy generated model = listener ; return this ; }


sets the executable path ; the path is interpreted relative to the execution root calling this method overrides any previous values set via calls to { @ link # set executable } , { @ link # set java executable } , or { @ link # set shell command }

public builder set executable ( path fragment executable ) { this executable args = custom command line builder ( ) add path ( executable ) ; this is shell command = false ; return this ; }


removes a listener from the list of provider activation event subscribers

public void remove function comparison provider listener ( component provider activation listener listener ) ;


sets the busy state of all glass panes created in the vm

public static void set all glass panes busy ( boolean is busy ) { for ( g glass pane glass pane : system glass panes ) { glass pane set busy ( is busy ) ; } }


returns the order used by this builder this is useful for testing for incompatibilities ( via { @ link order # is compatible } ) without catching an unchecked exception from { @ link # add transitive }

public order get order ( ) { return order ; }


removes all values associated with a given key the returned collection is immutable because a { @ code sorted set multimap } has unique sorted values for a given key , this method returns a { @ link sorted set } , instead of the { @ link collection } specified in the { @ link multimap } interface

public sorted set < v > remove all ( @ nullable object key ) { return ( sorted set < v > ) super remove all ( key ) ; }


we only rebuild the journal when it will halve the size of the journal and eliminate at least 2000 ops

private boolean journal rebuild required ( ) { final int redundant op compact threshold = 2000 ; return redundant op count > = redundant op compact threshold / / & & redundant op count > = lru entries size ( ) ; }


set the path matcher to use for string pattern matching by default this is { @ link ant path matcher } note : this property is mutually exclusive with and ignored when { @ link # set pattern parser ( path pattern parser ) } is set

public path match configurer set path matcher ( path matcher path matcher ) { this path matcher = path matcher ; return this ; }


makes the request to return the current snapshot

public get snapshots request builder set current snapshot ( ) { request snapshots ( new string [ ] { get snapshots request current snapshot } ) ; return this ; }


regression test for bug 3071861 checks that the { @ code - - define } command line option is also applied to the host configuration

public void test host define ( ) throws exception { mock genrule support setup ( mock tools config ) ; write ( " x / build " , " vardef ( ' cmd ' , ' false ' ) ; " , " genrule ( name = ' foo ' , outs = [ ' foo out ' ] , tools = [ ' : bar ' ] , cmd = ' touch $ @ & & ' + varref ( ' cmd ' ) ) " , " genrule ( name = ' bar ' , outs = [ ' bar out ' ] , cmd = ' touch $ @ & & ' + varref ( ' cmd ' ) ) " ) ; add options ( " - - define = cmd = true " ) ; build target ( " / / x : foo " ) ; }


in { @ link compressor stream # close ( ) } , if { @ link compressor stream # finish ( ) } throws an i o e xception , output stream object was not getting closed

public void test close ( ) { test compressor stream test compressor stream = new test compressor stream ( ) ; try { test compressor stream close ( ) ; } catch ( i o exception e ) { system out println ( " expected i o exception " ) ; } assert assert true ( " closed shoud be true " , ( ( compressor stream ) test compressor stream ) closed ) ; / / cleanup after test case file delete ( ) ; }


return the hibernate configuration object used to build the session factory allows for access to configuration metadata stored there ( rarely needed )

public final configuration get configuration ( ) { if ( this configuration = = null ) { throw new illegal state exception ( " configuration not initialized yet " ) ; } return this configuration ; }


public big decimal get number item ( ) { return number item ; }


returns a key - group range with offsets which is the intersection of the internal key - group range with the given key - group range

public key group range offsets get intersection ( key group range key group range ) { preconditions check not null ( key group range ) ; key group range intersection = this key group range get intersection ( key group range ) ; long [ ] sub offsets = new long [ intersection get number of key groups ( ) ] ; if ( sub offsets length > 0 ) { system arraycopy ( offsets , compute key group index ( intersection get start key group ( ) ) , sub offsets , 0 , sub offsets length ) ; } return new key group range offsets ( intersection , sub offsets ) ; }


if the identity link involves a user , then this will be a non - null id of a user that user id can be used to query for user information through the { @ link user query } api


returns true if field options is set ( has been assigned a value ) and false otherwise

public boolean is set options ( ) { return this options ! = null ; }


map method name to the new name subclasses can override

public string map method name ( string owner , string name , string desc ) { return name ; }


return the type of targets returned by this { @ link target source } can return { @ code null } , although certain usages of a { @ code target source } might just work with a predetermined target class


read a utf8 string from the current position till the end of a byte buffer the position of the byte buffer is not affected by this method

public static string utf 8 ( byte buffer buffer ) { return utf 8 ( buffer , buffer remaining ( ) ) ; }


this method is called when files have been successfully dropped

public abstract void files dropped ( java io file [ ] files ) ;


set the suffix that gets appended to view names when building a url

public url based view resolver registration suffix ( string suffix ) { this view resolver set suffix ( suffix ) ; return this ; }


convert oas operation object to codegen operation object

public codegen operation from operation ( string path , string http method , operation operation , list < server > servers ) { logger debug ( " from operation = > operation : " + operation ) ; if ( operation = = null ) throw new runtime exception ( " operation cannot be null in from operation " ) ; map < string , schema > schemas = model utils get schemas ( this open a p i ) ; codegen operation op = codegen model factory new instance ( codegen model type operation ) ; set < string > imports = new hash set < string > ( ) ; if ( operation get extensions ( ) ! = null & & ! operation get extensions ( ) is empty ( ) ) { op vendor extensions put all ( operation get extensions ( ) ) ; object is callback request = op vendor extensions remove ( " x - callback - request " ) ; op is callback request = boolean true equals ( is callback request ) ; } / / servers setting if ( operation get servers ( ) ! = null & & ! operation get servers ( ) is empty ( ) ) { / / use operation - level servers first if defined op servers = from servers ( operation get servers ( ) ) ; } else if ( servers ! = null & & ! servers is empty ( ) ) { / / use path - level servers op servers = from servers ( servers ) ; } / / store the original operation id for plug - in op operation id original = operation get operation id ( ) ; string operation id = get or generate operation id ( operation , path , http method ) ; / / remove prefix in operation id if ( remove operation id prefix ) { int offset = operation id index of ( ' ' ) ; if ( offset > - 1 ) { operation id = operation id substring ( offset + 1 ) ; } } operation id = remove non name element to camel case ( operation id ) ; if ( is strict spec behavior ( ) & & ! path starts with ( " / " ) ) { / / modifies an operation path to strictly conform to open a p i spec op path = " / " + path ; } else { op path = path ; } op operation id = to operation id ( operation id ) ; op summary = escape text ( operation get summary ( ) ) ; op unescaped notes = operation get description ( ) ; op notes = escape text ( operation get description ( ) ) ; op has consumes = false ; op has produces = false ; if ( operation get deprecated ( ) ! = null ) { op is deprecated = operation get deprecated ( ) ; } add consumes info ( operation , op ) ; if ( operation get responses ( ) ! = null & & ! operation get responses ( ) is empty ( ) ) { api response method response = find method response ( operation get responses ( ) ) ; for ( string key : operation get responses ( ) key set ( ) ) { api response response = operation get responses ( ) get ( key ) ; add produces info ( response , op ) ; codegen response r = from response ( key , response ) ; if ( r base type ! = null & & ! default includes contains ( r base type ) & & ! language specific primitives contains ( r base type ) ) { imports add ( r base type ) ; } if ( " set " equals ( r container type ) & & type mapping contains key ( r container type ) ) { op unique items = true ; imports add ( type mapping get ( r container type ) ) ; } op responses add ( r ) ; if ( boolean true equals ( r is binary ) & & boolean true equals ( r is 2xx ) & & boolean false equals ( op is response binary ) ) { op is response binary = boolean true ; } if ( boolean true equals ( r is file ) & & boolean true equals ( r is 2xx ) & & boolean false equals ( op is response file ) ) { op is response file = boolean true ; } } op responses sort ( ( a , b ) - > { int a default = " 0 " equals ( a code ) ? 1 : 0 ; int b default = " 0 " equals ( b code ) ? 1 : 0 ; return a default - b default ; } ) ; if ( method response ! = null ) { handle method response ( operation , schemas , op , method response , import mapping ) ; } } if ( operation get callbacks ( ) ! = null & & ! operation get callbacks ( ) is empty ( ) ) { operation get callbacks ( ) for each ( ( name , callback ) - > { codegen callback c = from callback ( name , callback , servers ) ; op callbacks add ( c ) ; } ) ; } list < parameter > parameters = operation get parameters ( ) ; list < codegen parameter > all params = new array list < codegen parameter > ( ) ; list < codegen parameter > body params = new array list < codegen parameter > ( ) ; list < codegen parameter > path params = new array list < codegen parameter > ( ) ; list < codegen parameter > query params = new array list < codegen parameter > ( ) ; list < codegen parameter > header params = new array list < codegen parameter > ( ) ; list < codegen parameter > cookie params = new array list < codegen parameter > ( ) ; list < codegen parameter > form params = new array list < codegen parameter > ( ) ; list < codegen parameter > required params = new array list < codegen parameter > ( ) ; list < codegen parameter > optional params = new array list < codegen parameter > ( ) ; codegen parameter body param = null ; request body request body = operation get request body ( ) ; if ( request body ! = null ) { string content type = get content type ( request body ) ; if ( content type ! = null ) { content type = content type to lower case ( locale root ) ; } if ( content type ! = null & & ( content type starts with ( " application / x - www - form - urlencoded " ) | | content type starts with ( " multipart " ) ) ) { / / process form parameters form params = from request body to form parameters ( request body , imports ) ; op is multipart = content type starts with ( " multipart " ) ; for ( codegen parameter cp : form params ) { set parameter content type ( cp , request body get content ( ) get ( content type ) ) ; post process parameter ( cp ) ; } / / add form parameters to the beginning of all parameter list if ( prepend form or body parameters ) { for ( codegen parameter cp : form params ) { all params add ( cp copy ( ) ) ; } } } else { / / process body parameter request body = model utils get referenced request body ( this open a p i , request body ) ; string body parameter name = " " ; if ( op vendor extensions ! = null & & op vendor extensions contains key ( " x - codegen - request - body - name " ) ) { body parameter name = ( string ) op vendor extensions get ( " x - codegen - request - body - name " ) ; } body param = from request body ( request body , imports , body parameter name ) ; body param description = escape text ( request body get description ( ) ) ; post process parameter ( body param ) ; body params add ( body param ) ; if ( prepend form or body parameters ) { all params add ( body param ) ; } / / add example if ( schemas ! = null ) { op request body examples = new example generator ( schemas , this open a p i ) generate ( null , new array list < string > ( get consumes info ( this open a p i , operation ) ) , body param base type ) ; } } } if ( parameters ! = null ) { for ( parameter param : parameters ) { param = model utils get referenced parameter ( this open a p i , param ) ; codegen parameter p = from parameter ( param , imports ) ; / / ensure unique params if ( ensure unique params ) { if ( ! is parameter name unique ( p , all params ) ) { p param name = generate next name ( p param name ) ; } } all params add ( p ) ; if ( param instanceof query parameter | | " query " equals ignore case ( param get in ( ) ) ) { query params add ( p copy ( ) ) ; } else if ( param instanceof path parameter | | " path " equals ignore case ( param get in ( ) ) ) { path params add ( p copy ( ) ) ; } else if ( param instanceof header parameter | | " header " equals ignore case ( param get in ( ) ) ) { header params add ( p copy ( ) ) ; } else if ( param instanceof cookie parameter | | " cookie " equals ignore case ( param get in ( ) ) ) { cookie params add ( p copy ( ) ) ; } else { logger warn ( " unknown parameter type " + p base type + " for " + p base name ) ; } } } / / add form / body parameter ( if any ) to the end of all parameter list if ( ! prepend form or body parameters ) { for ( codegen parameter cp : form params ) { if ( ensure unique params ) { if ( ! is parameter name unique ( cp , all params ) ) { cp param name = generate next name ( cp param name ) ; } } all params add ( cp copy ( ) ) ; } for ( codegen parameter cp : body params ) { if ( ensure unique params ) { if ( ! is parameter name unique ( cp , all params ) ) { cp param name = generate next name ( cp param name ) ; } } all params add ( cp copy ( ) ) ; } } / / create optional , required parameters for ( codegen parameter cp : all params ) { if ( cp required ) { / / required parameters required params add ( cp copy ( ) ) ; } else { / / optional parameters optional params add ( cp copy ( ) ) ; op has optional params = true ; } } / / add imports to operation import tag for ( string i : imports ) { if ( need to import ( i ) ) { op imports add ( i ) ; } } op body param = body param ; op http method = http method to upper case ( locale root ) ; / / move " required " parameters in front of " optional " parameters if ( sort params by required flag ) { collections sort ( all params , new comparator < codegen parameter > ( ) { @ override public int compare ( codegen parameter one , codegen parameter another ) { if ( one required = = another required ) return 0 ; else if ( one required ) return - 1 ; else return 1 ; } } ) ; } op all params = all params ; op body params = body params ; op path params = path params ; op query params = query params ; op header params = header params ; op cookie params = cookie params ; op form params = form params ; op required params = required params ; op optional params = optional params ; op external docs = operation get external docs ( ) ; / / legacy support op nickname = op operation id ; if ( op all params size ( ) > 0 ) { op has params = true ; } op has required params = op required params size ( ) > 0 ; / / set restful flag op is restful show = op is restful show ( ) ; op is restful index = op is restful index ( ) ; op is restful create = op is restful create ( ) ; op is restful update = op is restful update ( ) ; op is restful destroy = op is restful destroy ( ) ; op is restful = op is restful ( ) ; return op ; }


protected void check address set options panel ( boolean exclude accepted , boolean limit address sets ) { / / address set options panel wizard panel current wizard panel = wizard manager get current wizard panel ( ) ; assert not null ( current wizard panel ) ; assert true ( current wizard panel instanceof address set options panel ) ; address set options panel address set options panel = ( address set options panel ) current wizard panel ; j check box exclude checkbox = ( j check box ) test utils get instance field ( " exclude checkbox " , address set options panel ) ; assert not null ( exclude checkbox ) ; j check box show address set panels checkbox = ( j check box ) test utils get instance field ( " show address set panels checkbox " , address set options panel ) ; assert not null ( show address set panels checkbox ) ; assert equals ( " exclude accepted matches checkbox " , exclude accepted , exclude checkbox is selected ( ) ) ; assert equals ( " limit address sets checkbox " , limit address sets , show address set panels checkbox is selected ( ) ) ; }


public list < integer > get name array ( ) { return name array ; }


performs a cas operation on the { @ link # value } field

abstract boolean cas value ( abstract future < ? > future , object expect , object update ) ;


wraps the given animation backend with an activity check when no frame has been drawn for more than 2 seconds , an inactivity toast message will be displayed

public static animation backend wrap animation backend with inactivity check ( final context context , final animation backend animation backend ) { animation backend delegate with inactivity check inactivity listener inactivity listener = new animation backend delegate with inactivity check inactivity listener ( ) { @ override public void on inactive ( ) { / / forward the inactive callback to the backend if needed if ( animation backend instanceof animation backend delegate with inactivity check inactivity listener ) { ( ( animation backend delegate with inactivity check inactivity listener ) animation backend ) on inactive ( ) ; } toast make text ( context , " animation backend inactive " , toast length short ) show ( ) ; } } ; return create for backend ( animation backend , inactivity listener , realtime since boot clock get ( ) , ui thread immediate executor service get instance ( ) ) ; }


fetches the most active namenode memberships for all known nameservices the fetched membership may not or may not be active excludes expired memberships

private list < membership state > get active namenode registrations ( ) throws i o exception { list < membership state > result list = new array list < > ( ) ; if ( membership store = = null ) { return result list ; } get namespace info request request = get namespace info request new instance ( ) ; get namespace info response response = membership store get namespace info ( request ) ; for ( federation namespace info ns info : response get namespace info ( ) ) { / / fetch the most recent namenode registration string ns id = ns info get nameservice id ( ) ; list < ? extends federation namenode context > nns = namenode resolver get namenodes for nameservice id ( ns id ) ; if ( nns ! = null ) { federation namenode context nn = nns get ( 0 ) ; if ( nn instanceof membership state ) { result list add ( ( membership state ) nn ) ; } } } return result list ; }


public float get border width ( ) { return m border width ; }


creates a { @ link feature } from a { @ link starlark info }

static feature feature from starlark ( starlark info feature struct ) throws eval exception { check right provider type ( feature struct , " feature " ) ; string name = get mandatory field from starlark provider ( feature struct , " name " , string class ) ; boolean enabled = get mandatory field from starlark provider ( feature struct , " enabled " , boolean class ) ; if ( name = = null | | ( name is empty ( ) & & ! enabled ) ) { throw info error ( feature struct , " a feature must either have a nonempty ' name ' field or be enabled " ) ; } if ( ! name matches ( " ^ [ a - z 0 - 9 + \ \ - \ \ ] * $ " ) ) { throw info error ( feature struct , " a feature ' s name must consist solely of lowercase ascii letters , digits , ' ' , " + " ' ' , ' + ' , and ' - ' , got ' % s ' " , name ) ; } immutable list builder < flag set > flag set builder = immutable list builder ( ) ; immutable list < starlark info > flag sets = get starlark provider list from starlark field ( feature struct , " flag sets " ) ; for ( starlark info flag set object : flag sets ) { flag set flag set = flag set from starlark ( flag set object , / * action name = * / null ) ; if ( flag set get actions ( ) is empty ( ) ) { throw info error ( flag set object , " a flag set that belongs to a feature must have nonempty ' actions ' parameter " ) ; } flag set builder add ( flag set ) ; } immutable list builder < env set > env set builder = immutable list builder ( ) ; immutable list < starlark info > env sets = get starlark provider list from starlark field ( feature struct , " env sets " ) ; for ( starlark info env set : env sets ) { env set builder add ( env set from starlark ( env set ) ) ; } immutable list builder < immutable set < string > > requires builder = immutable list builder ( ) ; immutable list < starlark info > requires = get starlark provider list from starlark field ( feature struct , " requires " ) ; for ( starlark info feature set struct : requires ) { if ( ! " feature set " equals ( feature set struct get value ( " type name " ) ) ) { / / get value ( ) may be null throw info error ( feature struct , " expected object of type ' feature set ' " ) ; } immutable set < string > feature set = get string set from starlark provider field ( feature set struct , " features " ) ; requires builder add ( feature set ) ; } immutable list < string > implies = get string list from starlark provider field ( feature struct , " implies " ) ; immutable list < string > provides = get string list from starlark provider field ( feature struct , " provides " ) ; return new feature ( name , flag set builder build ( ) , env set builder build ( ) , enabled , requires builder build ( ) , implies , provides ) ; }


get parameters from the specified query string

public static multi value map < string , string > get parameters ( string query string ) { return get parameters ( delimited list to string array ( query string , and ) ) ; }


convert the given object to string with each line indented by 4 spaces ( except the first line )

private string to indented string ( object o ) { if ( o = = null ) { return " null " ; } return o to string ( ) replace ( " \ n " , " \ n " ) ; }


create property matches for the given field property

public static property matches for field ( string property name , class < ? > bean class ) { return for field ( property name , bean class , default max distance ) ; }


public object get anytype 2 ( ) { return anytype 2 ; }


returns the genfiles directory for this build configuration

public artifact root get genfiles directory ( repository name repository name ) { return output directories get genfiles directory ( repository name ) ; }


public void array number test ( ) { / / todo : test array number }


public static string internal delegate ( string methods interceptor ) { return methods interceptor + " internal " ; }


returns an iterator over all http2 headers the iteration order is as follows : 1 all pseudo headers ( order not specified ) 2 all non - pseudo headers ( in insertion order )

iterator < entry < char sequence , char sequence > > iterator ( ) ;


invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread , in which case this method is invoked when new references are created


returns the environment variables that should be set for c + + compile actions

immutable map < string , string > get environment ( ) throws command line expansion exception { try { return feature configuration get environment variables ( action name , variables ) ; } catch ( expansion exception e ) { throw new command line expansion exception ( e get message ( ) ) ; } }


variant of { @ link # set allowed origin patterns } for adding one origin at a time

public void add allowed origin pattern ( string origin pattern ) { if ( this allowed origin patterns = = null ) { this allowed origin patterns = new array list < > ( 4 ) ; } this allowed origin patterns add ( new origin pattern ( origin pattern ) ) ; if ( this allowed origins = = default permit all ) { this allowed origins = null ; } }


disposes the state of all local snapshots managed by this object

public completable future < void > dispose ( ) { collection < map entry < long , task state snapshot > > states copy ; synchronized ( lock ) { disposed = true ; states copy = new array list < > ( stored task state by checkpoint i d entry set ( ) ) ; stored task state by checkpoint i d clear ( ) ; } return completable future run async ( ( ) - > { / / discard all remaining state objects sync discard local state for collection ( states copy ) ; / / delete the local state subdirectory that belong to this subtask local recovery directory provider directory provider = local recovery config get local state directory provider ( ) ; for ( int i = 0 ; i < directory provider allocation base dirs count ( ) ; + + i ) { file subtask base directory = directory provider select subtask base directory ( i ) ; try { delete directory ( subtask base directory ) ; } catch ( i o exception e ) { log warn ( " exception when deleting local recovery subtask base directory { } in subtask ( { } - { } - { } ) " , subtask base directory , job i d , job vertex i d , subtask index , e ) ; } } } , discard executor ) ; }


incrementing abfs counters with a long value

private void increment counter ( abfs statistic statistic , long value ) { if ( abfs counters ! = null ) { abfs counters increment counter ( statistic , value ) ; } }


set the number of expected records for this task

public void expected records ( int expected ) { expected records = expected ; records remaining latch = new count down latch ( expected ) ; }


{ @ inherit doc } implementations may or may not support removal when a call to { @ link # peek ( ) } has occurred since the most recent call to { @ link # next ( ) }


verify that block token serial no is always within the range designated to to the name node

public void test block token ranges ( ) throws i o exception { final int interval = 1024 ; final int num n ns = integer max value / interval ; for ( int nn idx = 0 ; nn idx < 64 ; nn idx + + ) { block token secret manager sm = new block token secret manager ( block key update interval , block token lifetime , nn idx , num n ns , " fake - pool " , null , false ) ; int range start = nn idx * interval ; for ( int i = 0 ; i < interval * 3 ; i + + ) { int serial no = sm get serial no for testing ( ) ; assert true ( " serial no " + serial no + " is not in the designated range : [ " + range start + " , " + ( range start + interval ) + " ) " , serial no > = range start & & serial no < ( range start + interval ) ) ; sm update keys ( ) ; } } }


return whether to build the runfiles trees of py binary targets that appear in the transitive data runfiles of another binary

public boolean build transitive runfiles trees ( ) { return build transitive runfiles trees ; }


redirects any http request of type put on ' from path ' to ' to path ' with the provided redirect ' status ' code

public void put ( string from path , string to path , status status ) { http put ( from path , redirect route ( to path , status ) ) ; }


wait on the process specified in pid file and return its exit code

public integer call ( ) { int ret code = exit code lost get exit code ( ) ; container id container id = container get container id ( ) ; string app id str = container id get application attempt id ( ) get application id ( ) to string ( ) ; string container id str = container id to string ( ) ; dispatcher get event handler ( ) handle ( new container event ( container id , container event type container launched ) ) ; boolean not interrupted = true ; try { file pid file = locate pid file ( app id str , container id str ) ; if ( pid file ! = null ) { string pid path str = pid file get path ( ) ; pid file path = new path ( pid path str ) ; exec activate container ( container id , pid file path ) ; ret code = exec reacquire container ( new container reacquisition context builder ( ) set container ( container ) set user ( container get user ( ) ) set container id ( container id ) build ( ) ) ; } else { log warn ( " unable to locate pid file for container " + container id str ) ; } } catch ( interrupted exception | interrupted i o exception e ) { log warn ( " interrupted while waiting for exit code from " + container id ) ; not interrupted = false ; } catch ( i o exception e ) { log error ( " unable to recover container " + container id str , e ) ; } finally { if ( not interrupted ) { this completed set ( true ) ; exec deactivate container ( container id ) ; try { get context ( ) get n m state store ( ) store container completed ( container id , ret code ) ; } catch ( i o exception e ) { log error ( " unable to set exit code for container " + container id ) ; } } } if ( ret code ! = 0 ) { log warn ( " recovered container exited with a non - zero exit code " + ret code ) ; this dispatcher get event handler ( ) handle ( new container exit event ( container id , container event type container exited with failure , ret code , " container exited with a non - zero exit code " + ret code ) ) ; return ret code ; } log info ( " recovered container " + container id + " succeeded " ) ; dispatcher get event handler ( ) handle ( new container event ( container id , container event type container exited with success ) ) ; return 0 ; }


public void date prop test ( ) { / / todo : test date prop }


the size of the serialized , uncompressed value in bytes if value is null , the returned size is - 1

public int serialized value size ( ) { return this serialized value size ; }


uploads an image ( required ) < b > 200 < b > - successful operation

public response entity < model api response > upload file with required file with http info ( long pet id , file required file , string additional metadata ) throws rest client exception { object post body = null ; / / verify the required parameter ' pet id ' is set if ( pet id = = null ) { throw new http client error exception ( http status bad request , " missing the required parameter ' pet id ' when calling upload file with required file " ) ; } / / verify the required parameter ' required file ' is set if ( required file = = null ) { throw new http client error exception ( http status bad request , " missing the required parameter ' required file ' when calling upload file with required file " ) ; } / / create path and map variables final map < string , object > uri variables = new hash map < string , object > ( ) ; uri variables put ( " pet id " , pet id ) ; string path = api client expand path ( " / fake / { pet id } / upload image with required file " , uri variables ) ; final multi value map < string , string > query params = new linked multi value map < string , string > ( ) ; final http headers header params = new http headers ( ) ; final multi value map < string , string > cookie params = new linked multi value map < string , string > ( ) ; final multi value map < string , object > form params = new linked multi value map < string , object > ( ) ; if ( additional metadata ! = null ) form params add ( " additional metadata " , additional metadata ) ; if ( required file ! = null ) form params add ( " required file " , new file system resource ( required file ) ) ; final string [ ] local var accepts = { " application / json " } ; final list < media type > local var accept = api client select header accept ( local var accepts ) ; final string [ ] content types = { " multipart / form - data " } ; final media type content type = api client select header content type ( content types ) ; string [ ] auth names = new string [ ] { " petstore auth " } ; parameterized type reference < model api response > return type = new parameterized type reference < model api response > ( ) { } ; return api client invoke a p i ( path , http method post , query params , post body , header params , cookie params , form params , local var accept , content type , auth names , return type ) ; }


get the translation of the principal name into an operating system user name

public string get short name ( ) throws i o exception { string [ ] params ; if ( host name = = null ) { / / if it is already simple , just return it if ( realm = = null ) { return service name ; } params = new string [ ] { realm , service name } ; } else { params = new string [ ] { realm , service name , host name } ; } string rule mechanism = this rule mechanism ; if ( rule mechanism = = null & & rules ! = null ) { log warn ( " auth to local rule mechanism not set " + " using default of " + default mechanism ) ; rule mechanism = default mechanism ; } for ( rule r : rules ) { string result = r apply ( params , rule mechanism ) ; if ( result ! = null ) { return result ; } } if ( rule mechanism equals ignore case ( mechanism hadoop ) ) { throw new no matching rule ( " no rules applied to " + to string ( ) ) ; } return to string ( ) ; }


filter on methods returning the given type with generics

public builder < t > returning ( class < ? > return type , resolvable type generic , resolvable type generics ) { return returning ( to resolvable type ( return type , generic , generics ) ) ; }


public static g i s viewer activator get default ( ) { return plugin ; }


specifies the indices options like what type of requested indices to ignore for example indices that don ' t exist

public create snapshot request indices options ( indices options indices options ) { this indices options = indices options ; return this ; }


public static void main ( final string [ ] args ) { / / the captain can only operate rowing boats but with adapter he is able to / / use fishing boats as well var captain = new captain ( new fishing boat adapter ( ) ) ; captain row ( ) ; }


register a listener that will be called when this model is unbound from a view the listener will contribute to this model ' s hash code state per the { @ link com airbnb epoxy epoxy attribute option # do not hash } rules you may clear the listener by setting a null value , or by calling { @ link # reset ( ) }

public model with data binding binding model on unbind ( on model unbound listener < model with data binding binding model , data binding epoxy model data binding holder > listener ) { on mutation ( ) ; this on model unbound listener epoxy generated model = listener ; return this ; }


public offset date time get ship date ( ) { return ship date ; }


long argument less than the given value see examples in javadoc for { @ link additional matchers } class

public static long lt ( long value ) { report matcher ( new less than < long > ( value ) ) ; return 0 ; }


gets the matrix that transforms image - relative coordinates to view - absolute coordinates the zoomable transformation is taken into account

public void get image relative to view absolute transform ( matrix out matrix ) { out matrix set rect to rect ( identity rect , m transformed image bounds , matrix scale to fit fill ) ; }


the comparison will be performed only if the type spec is a declared type spec

public boolean is same declared type ( type name type ) { return false ; }


add the { @ code value } for the specified { @ code key } with the specified { @ code unique value } used for de - duplication any duplicate { @ code value } after applying { @ code unique value } is ignored

public void add response header ( final string key , final string value , final function < string , string > unique value ) { thread local set ( thread local get ( ) put response ( key , value , unique value , max warning header count , max warning header size ) ) ; }


returns whether the playback controls are hidden by touch events

public boolean get controller hide on touch ( ) { return controller hide on touch ; }


public pet status ( status enum status ) { this status = status ; return this ; }


called whenever the composite data type editor lockunlock state changes whether the editor is in locked or unlocked mode

public void lock state changed ( int type ) ;


get the process id from specified file path parses each line to find a valid number and returns the first one found

public static string get process id ( path path ) throws i o exception { if ( path = = null ) { throw new i o exception ( " trying to access process id from a null path " ) ; } log debug ( " accessing pid from pid file { } " , path ) ; string process id = null ; buffered reader buf reader = null ; try { file file = new file ( path to string ( ) ) ; if ( file exists ( ) ) { file input stream fis = new file input stream ( file ) ; buf reader = new buffered reader ( new input stream reader ( fis , " utf - 8 " ) ) ; while ( true ) { string line = buf reader read line ( ) ; if ( line = = null ) { break ; } string temp = line trim ( ) ; if ( ! temp is empty ( ) ) { if ( shell windows ) { / / on windows , pid is expected to be a container id , so find first / / line that parses successfully as a container id try { container id from string ( temp ) ; process id = temp ; break ; } catch ( exception e ) { / / do nothing } } else { / / otherwise , find first line containing a numeric pid try { long pid = long parse long ( temp ) ; if ( pid > 0 ) { process id = temp ; break ; } } catch ( exception e ) { / / do nothing } } } } } } finally { if ( buf reader ! = null ) { buf reader close ( ) ; } } log debug ( " got pid { } from path { } " , ( process id ! = null ? process id : " null " ) , path ) ; return process id ; }


sets the container name to tag all the metrics with

public void set container name ( string container name ) { registry tag ( " container name " , " name of the azure storage container that these metrics are going against " , container name ) ; }


handles updates on resolved addresses and attributes if { @ link resolution result # get addresses ( ) } is empty , { @ link # on error ( status ) } will be called

public abstract void on result ( resolution result resolution result ) ;


required : a list of server specifications < code > repeated istio networking v 1alpha 3 server servers = 1 ; < code >

public java util list < com alibaba nacos istio model server > get servers list ( ) { return servers ; }


return the metadata for the next incremental response

public fetch metadata next incremental ( ) { return new fetch metadata ( session id , next epoch ( epoch ) ) ; }


public string get key name ( ) { return key name ; }


creates a new listenable future - style stub that supports unary calls on the service

public static channelz future stub new future stub ( io grpc channel channel ) { io grpc stub abstract stub stub factory < channelz future stub > factory = new io grpc stub abstract stub stub factory < channelz future stub > ( ) { @ java lang override public channelz future stub new stub ( io grpc channel channel , io grpc call options call options ) { return new channelz future stub ( channel , call options ) ; } } ; return channelz future stub new stub ( factory , channel ) ; }


change the underlying limitations and check interval note the change will be taken as best effort , meaning that all already scheduled traffics will not be changed , but only applied to new traffics so the expected usage of this method is to be used not too often , accordingly to the traffic shaping configuration

public void configure ( long new write limit , long new read limit , long new check interval ) { configure ( new write limit , new read limit ) ; configure ( new check interval ) ; }


print the productions of this grammar to the given stream

public void print ( print stream out ) { for ( p prod : prod list ) { out println ( prod ) ; } }


a wrapper around { @ code private static final dalvik system dex path list # make dex elements }

private static object [ ] make dex elements ( object dex path list , array list < file > files , file optimized directory , array list < i o exception > suppressed exceptions ) throws illegal access exception , invocation target exception , no such method exception { method make dex elements = null ; try { make dex elements = share reflect util find method ( dex path list , " make dex elements " , array list class , file class , array list class ) ; } catch ( no such method exception e ) { share tinker log e ( tag , " no such method exception : make dex elements ( array list , file , array list ) failure " ) ; try { make dex elements = share reflect util find method ( dex path list , " make dex elements " , list class , file class , list class ) ; } catch ( no such method exception e 1 ) { share tinker log e ( tag , " no such method exception : make dex elements ( list , file , list ) failure " ) ; throw e 1 ; } } return ( object [ ] ) make dex elements invoke ( dex path list , files , optimized directory , suppressed exceptions ) ; }


this method is deprecated and will be removed in the future releases handle async db operation in your own logic instead

public static count executor count async ( final string table name ) { final count executor executor = new count executor ( ) ; runnable runnable = new runnable ( ) { @ override public void run ( ) { synchronized ( lite pal support class ) { final int count = count ( table name ) ; if ( executor get listener ( ) ! = null ) { operator get handler ( ) post ( new runnable ( ) { @ override public void run ( ) { executor get listener ( ) on finish ( count ) ; } } ) ; } } } } ; executor submit ( runnable ) ; return executor ; }


@ t c description : nacos @ test step : todo test steps @ expect result : todo expect results

public void nacos remove listener 4 ( ) { iconfig remove listener ( data id , group , null ) ; }


this returns a set of aggregation builders which represent the configured set of metrics used to iterate over historical data

static list < aggregation builder > create aggregation builders ( final list < metric config > metrics configs ) { final list < aggregation builder > builders = new array list < > ( ) ; if ( metrics configs ! = null ) { for ( metric config metric config : metrics configs ) { final list < string > metrics = metric config get metrics ( ) ; if ( metrics is empty ( ) = = false ) { final string field = metric config get field ( ) ; for ( string metric : metrics ) { values source aggregation builder leaf only < ? extends values source , ? extends aggregation builder > new builder ; if ( metric equals ( metric config min get preferred name ( ) ) ) { new builder = new min aggregation builder ( format field name ( field , min aggregation builder name , rollup field value ) ) ; } else if ( metric equals ( metric config max get preferred name ( ) ) ) { new builder = new max aggregation builder ( format field name ( field , max aggregation builder name , rollup field value ) ) ; } else if ( metric equals ( metric config avg get preferred name ( ) ) ) { / / avgs are sum + count new builder = new sum aggregation builder ( format field name ( field , avg aggregation builder name , rollup field value ) ) ; values source aggregation builder leaf only < values source , value count aggregation builder > count builder = new value count aggregation builder ( format field name ( field , avg aggregation builder name , rollup field count field ) ) ; count builder field ( field ) ; builders add ( count builder ) ; } else if ( metric equals ( metric config sum get preferred name ( ) ) ) { new builder = new sum aggregation builder ( format field name ( field , sum aggregation builder name , rollup field value ) ) ; } else if ( metric equals ( metric config value count get preferred name ( ) ) ) { / / todo allow non - numeric value counts / / i removed the hard coding of numeric as part of cleaning up target value type , but i don ' t think that resolves / / the above to do note - - tozzi 2019 - 12 - 06 new builder = new value count aggregation builder ( format field name ( field , value count aggregation builder name , rollup field value ) ) ; } else { throw new illegal argument exception ( " unsupported metric type [ " + metric + " ] " ) ; } new builder field ( field ) ; builders add ( new builder ) ; } } } } return collections unmodifiable list ( builders ) ; }


public void color test ( ) { / / todo : test color }


returns true if the array has one or more items

public boolean not empty ( ) { return size > 0 ; }


checks for output file in the user specified options or prompts the user for the output file

static path get output file ( terminal terminal , string output path , string default filename ) throws i o exception { path file ; if ( output path ! = null ) { file = resolve path ( output path ) ; } else { file = resolve path ( default filename ) ; string input = terminal read text ( " please enter the desired output file [ " + file + " ] : " ) ; if ( input is empty ( ) = = false ) { file = resolve path ( input ) ; } } return file to absolute path ( ) ; }


inserts the specified element at the front of this deque if it is possible to do so immediately without violating capacity restrictions , returning < tt > true < tt > upon success and < tt > false < tt > if no space is currently available when using a capacity - restricted deque , this method is generally preferable to the { @ link # add first add first } method , which can fail to insert an element only by throwing an exception

public boolean offer ( t e ) { return super offer first ( e ) ; }


create user this can only be done by the logged in user

public void create user test ( ) { user user = null ; / / api create user ( user ) ; / / todo : test validations }


fetches the leader index metadata and history u u i ds for leader index shards from the remote cluster before fetching the index metadata , the remote cluster is checked for license compatibility with ccr if the remote cluster is not licensed for ccr , the { @ code on failure } consumer is is invoked otherwise , the specified consumer is invoked with the leader index metadata fetched from the remote cluster

public void check remote cluster license and fetch leader index metadata and history u u i ds ( final client client , final string cluster alias , final string leader index , final consumer < exception > on failure , final bi consumer < string [ ] , tuple < index metadata , data stream > > consumer ) { final cluster state request request = new cluster state request ( ) ; request clear ( ) ; request metadata ( true ) ; request indices ( leader index ) ; check remote cluster license and fetch cluster state ( client , cluster alias , client get remote cluster client ( cluster alias ) , request , on failure , remote cluster state response - > { cluster state remote cluster state = remote cluster state response get state ( ) ; final index metadata leader index metadata = remote cluster state get metadata ( ) index ( leader index ) ; if ( leader index metadata = = null ) { final index abstraction index abstraction = remote cluster state get metadata ( ) get indices lookup ( ) get ( leader index ) ; final exception failure ; if ( index abstraction = = null ) { failure = new index not found exception ( leader index ) ; } else { / / provided name may be an alias or data stream and in that case throw a specific error : string message = string format ( locale root , " cannot follow [ % s ] , because it is a % s " , leader index , index abstraction get type ( ) ) ; failure = new illegal argument exception ( message ) ; } on failure accept ( failure ) ; return ; } if ( leader index metadata get state ( ) = = index metadata state close ) { on failure accept ( new index closed exception ( leader index metadata get index ( ) ) ) ; return ; } index abstraction index abstraction = remote cluster state get metadata ( ) get indices lookup ( ) get ( leader index ) ; final data stream remote data stream = index abstraction get parent data stream ( ) ! = null ? index abstraction get parent data stream ( ) get data stream ( ) : null ; final client remote client = client get remote cluster client ( cluster alias ) ; has privileges to follow indices ( remote client , new string [ ] { leader index } , e - > { if ( e = = null ) { fetch leader history u u i ds ( remote client , leader index metadata , on failure , history u u i ds - > consumer accept ( history u u i ds , tuple tuple ( leader index metadata , remote data stream ) ) ) ; } else { on failure accept ( e ) ; } } ) ; } , license check - > index metadata non compliant remote license ( leader index , license check ) , e - > index metadata unknown remote license ( leader index , cluster alias , e ) ) ; }


public void retrigger partition request ( intermediate result partition i d partition id ) throws i o exception { synchronized ( request lock ) { if ( ! close future is done ( ) ) { final input channel ch = input channels get ( partition id ) ; check not null ( ch , " unknown input channel with id " + partition id ) ; log debug ( " { } : retriggering partition request { } : { } " , owning task name , ch partition id , consumed subpartition index ) ; if ( ch get class ( ) = = remote input channel class ) { final remote input channel rch = ( remote input channel ) ch ; rch retrigger subpartition request ( consumed subpartition index ) ; } else if ( ch get class ( ) = = local input channel class ) { final local input channel ich = ( local input channel ) ch ; if ( retrigger local request timer = = null ) { retrigger local request timer = new timer ( true ) ; } ich retrigger subpartition request ( retrigger local request timer , consumed subpartition index ) ; } else { throw new illegal state exception ( " unexpected type of channel to retrigger partition : " + ch get class ( ) ) ; } } } }


true if this request is a multipart request


returns the task type of the task attempt i d

public task type get task type ( ) { return task id get task type ( ) ; }


creates parsed android data of conflicts , assets overwriting and combining resources

public static parsed android data of ( immutable set < merge conflict > conflicts , immutable map < data key , data resource > overwriting resources , immutable map < data key , data resource > combining resources , immutable map < data key , data asset > assets ) { return new parsed android data ( conflicts , overwriting resources , combining resources , assets ) ; }


returns all the registered { @ link tool descriptor } s

public static descriptor extension list < tool installation , tool descriptor < ? > > all ( ) { / / use get descriptor list and not get extension list to pick up legacy instances return jenkins get ( ) get descriptor list ( tool installation class ) ; }


test of add all method , of class tree set

public void test add all ( ) { collection < string > list = arrays as list ( new string [ ] { " apa " , " apa 2 " , " apa " } ) ; folded tree set < string > instance = new folded tree set < > ( ) ; assert equals ( true , instance add all ( list ) ) ; assert equals ( false , instance add all ( list ) ) ; / / add same entries again }


returns a { @ link completable future } that has failed with the exception provided as argument

public static < t > completable future < t > get failed future ( throwable throwable ) { completable future < t > failed attempt = new completable future < > ( ) ; failed attempt complete exceptionally ( throwable ) ; return failed attempt ; }


remove { @ code edge } from the set of outgoing edges returns the former successor node


return a temp table named with prefix ` temp ` , follow by a random uuid uuid hyphens ( " - " ) will be replaced by underscores ( " " )

public static synchronized string get temp table name ( ) { return ( " temp " + uuid random u u i d ( ) to string ( ) replace all ( " - " , " " ) ) to lower case ( ) ; }


reduces indentation in < code > indent < code > by one indentation unit

public void unindent ( string builder indent ) { unindent ( indent , 1 ) ; }


configures gson to apply the passed in exclusion strategy during serialization if this method is invoked numerous times with different exclusion strategy objects then the exclusion strategies that were added will be applied as a disjunction rule this means that if one of the added exclusion strategies suggests that a field ( or class ) should be skipped then that field ( or object ) is skipped during its serialization

public gson builder add serialization exclusion strategy ( exclusion strategy strategy ) { excluder = excluder with exclusion strategy ( strategy , true , false ) ; return this ; }


selects , or ' pick ' s the given vertex

public void select vertex ( boolean add to selection ) { / / when the user manually clicks a vertex , we no longer want an edge selected picked state < e > picked edge state = viewer get picked edge state ( ) ; picked edge state clear ( ) ; if ( is vertex selected ( ) ) { return ; } g picked state < v > picked state = viewer get g picked vertex state ( ) ; picked state pick to sync ( vertex , add to selection ) ; }


stop asynchronously a collection of connectors that belong to this worker and await their termination

public void stop and await connectors ( collection < string > ids ) { stop connectors ( ids ) ; await stop connectors ( ids ) ; }


return whether the given bean class represents an infrastructure class that should never be proxied the default implementation considers advices , advisors and aop infrastructure beans as infrastructure classes

protected boolean is infrastructure class ( class < ? > bean class ) { boolean ret val = advice class is assignable from ( bean class ) | | pointcut class is assignable from ( bean class ) | | advisor class is assignable from ( bean class ) | | aop infrastructure bean class is assignable from ( bean class ) ; if ( ret val & & logger is trace enabled ( ) ) { logger trace ( " did not attempt to auto - proxy infrastructure class [ " + bean class get name ( ) + " ] " ) ; } return ret val ; }


combine the values of records in this stream by the grouped key and defined windows records with { @ code null } key or value are ignored combining implies that the type of the aggregate result is the same as the type of the input value the result is written into a local { @ link window store } ( which is basically an ever - updating materialized view ) furthermore , updates to the store are sent downstream into a { @ link k table } changelog stream the default key and value serde from the config will be used for serializing the result if a different serde is required then you should use { @ link # reduce ( reducer , named , materialized ) } the value of the first record per window initialized the aggregation result the specified { @ link reducer } is applied for each additional input record per window and computes a new aggregate using the current aggregate ( first argument ) and the record ' s value ( second argument ) : { @ code at the example of a reducer < long > new reducer < long > ( ) { public long apply ( long agg value , long curr value ) { return agg value + curr value ; } } } thus , { @ code reduce ( ) } can be used to compute aggregate functions like sum , min , or max not all updates might get sent downstream , as an internal cache is used to deduplicate consecutive updates to the same window and key the rate of propagated updates depends on your input data rate , the number of distinct keys , the number of parallel running kafka streams instances , and the { @ link streams config configuration } parameters for { @ link streams config # cache max bytes buffering config cache size } , and { @ link streams config # commit interval ms config commit interval } for failure and recovery the store ( which always will be of type { @ link timestamped window store } ) will be backed by an internal changelog topic that will be created in kafka the changelog topic will be named " $ { application id } - $ { internal store name } - changelog " , where " application id " is user - specified in { @ link streams config } via parameter { @ link streams config # application id config application id config } , " internal store name " is an internal name and " - changelog " is a fixed suffix you can retrieve all generated internal topic names via { @ link topology # describe ( ) }

k table < windowed < k > , v > reduce ( final reducer < v > reducer , final named named ) ;


sets root of test working directory and resets any other paths that must be children of the test working directory typical usage is for subclasses that use hdfs to override the test directory to the form " tmp < test name > " so that on windows , tests won ' t attempt to use paths containing a ' : ' from the drive specifier the ' : ' character is considered invalid by hdfs

protected void set test dir ( file test dir ) { test dir = test dir ; output dir = new file ( test dir , " out " ) ; input file = new file ( test dir , " input txt " ) ; }


returns the version number of the object versions numbers can be used to differentiate evolving classes


make an engines that is available ( appears on the list returned by get available engines ) active after this call , the only loaded engine on the ime daemon will be this one and the input sent using send keys will be converted by the engine note that this is a platform - independent method of activating ime ( the platform - specific way being using keyboard shortcuts )

void activate engine ( string engine ) ;


expect a header with the given name to match the specified values

public web test client response spec value equals ( string name , string value ) { this exchange result assert with diagnostics ( ( ) - > { string message = get message ( name ) ; assertion errors assert equals ( message , value , get cookie ( name ) get value ( ) ) ; } ) ; return this response spec ; }


public field location get location ( ) { return loc ; }


returns the total amount of memory reserved for by the memory manager

public long get managed memory total ( ) { return managed memory total ; }


sets the ports that this { @ link cookie } can be accessed on


sets the currently displayed structure name in the edit area

public void set composite name ( string name ) { string original = get composite name ( ) ; if ( name equals ( original ) ) { return ; } document doc = name text field get document ( ) ; doc remove document listener ( field doc listener ) ; name text field set text ( name ) ; doc add document listener ( field doc listener ) ; }


public server service definition add service ( bindable service bindable service ) { return add service ( bindable service bind service ( ) ) ; }


get a { @ link thread factory } suitable for use in the current environment

public static thread factory get thread factory ( string name format , boolean daemon ) { return new thread factory builder ( ) set daemon ( daemon ) set name format ( name format ) build ( ) ; }


get the statistics context for this store context

public s 3 a statistics context get instrumentation ( ) { return instrumentation ; }


returns all the registered { @ link publisher } descriptors

public static descriptor extension list < publisher , descriptor < publisher > > all ( ) { return jenkins get ( ) get descriptor list ( publisher class ) ; }


gets the fully processed data from this class registers an action to run r class generation , the last step needed in resource processing returns the fully processed data , including validated resources , wrapped in a resource apk

public resource apk generate r class ( android data context data context ) throws interrupted exception { return new r class generator action builder ( ) with dependencies ( resource deps ) set class jar out ( data context create output artifact ( android rule classes android resources class jar ) ) build ( data context , this ) ; }


if set to true , the gradient will repeat

public void set cyclic ( boolean cyclic ) { this cyclic = cyclic ; }


adds a number of occurrences of an element to this { @ code immutable multiset }

public builder < e > add copies ( e element , int occurrences ) { contents add ( check not null ( element ) , occurrences ) ; return this ; }


create a new extractor factory the source index must exist and contain at least 1 compatible field or validations will fail

public static data frame data extractor factory create for source indices ( client client , string task id , data frame analytics config config , extracted fields extracted fields ) { return new data frame data extractor factory ( client , task id , arrays as list ( config get source ( ) get index ( ) ) , config get source ( ) get parsed query ( ) , extracted fields , config get analysis ( ) get required fields ( ) , config get headers ( ) , config get analysis ( ) supports missing values ( ) , create train test splitter factory ( client , config , extracted fields ) ) ; }


add the object to the droppable component the drop target adapter calls this method from its drop ( ) method

public void add ( object obj , drop target drop event e , data flavor f ) ;


connects to the remote { @ code m bean server } using the configured service url and environment properties

private void connect ( ) throws i o exception { assert state ( this service url ! = null , " no j m x service u r l set " ) ; this connector = j m x connector factory connect ( this service url , this environment ) ; this connection = this connector get m bean server connection ( ) ; }


public static void put ( @ non null final string key , final serializable value , @ non null final cache disk utils cache disk utils ) { cache disk utils put ( key , value ) ; }


tests that n h m w e s makes hash maps large enough that adding the expected number of elements won ' t cause a rehash as of jdk 7u 4 0 , hash map has an empty - map optimization the argument to new hash map ( int ) is noted , but the initial table is a zero - length array this test may fail miserably on non - open j d k environments

public void test new hash map with expected size wont grow ( ) throws exception { / / before jdk 7u 4 0 : creates one - bucket table / / after jdk 7u 4 0 : creates empty table assert true ( buckets of ( maps new hash map with expected size ( 0 ) ) < = 1 ) ; for ( int size = 1 ; size < 200 ; size + + ) { assert wont grow ( size , maps new hash map with expected size ( size ) , maps new hash map with expected size ( size ) ) ; } }


public album page change artist ( string artist ) { var artist input text field = ( html text input ) page get element by id ( " album artist " ) ; artist input text field set text ( artist ) ; return this ; }


model tests for additional properties any type

public void test additional properties any type ( ) { / / todo : test additional properties any type }


sets { @ link annotation # timestamp ( ) }

public long timestamp ( ) { return timestamp ; }


sets a variable as high as possible ( highest parent )

protected void set variable ( string variable name , object value , execution entity source execution , boolean fetch all variables ) { if ( fetch all variables = = true ) { / / if it ' s in the cache , it ' s more recent if ( used variables cache contains key ( variable name ) ) { update variable instance ( used variables cache get ( variable name ) , value , source execution ) ; } / / if the variable exists on this scope , replace it if ( has variable local ( variable name ) ) { set variable local ( variable name , value , source execution , true ) ; return ; } / / otherwise , go up the hierarchy ( we ' re trying to put it as high as possible ) variable scope impl parent variable scope = get parent variable scope ( ) ; if ( parent variable scope ! = null ) { if ( source execution = = null ) { parent variable scope set variable ( variable name , value ) ; } else { parent variable scope set variable ( variable name , value , source execution , true ) ; } return ; } / / we ' re as high as possible and the variable doesn ' t exist yet , so / / we ' re creating it if ( source execution ! = null ) { create variable local ( variable name , value , source execution ) ; } else { create variable local ( variable name , value ) ; } } else { / / check local cache first if ( used variables cache contains key ( variable name ) ) { update variable instance ( used variables cache get ( variable name ) , value , source execution ) ; } else if ( variable instances ! = null & & variable instances contains key ( variable name ) ) { update variable instance ( variable instances get ( variable name ) , value , source execution ) ; } else { / / not in local cache , check if defined on this scope / / create it if it doesn ' t exist yet variable instance entity variable = get specific variable ( variable name ) ; if ( variable ! = null ) { update variable instance ( variable , value , source execution ) ; used variables cache put ( variable name , variable ) ; } else { variable scope impl parent = get parent variable scope ( ) ; if ( parent ! = null ) { if ( source execution = = null ) { parent set variable ( variable name , value , fetch all variables ) ; } else { parent set variable ( variable name , value , source execution , fetch all variables ) ; } return ; } variable = create variable instance ( variable name , value , source execution ) ; used variables cache put ( variable name , variable ) ; } } } }


provides consistent iteration by { @ link # key }

public int compare to ( v 1 binary annotation that ) { if ( this = = that ) return 0 ; return key compare to ( that key ) ; }


sets whether the query builder should ignore unmapped types ( and run a { @ link match no docs query } in place of this query ) or throw an exception if the type is unmapped

public has child query builder ignore unmapped ( boolean ignore unmapped ) { this ignore unmapped = ignore unmapped ; if ( inner hit builder ! = null ) { inner hit builder set ignore unmapped ( ignore unmapped ) ; } return this ; }


determines the name to be used for the provided resource

protected string determine resource name ( final resource resource ) { string resource name ; if ( resource instanceof context resource ) { resource name = ( ( context resource ) resource ) get path within context ( ) ; } else if ( resource instanceof byte array resource ) { resource name = resource get description ( ) ; } else { try { resource name = resource get file ( ) get absolute path ( ) ; } catch ( i o exception e ) { resource name = resource get filename ( ) ; } } return resource name ; }


convert the given object to string with each line indented by 4 spaces ( except the first line )

private string to indented string ( object o ) { if ( o = = null ) { return " null " ; } return o to string ( ) replace ( " \ n " , " \ n " ) ; }


public static integer get integer ( string property name , string env name , integer default value ) { check env name ( env name ) ; integer property value = number util to int object ( system get property ( property name ) , null ) ; if ( property value ! = null ) { return property value ; } else { property value = number util to int object ( system getenv ( env name ) , null ) ; return property value ! = null ? property value : default value ; } }


generate a sample of data set by the probability fraction of each element

public static < t > map partition operator < t , t > sample ( data set < t > input , final boolean with replacement , final double fraction , final long seed ) { return input map partition ( new sample with fraction < t > ( with replacement , fraction , seed ) ) ; }


trusted manager for verifying the remote endpoint ' s certificate { @ code null } uses the system default

public ssl context builder trust manager ( trust manager factory trust manager factory ) { trust cert collection = null ; this trust manager factory = trust manager factory ; return this ; }


returns all the concrete indices that are not hidden

public string [ ] get concrete visible indices ( ) { return visible indices ; }


perform a file sort from a set of input files into an output file

public void sort ( path [ ] in files , path out file , boolean delete input ) throws i o exception { if ( fs exists ( out file ) ) { throw new i o exception ( " already exists : " + out file ) ; } this in files = in files ; this out file = out file ; int segments = sort pass ( delete input ) ; if ( segments > 1 ) { merge pass ( out file get parent ( ) ) ; } }


check whether the test is enabled in the current execution environment this prevents classes with a non - matching { @ code @ if profile value } annotation from running altogether , even skipping the execution of { @ code prepare test instance ( ) } methods in { @ code test execution listeners }

public void run ( run notifier notifier ) { if ( ! profile value utils is test enabled in this environment ( get test class ( ) get java class ( ) ) ) { notifier fire test ignored ( get description ( ) ) ; return ; } super run ( notifier ) ; }


encodes silent ' b ' for cases not covered under " - mb - "

boolean encode silent b ( ) { / / ' debt ' , ' doubt ' , ' subtle ' if ( string at ( ( m current - 2 ) , 4 , " debt " , " " ) | | string at ( ( m current - 2 ) , 5 , " subtl " , " " ) | | string at ( ( m current - 2 ) , 6 , " subtil " , " " ) | | string at ( ( m current - 3 ) , 5 , " doubt " , " " ) ) { metaph add ( " t " ) ; m current + = 2 ; return true ; } return false ; }


public int hash code ( ) { int hash = type hash code ( ) ; hash = ( hash * 31 ) + elements hash code ( ) ; hash = ( hash * 31 ) + visibility hash code ( ) ; return hash ; }


helper function which puts a given s 3 a file status into the metadata store and returns the same s 3 a file status instrumentation monitors the put operation

public static s 3 a file status put and return ( metadata store ms , s 3 a file status status , i ttl time provider time provider ) throws i o exception { return put and return ( ms , status , time provider , null ) ; }


private void delete indices ( final cluster changed event event ) { final cluster state previous state = event previous state ( ) ; final cluster state state = event state ( ) ; final string local node id = state nodes ( ) get local node id ( ) ; assert local node id ! = null ; for ( index index : event indices deleted ( ) ) { if ( logger is debug enabled ( ) ) { logger debug ( " [ { } ] cleaning index , no longer part of the metadata " , index ) ; } allocated index < ? extends shard > index service = indices service index service ( index ) ; final index settings index settings ; if ( index service ! = null ) { index settings = index service get index settings ( ) ; indices service remove index ( index , deleted , " index no longer part of the metadata " ) ; } else if ( previous state metadata ( ) has index ( index ) ) { / / the deleted index was part of the previous cluster state , but not loaded on the local node final index metadata metadata = previous state metadata ( ) index ( index ) ; index settings = new index settings ( metadata , settings ) ; indices service delete unassigned index ( " deleted index was not assigned to local node " , metadata , state ) ; } else { / / the previous cluster state ' s metadata also does not contain the index , / / which is what happens on node startup when an index was deleted while the / / node was not part of the cluster in this case , try reading the index / / metadata from disk if its not there , there is nothing to delete / / first , though , verify the precondition for applying this case by / / asserting that either this index is already in the graveyard , or the / / previous cluster state is not initialized / recovered assert state metadata ( ) index graveyard ( ) contains index ( index ) | | previous state blocks ( ) has global block ( gateway service state not recovered block ) ; final index metadata metadata = indices service verify index is deleted ( index , event state ( ) ) ; if ( metadata ! = null ) { index settings = new index settings ( metadata , settings ) ; } else { index settings = null ; } } if ( index settings ! = null ) { thread pool generic ( ) execute ( new abstract runnable ( ) { @ override public void on failure ( exception e ) { logger warn ( ( ) - > new parameterized message ( " [ { } ] failed to complete pending deletion for index " , index ) , e ) ; } @ override protected void do run ( ) throws exception { try { / / we are waiting until we can lock the index / all shards on the node and then we ack the delete of the store / / to the master if we can ' t acquire the locks here immediately there might be a shard of this index still / / holding on to the lock due to a " currently canceled recovery " or so the shard will delete itself before the / / lock is released so it ' s guaranteed to be deleted by the time we get the lock indices service process pending deletes ( index , index settings , new time value ( 30 , time unit minutes ) ) ; } catch ( shard lock obtain failed exception exc ) { logger warn ( " [ { } ] failed to lock all shards for index - timed out after 30 seconds " , index ) ; } catch ( interrupted exception e ) { logger warn ( " [ { } ] failed to lock all shards for index - interrupted " , index ) ; } } } ) ; } } }


applies the given visitor to all local variables

public void local variables accept ( clazz clazz , method method , code attribute code attribute , local variable info visitor local variable info visitor ) { for ( int index = 0 ; index < u 2local variable table length ; index + + ) { / / we don ' t need double dispatching here , since there is only one / / type of local variable info local variable info visitor visit local variable info ( clazz , method , code attribute , local variable table [ index ] ) ; } }


delegate get requests to process requestdo service will also be invoked by http servlet ' s default implementation of { @ code do head } , with a { @ code no body response } that just captures the content length

protected final void do get ( http servlet request request , http servlet response response ) throws servlet exception , i o exception { process request ( request , response ) ; }


patch another - fakedummy : to test special tags to test special tags and operation id starting with number

default mono < response entity < client > > call 1 2 3test special tags ( mono < client > body , server web exchange exchange ) { mono < void > result = mono empty ( ) ; exchange get response ( ) set status code ( http status not implemented ) ; for ( media type media type : exchange get request ( ) get headers ( ) get accept ( ) ) { if ( media type is compatible with ( media type value of ( " application / json " ) ) ) { string example string = " { \ " client \ " : \ " client \ " } " ; result = api util get example response ( exchange , example string ) ; break ; } } return result then ( mono empty ( ) ) ; }


notifies registered licensees of license state change andor new active license based on the license in < code > current licenses metadata < code > additionally schedules license expiry notifications and event callbacks relative to the current license ' s expiry

private void on update ( final licenses metadata current licenses metadata ) { final license license = get license ( current licenses metadata ) ; / / license can be null if the trial license is yet to be auto - generated / / in this case , it is a no - op if ( license ! = null ) { final license previous license = current license get ( ) ; if ( license equals ( previous license ) = = false ) { current license set ( license ) ; license set operation mode file watcher ( operation mode file watcher ) ; scheduler add ( new scheduler engine job ( license job , next license check ( license ) ) ) ; for ( expiration callback expiration callback : expiration callbacks ) { scheduler add ( new scheduler engine job ( expiration callback get id ( ) , ( start time , now ) - > expiration callback next scheduled time for expiry ( license expiry date ( ) , start time , now ) ) ) ; } if ( previous license ! = null ) { / / remove operation mode file watcher to gc the old license object previous license remove operation mode file watcher ( ) ; } logger info ( " license [ { } ] mode [ { } ] - valid " , license uid ( ) , license operation mode ( ) name ( ) to lower case ( locale root ) ) ; } update license state ( license , current licenses metadata get most recent trial version ( ) ) ; } }


returns true if the graph has no values ;

public synchronized boolean is empty ( ) { return node map is empty ( ) ; }


a sensible definition of { @ link # contains } in terms of { @ link # iterator } if you override { @ link # iterator } , you may wish to override { @ link # contains } to forward to this implementation

protected boolean standard contains ( @ nullable decl object object ) { return iterators contains ( iterator ( ) , object ) ; }


set the amount of ram reserved for each map slot

public builder set memory per map slot ( long memory per map slot ) { node memory per map slot = memory per map slot ; return this ; }


receive first notification of an unknown predicate

void unknown ( request predicate predicate ) ;


tighten the extra policy on the assumed role call for torrent access , and verify that it blocks all other operations that is : any non empty policy in the assume role api call overrides all of the policies attached to the role before switches the role instance to only those policies in the

public void test assume role policies override role perms ( ) throws throwable { describe ( " extra policies in assumed roles need ; " + " all required policies stated " ) ; configuration conf = create assumed role config ( ) ; bind role policy ( conf , policy ( statement ( false , s3 all buckets , s3 get object torrent ) , allow s3 get bucket location , statement s3guard client , statement allow sse kms rw ) ) ; path path = path ( " test assume role still includes role perms " ) ; role f s = ( s 3 a file system ) path get file system ( conf ) ; assert touch forbidden ( role f s , path ) ; }


extension point for deployers to define custom audit resource resolvers to extend the stock resolvers

public map < string , audit resource resolver > custom audit resource resolver map ( ) { return new hash map < > ( 0 ) ; }


@ override protected void init ( service record service record ) throws exception { super init ( service record ) ; if ( get target ( ) = = null ) { return ; } try { this set target ( get ipv 6 address ( get target ( ) ) ) ; } catch ( unknown host exception e ) { throw new illegal state exception ( e ) ; } }


convert the given object to string with each line indented by 4 spaces ( except the first line )

private string to indented string ( object o ) { if ( o = = null ) { return " null " ; } return o to string ( ) replace ( " \ n " , " \ n " ) ; }


returns a " closure - cleaned " version of the given function cleans only if closure cleaning is not disabled in the { @ link org apache flink api common execution config }

public < f > f clean ( f f ) { if ( get config ( ) is closure cleaner enabled ( ) ) { closure cleaner clean ( f , get config ( ) get closure cleaner level ( ) , true ) ; } closure cleaner ensure serializable ( f ) ; return f ; }


adds the given transaction listener to this domain object

public void add transaction listener ( transaction listener listener ) { transaction mgr add transaction listener ( this , listener ) ; }


reverse the least significant { @ code n } bytes this interprets the bits as an { @ code n } - byte value and changes the endianness any bits outside of the interpretation are truncated , i e , become unknown

public masked long byte swap ( int n ) { return from mask and value ( token field byte swap ( msk , n ) , token field byte swap ( val , n ) ) ; }


reads the given input stream as a zip file and extracts it into this directory

public void unzip from ( input stream in ) throws i o exception , interrupted exception { final input stream in = new remote input stream ( in , flag greedy ) ; act ( new unzip from ( in ) ) ; }


public string get shape type ( ) { return shape type ; }


create an instance with the security protocol name as the value

public static listener name for security protocol ( security protocol security protocol ) { return new listener name ( security protocol name ) ; }


obtains a { @ link virtual channel } that allows some computation to be performed on the master this method can be called from any thread on the master , or from agent ( more precisely , it only works from the remoting request - handling thread in agents , which means if you ' ve started separate thread on agents , that ' ll fail )

public static virtual channel get channel to master ( ) { if ( jenkins get instance or null ( ) ! = null ) { / / check if calling thread is on master or on agent return file path local channel ; } / / if this method is called from within the agent computation thread , this should work channel c = channel current ( ) ; if ( c ! = null & & boolean true equals ( c get property ( " slave " ) ) ) { return c ; } return null ; }


public integer get prefix ns integer ( ) { return prefix ns integer ; }


only valid when the destination is elasticsearch > = 7 8 indicates the index template priority in case of multiple matching templates the template with highest priority is used default to 0 see https : www elastic coguideenelasticsearchreference 7 8 index template and settings priority html

public abstract builder template priority ( @ nullable integer template priority ) ;


gets the java resources which were included in this rule ' s output each key in the map ( a path within the jar ) should correspond to the artifact which belongs at that path the path fragment should be some suffix of the artifact ' s exec path

public map < path fragment , artifact > get resources ( ) { return resources ; }


set the rendering mode when render mode is rendermode continuously , the renderer is called repeatedly to re - render the scene when render mode is rendermode when dirty , the renderer only rendered when the surface is created , or when { @ link # request render } is called defaults to rendermode continuously

public void set render mode ( int render mode ) { if ( surface view instanceof g l surface view ) { ( ( g l surface view ) surface view ) set render mode ( render mode ) ; } else if ( surface view instanceof g l texture view ) { ( ( g l texture view ) surface view ) set render mode ( render mode ) ; } }


builds an instance representing a horizontal transformation with a constant value of { @ code y } ( the inverse of this will be a vertical transformation )

public static linear transformation horizontal ( double y ) { check argument ( is finite ( y ) ) ; double slope = 0 0 ; return new regular linear transformation ( slope , y ) ; }


public format test int 3 2 ( integer int 3 2 ) { this int 3 2 = int 3 2 ; return this ; }


cancel the scheduled deletion of the path when the file system is closed

public boolean cancel delete on exit ( path f ) { synchronized ( delete on exit ) { return delete on exit remove ( f ) ; } }


public void place order test ( ) { order order = null ; / / order response = api place order ( order ) ; / / todo : test validations }


public abstract json writer value ( @ nullable boolean value ) throws i o exception ;


a scaling for the size of the applied blur , default of 1 0

public void set blur size ( float blur size ) { this blur size = blur size ; run on draw ( new runnable ( ) { @ override public void run ( ) { init texel offsets ( ) ; } } ) ; }


returns the exception handler section id

public int get exception handler section i d ( ) { return exception handler section i d ; }


checks whether this installer can be applied to a given node ( by default , just checks the label )

public boolean applies to ( node node ) { label l = jenkins get ( ) get label ( label ) ; return l = = null | | l contains ( node ) ; }


stores the given buffer and sends out the previous buffer

private void enqueue ( @ nullable data buffer buf ) { data buffer previous = this previous get and set ( buf ) ; if ( previous ! = null ) { emit body ( previous ) ; } }


adds the given { @ code cell } to the table , making it immutable if necessary duplicate key pairs are not allowed and will cause { @ link # build } to fail

public builder < r , c , v > put ( cell < ? extends r , ? extends c , ? extends v > cell ) { if ( cell instanceof tables immutable cell ) { check not null ( cell get row key ( ) , " row " ) ; check not null ( cell get column key ( ) , " column " ) ; check not null ( cell get value ( ) , " value " ) ; @ suppress warnings ( " unchecked " ) / / all supported methods are covariant cell < r , c , v > immutable cell = ( cell < r , c , v > ) cell ; cells add ( immutable cell ) ; } else { put ( cell get row key ( ) , cell get column key ( ) , cell get value ( ) ) ; } return this ; }


called from { @ link # test calls get containers from previous attempts method if present ( ) }

public list < container > get containers from previous attempts ( ) { return collections singleton list ( mock container ) ; }


the semantics of mkdirs with exists check method is different from the mkdirs method provided in the sun ' s java io file class in the following way : while creating the non - existent parent directories , this method checks for the existence of those directories if the mkdir fails at any point ( since that directory might have just been created by some other process ) if both mkdir ( ) and the exists ( ) check fails for any seemingly non - existent directory , then we signal an error ; sun ' s mkdir would signal an error ( return false ) if a directory it is attempting to create already exists or the mkdir fails

private static boolean mkdirs with exists check ( file dir ) { if ( dir mkdir ( ) | | dir exists ( ) ) { return true ; } file canon dir ; try { canon dir = dir get canonical file ( ) ; } catch ( i o exception e ) { return false ; } string parent = canon dir get parent ( ) ; return ( parent ! = null ) & & ( mkdirs with exists check ( new file ( parent ) ) & & ( canon dir mkdir ( ) | | canon dir exists ( ) ) ) ; }


protected synchronized void set cleanup progress ( float p ) { super set cleanup progress ( p ) ; }


public boolean increment usage with default quota limit ( group capacity group capacity ) { string sql = " update group capacity set ` usage ` = ` usage ` + 1 , gmt modified = ? where group id = ? and ` usage ` < " + " ? and quota = 0 " ; try { int affect row = jdbc template update ( sql , group capacity get gmt modified ( ) , group capacity get group ( ) , group capacity get quota ( ) ) ; return affect row = = 1 ; } catch ( cannot get jdbc connection exception e ) { fatal log error ( " [ db - error ] " , e ) ; throw e ; } }


public enum integer enum get enum integer ( ) { return enum integer ; }


sets the state on a drawable if it is clickable or should duplicate its parent ' s state

static void maybe set drawable state ( view view , drawable drawable , int flags , @ nullable node info node info ) { final boolean should set state = ( node info ! = null & & node info has touch event handlers ( ) ) | | layout output is duplicate parent state ( flags ) ; if ( should set state & & drawable is stateful ( ) ) { drawable set state ( view get drawable state ( ) ) ; } }


public void remove panel slide listener ( panel slide listener listener ) { synchronized ( m panel slide listeners ) { m panel slide listeners remove ( listener ) ; } }


a convenience method for creating a { @ link vertex id }

public static vertex id create id ( string field , string term ) { return new vertex id ( field , term ) ; }


return existence of the < code > name < code > property , but only for names which have no valid value , usually non - existent or commented out in xml

public boolean only key exists ( string name ) { string [ ] names = handle deprecation ( deprecation context get ( ) , name ) ; for ( string n : names ) { if ( get props ( ) get property ( n , default string check ) equals ( default string check ) ) { return true ; } } return false ; }


{ @ inherit doc } the default implementation does nothing

@ override public void exit boolean default ( eql base parser boolean default context ctx ) { }


static method to destroy all running < code > shell < code > processes iterates through a map of all currently running < code > shell < code > processes and destroys them one by one this method is thread safe

public static void destroy all shell processes ( ) { synchronized ( child shells ) { for ( shell shell : child shells key set ( ) ) { if ( shell get process ( ) ! = null ) { shell get process ( ) destroy ( ) ; } } child shells clear ( ) ; } }


public static set < string > get contrast resources ( ) { return collections unmodifiable set ( sets new hash set ( " content background " , " default tabs hover color " , " default tabs inactive mask color " , " editor pane background " , " header color inactive " , / / deprecated " material contrast " , " new class search field background " , " popup border color " , / / deprecated " popup border color " , " popup header inactive background " , " popup toolbar background " , " popup toolbar border color " , / / deprecated " popup toolbar border color " , " popup toolbar floating background " , " scroll bar thumb " , " search everywhere advertiser background " , " search everywhere search field background " , " table stripe color " , " table striped background " , / / deprecated " table alternative row background " , " title pane background " , " tool bar background " , " tool window button selected background " , " tool window header tab selected active background " , / / deprecated " tool window header tab selected background " , / / deprecated " tool window header tab selected inactive background " , " tool window header tab selected background " , " tool window inactive header tab background " , / / deprecated " tool window active header tab background " , / / deprecated " tool window header tab underlined tab inactive background " , " u i designer canvas background " , " u i designer motion primary panel background " , " u i designer motion secondary panel header background " , " version control log commit current branch background " , " welcome screen caption background " , " welcome screen footer background " , " welcome screen list background " , " welcome screen projects actions background " ) ) ; }


enables logging for the given log type at the specified level and above

public void enable ( string log type , level level ) { prefs put ( log type , level ) ; }


convert the given object to string with each line indented by 4 spaces ( except the first line )

private string to indented string ( object o ) { if ( o = = null ) { return " null " ; } return o to string ( ) replace ( " \ n " , " \ n " ) ; }


given an input { @ link global group state } and a {

static @ non null advance group state result partially advance group state ( @ non null global group state input state , int maximum revision to apply ) { advance group state result group state result = process changes ( input state , maximum revision to apply ) ; return clean duplicated changes ( group state result , input state get local state ( ) ) ; }


get the high variable associate with this symbol if any this allows the user to go straight into the decompiler ' s function to see how the symbol gets manipulated

public high variable get high variable ( ) { return high variable ; }


write array header only without body use this if you want to write arrays as streaming

private void write array header ( byte buf allocator allocator , array header redis message msg , list < object > out ) { write array header ( allocator , msg is null ( ) , msg length ( ) , out ) ; }


public big decimal get prefix number ( ) { return prefix number ; }


assert a session attribute value with the given hamcrest { @ link matcher }

public < t > result matcher session attribute ( string name , matcher < ? super t > matcher ) { return result - > { http session session = result get request ( ) get session ( ) ; assert state ( session ! = null , " no http session " ) ; t value = ( t ) session get attribute ( name ) ; assert that ( " session attribute ' " + name + " ' " , value , matcher ) ; } ; }


see { @ link socket # is bound ( ) } calling this method does not trigger mode detection

public boolean is bound ( ) { return get socket allow unknown mode ( ) is bound ( ) ; }


given 0 & lt ; x & lt ; y , return x ^ ( - 1 ) mod y

public static long mod inverse ( final long x , final long y ) { if ( x = = 1 ) return 1 ; long a = 1 ; long b = 0 ; long c = x ; long u = 0 ; long v = 1 ; long w = y ; for ( ; ; ) { { final long q = w / c ; w - = q * c ; u - = q * a ; if ( w = = 1 ) return u > 0 ? u : u + y ; v - = q * b ; } { final long q = c / w ; c - = q * w ; a - = q * u ; if ( c = = 1 ) return a > 0 ? a : a + y ; b - = q * v ; } } }


gets the release future which is completed once the execution reaches a terminal state and the assigned resource has been released this future is always completed from the job master ' s main thread

public completable future < ? > get release future ( ) { return release future ; }


public big decimal get number item ( ) { return number item ; }


check whether the given value is valid , i e whether it falls in { @ linkplain # range ( ) range }

public int check valid value ( int value ) { if ( this = = day of week & & value = = 0 ) { return value ; } else { try { return this field check valid int value ( value ) ; } catch ( date time exception ex ) { throw new illegal argument exception ( ex get message ( ) , ex ) ; } } }


returns whether the given target is a test target if this returns true , then { @ link # is rule } must also return true for the target


returns the appropriate { @ code if - ge } rop for the given sources the result is a shared instance

public static rop op if ge ( type list types ) { return pick if ( types , if gez int , null , if ge int , null ) ; }


an implementation of { @ link multiset # set count ( object , int , int ) }

static < e > boolean set count impl ( multiset < e > self , e element , int old count , int new count ) { check nonnegative ( old count , " old count " ) ; check nonnegative ( new count , " new count " ) ; if ( self count ( element ) = = old count ) { self set count ( element , new count ) ; return true ; } else { return false ; } }


debug method for dumping address map information from this { @ link abstract symbol information }

private void dump address map ( string builder builder ) { builder append ( " address map symbol offsets - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ n " ) ; builder append ( " num address map symbol offsets : " + address map symbol offsets size ( ) + " \ n " ) ; int num = 0 ; for ( long val : address map symbol offsets ) { builder append ( string format ( " 0x % 08x : 0x % 012x \ n " , num + + , val ) ) ; } builder append ( " \ n end address map symbol offsets - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ n " ) ; }


returns whether the rule from the given rule context has a allowlist by the given name

public static boolean has allowlist ( rule context rule context , string allowlist name ) { for ( string attribute name : get attribute name from allowlist name ( allowlist name ) ) { if ( rule context is attr defined ( attribute name , label ) ) { return true ; } } return false ; }