check that the non - symlink constructor works correctly

public void constructor no symlink ( ) throws i o exception { boolean isdir = true ; file status file status = new file status ( length , isdir , replication , blksize , mtime , atime , permission , owner , group , path ) ; validate accessors ( file status , length , isdir , replication , blksize , mtime , atime , permission , owner , group , null , path ) ; }


returns the requirements needed for downloads to progress that are not currently met

public int get not met requirements ( ) { return not met requirements ; }


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


public static list < activity > get activity list ( ) { return utils bridge get activity list ( ) ; }


returns an immutable array containing the given values , in order

public static immutable double array copy of ( collection < double > values ) { return values is empty ( ) ? empty : new immutable double array ( doubles to array ( values ) ) ; }


factory method for a commons disk file item factory instance default implementation returns a standard disk file item factory can be overridden to use a custom subclass , e g for testing purposes

protected disk file item factory new file item factory ( ) { return new disk file item factory ( ) ; }


the request from clients to get a report of applications matching the giving application types in the cluster from the < code > resource manager < code >

public static get applications request new instance ( set < string > application types ) { get applications request request = records new record ( get applications request class ) ; request set application types ( application types ) ; return request ; }


calls thread fail with message " should throw " + exception name

public void thread should throw ( string exception name ) { thread fail ( " should throw " + exception name ) ; }


split the big batch that has been rejected and reenqueue the split batches in to the accumulator

public int split and reenqueue ( producer batch big batch ) { / / reset the estimated compression ratio to the initial value or the big batch compression ratio , whichever / / is bigger there are several different ways to do the reset we chose the most conservative one to ensure / / the split doesn ' t happen too often compression ratio estimator set estimation ( big batch topic partition topic ( ) , compression , math max ( 1 0f , ( float ) big batch compression ratio ( ) ) ) ; deque < producer batch > dq = big batch split ( this batch size ) ; int num split batches = dq size ( ) ; deque < producer batch > partition dequeue = get or create deque ( big batch topic partition ) ; while ( ! dq is empty ( ) ) { producer batch batch = dq poll last ( ) ; incomplete add ( batch ) ; / / we treat the newly split batches as if they are not even tried synchronized ( partition dequeue ) { if ( transaction manager ! = null ) { / / we should track the newly created batches since they already have assigned sequences transaction manager add in flight batch ( batch ) ; insert in sequence order ( partition dequeue , batch ) ; } else { partition dequeue add first ( batch ) ; } } } return num split batches ; }


returns true if there are no type variables in this type


test invoker is automatically added to manipulate target

public void test auto invoker ( ) { string name = " hieronymous " ; test bean target = ( test bean ) factory get bean ( " test " ) ; target set name ( name ) ; i test bean auto invoker = ( i test bean ) factory get bean ( " auto invoker " ) ; assert that ( auto invoker get name ( ) equals ( name ) ) is true ( ) ; }


positions and sizes children of the table using the cell associated with each child the values given are the position within the parent and size of the table

public void layout ( ) { if ( size invalid ) compute size ( ) ; float layout width = get width ( ) , layout height = get height ( ) ; int columns = this columns , rows = this rows ; float [ ] column width = this column width , row height = this row height ; float pad left = this pad left get ( this ) , hpadding = pad left + pad right get ( this ) ; float pad top = this pad top get ( this ) , vpadding = pad top + pad bottom get ( this ) ; / / size columns and rows between min and pref size using ( preferred - min ) size to weight distribution of extra space float [ ] column weighted width ; float total grow width = table pref width - table min width ; if ( total grow width = = 0 ) column weighted width = column min width ; else { float extra width = math min ( total grow width , math max ( 0 , layout width - table min width ) ) ; column weighted width = table column weighted width = ensure size ( table column weighted width , columns ) ; float [ ] column min width = this column min width , column pref width = this column pref width ; for ( int i = 0 ; i < columns ; i + + ) { float grow width = column pref width [ i ] - column min width [ i ] ; float grow ratio = grow width / total grow width ; column weighted width [ i ] = column min width [ i ] + extra width * grow ratio ; } } float [ ] row weighted height ; float total grow height = table pref height - table min height ; if ( total grow height = = 0 ) row weighted height = row min height ; else { row weighted height = table row weighted height = ensure size ( table row weighted height , rows ) ; float extra height = math min ( total grow height , math max ( 0 , layout height - table min height ) ) ; float [ ] row min height = this row min height , row pref height = this row pref height ; for ( int i = 0 ; i < rows ; i + + ) { float grow height = row pref height [ i ] - row min height [ i ] ; float grow ratio = grow height / total grow height ; row weighted height [ i ] = row min height [ i ] + extra height * grow ratio ; } } / / determine actor and cell sizes ( before expand or fill ) object [ ] cells = this cells items ; int cell count = this cells size ; for ( int i = 0 ; i < cell count ; i + + ) { cell c = ( cell ) cells [ i ] ; int column = c column , row = c row ; actor a = c actor ; float spanned weighted width = 0 ; int colspan = c colspan ; for ( int ii = column , nn = ii + colspan ; ii < nn ; ii + + ) spanned weighted width + = column weighted width [ ii ] ; float weighted height = row weighted height [ row ] ; float pref width = c pref width get ( a ) , pref height = c pref height get ( a ) ; float min width = c min width get ( a ) , min height = c min height get ( a ) ; float max width = c max width get ( a ) , max height = c max height get ( a ) ; if ( pref width < min width ) pref width = min width ; if ( pref height < min height ) pref height = min height ; if ( max width > 0 & & pref width > max width ) pref width = max width ; if ( max height > 0 & & pref height > max height ) pref height = max height ; c actor width = math min ( spanned weighted width - c computed pad left - c computed pad right , pref width ) ; c actor height = math min ( weighted height - c computed pad top - c computed pad bottom , pref height ) ; if ( colspan = = 1 ) column width [ column ] = math max ( column width [ column ] , spanned weighted width ) ; row height [ row ] = math max ( row height [ row ] , weighted height ) ; } / / distribute remaining space to any expanding columns / rows float [ ] expand width = this expand width , expand height = this expand height ; float total expand = 0 ; for ( int i = 0 ; i < columns ; i + + ) total expand + = expand width [ i ] ; if ( total expand > 0 ) { float extra = layout width - hpadding ; for ( int i = 0 ; i < columns ; i + + ) extra - = column width [ i ] ; if ( extra > 0 ) { / / layout width < table min width float used = 0 ; int last index = 0 ; for ( int i = 0 ; i < columns ; i + + ) { if ( expand width [ i ] = = 0 ) continue ; float amount = extra * expand width [ i ] / total expand ; column width [ i ] + = amount ; used + = amount ; last index = i ; } column width [ last index ] + = extra - used ; } } total expand = 0 ; for ( int i = 0 ; i < rows ; i + + ) total expand + = expand height [ i ] ; if ( total expand > 0 ) { float extra = layout height - vpadding ; for ( int i = 0 ; i < rows ; i + + ) extra - = row height [ i ] ; if ( extra > 0 ) { / / layout height < table min height float used = 0 ; int last index = 0 ; for ( int i = 0 ; i < rows ; i + + ) { if ( expand height [ i ] = = 0 ) continue ; float amount = extra * expand height [ i ] / total expand ; row height [ i ] + = amount ; used + = amount ; last index = i ; } row height [ last index ] + = extra - used ; } } / / distribute any additional width added by colspanned cells to the columns spanned for ( int i = 0 ; i < cell count ; i + + ) { cell c = ( cell ) cells [ i ] ; int colspan = c colspan ; if ( colspan = = 1 ) continue ; float extra width = 0 ; for ( int column = c column , nn = column + colspan ; column < nn ; column + + ) extra width + = column weighted width [ column ] - column width [ column ] ; extra width - = math max ( 0 , c computed pad left + c computed pad right ) ; extra width / = colspan ; if ( extra width > 0 ) { for ( int column = c column , nn = column + colspan ; column < nn ; column + + ) column width [ column ] + = extra width ; } } / / determine table size float table width = hpadding , table height = vpadding ; for ( int i = 0 ; i < columns ; i + + ) table width + = column width [ i ] ; for ( int i = 0 ; i < rows ; i + + ) table height + = row height [ i ] ; / / position table within the container int align = this align ; float x = pad left ; if ( ( align & align right ) ! = 0 ) x + = layout width - table width ; else if ( ( align & align left ) = = 0 ) / / center x + = ( layout width - table width ) / 2 ; float y = pad top ; if ( ( align & align bottom ) ! = 0 ) y + = layout height - table height ; else if ( ( align & align top ) = = 0 ) / / center y + = ( layout height - table height ) / 2 ; / / size and position actors within cells float current x = x , current y = y ; for ( int i = 0 ; i < cell count ; i + + ) { cell c = ( cell ) cells [ i ] ; float spanned cell width = 0 ; for ( int column = c column , nn = column + c colspan ; column < nn ; column + + ) spanned cell width + = column width [ column ] ; spanned cell width - = c computed pad left + c computed pad right ; current x + = c computed pad left ; float fill x = c fill x , fill y = c fill y ; if ( fill x > 0 ) { c actor width = math max ( spanned cell width * fill x , c min width get ( c actor ) ) ; float max width = c max width get ( c actor ) ; if ( max width > 0 ) c actor width = math min ( c actor width , max width ) ; } if ( fill y > 0 ) { c actor height = math max ( row height [ c row ] * fill y - c computed pad top - c computed pad bottom , c min height get ( c actor ) ) ; float max height = c max height get ( c actor ) ; if ( max height > 0 ) c actor height = math min ( c actor height , max height ) ; } align = c align ; if ( ( align & align left ) ! = 0 ) c actor x = current x ; else if ( ( align & align right ) ! = 0 ) c actor x = current x + spanned cell width - c actor width ; else c actor x = current x + ( spanned cell width - c actor width ) / 2 ; if ( ( align & align top ) ! = 0 ) c actor y = c computed pad top ; else if ( ( align & align bottom ) ! = 0 ) c actor y = row height [ c row ] - c actor height - c computed pad bottom ; else c actor y = ( row height [ c row ] - c actor height + c computed pad top - c computed pad bottom ) / 2 ; c actor y = layout height - current y - c actor y - c actor height ; if ( round ) { c actor width = ( float ) math ceil ( c actor width ) ; c actor height = ( float ) math ceil ( c actor height ) ; c actor x = ( float ) math floor ( c actor x ) ; c actor y = ( float ) math floor ( c actor y ) ; } if ( c actor ! = null ) c actor set bounds ( c actor x , c actor y , c actor width , c actor height ) ; if ( c end row ) { current x = x ; current y + = row height [ c row ] ; } else current x + = spanned cell width + c computed pad right ; } / / validate all children ( some may not be in cells ) array < actor > children array = get children ( ) ; actor [ ] children = children array items ; for ( int i = 0 , n = children array size ; i < n ; i + + ) { object child = children [ i ] ; if ( child instanceof layout ) ( ( layout ) child ) validate ( ) ; } / / store debug rectangles if ( debug ! = debug none ) add debug rects ( x , y , table width - hpadding , table height - vpadding ) ; }


returns the public static method of { @ code cl } that accepts no arguments and returns { @ code return type } specified by { @ code method name } or { @ code null } if { @ code cl } has no public static method that matches that specification

private static method get factory method ( class < ? > cl , class < ? > return type , string method name ) { try { method m = cl get declared method ( method name ) ; if ( modifier is public ( m get modifiers ( ) ) & & modifier is static ( m get modifiers ( ) ) & & return type is assignable from ( m get return type ( ) ) ) { return m ; } else { return null ; } } catch ( no such method exception | security exception e ) { return null ; } }


returns a string that fully serializes this instance the serialized string can be used for transmitting or persisting an object identifier

public string as serializable string ( ) { return string format ( " % s % s % s " , escape identifier ( catalog name ) , escape identifier ( database name ) , escape identifier ( object name ) ) ; }


public static void finish activity ( @ non null final activity activity ) { finish activity ( activity , false ) ; }


checks if the process definition is suspended

boolean is process definition suspended ( string process definition id ) ;


gets all server sockets that exist in the process

public com google common util concurrent listenable future < io grpc channelz v 1 get server sockets response > get server sockets ( io grpc channelz v 1 get server sockets request request ) { return io grpc stub client calls future unary call ( get channel ( ) new call ( get get server sockets method ( ) , get call options ( ) ) , request ) ; }


returns an immutable multimap containing the specified entries the returned multimap iterates over keys in the order they were first encountered in the input , and the values for each key are iterated in the order they were encountered

public static < k , v > immutable list multimap < k , v > copy of ( iterable < ? extends entry < ? extends k , ? extends v > > entries ) { return new builder < k , v > ( ) put all ( entries ) build ( ) ; }


removes the working panel and any buttons on the gui

private void remove existing gui components ( ) { remove work panel ( ) ; if ( apply button ! = null ) { remove button ( apply button ) ; } if ( cancel button ! = null ) { remove button ( cancel button ) ; } if ( search all button ! = null ) { remove button ( search all button ) ; } }


starts draining the codec to update its drm session the update may occur immediately if no buffers have been queued to the codec

private void drain and update codec drm session ( ) throws exo playback exception { if ( util sdk int < 23 ) { / / the codec needs to be re - initialized to switch to the source drm session drain and reinitialize codec ( ) ; return ; } if ( codec received buffers ) { codec drain state = drain state signal end of stream ; codec drain action = drain action update drm session ; } else { / / nothing has been queued to the decoder , so we can do the update immediately update drm session or reinitialize codec v 2 3 ( ) ; } }


< code > optional string namespace uri = 1 ; < code >

public com google protobuf byte string get namespace uri bytes ( ) { return instance get namespace uri bytes ( ) ; }


void do replace with ( structure struct , boolean notify ) throws data type dependency exception , i o exception { / / pre - resolved component types to catch dependency issues early data type component flex component = struct get flexible array component ( ) ; data type component [ ] other components = struct get defined components ( ) ; data type [ ] resolved dts = new data type [ other components length ] ; for ( int i = 0 ; i < other components length ; i + + ) { resolved dts [ i ] = do checked resolve ( other components [ i ] get data type ( ) ) ; } data type resolved flex dt = null ; if ( flex component ! = null ) { resolved flex dt = do checked resolve ( flex component get data type ( ) ) ; if ( is invalid flex array data type ( resolved flex dt ) ) { throw new illegal argument exception ( " unsupported flex type : " + resolved flex dt get display name ( ) ) ; } } int old length = struct length ; int old min alignment = get minimum alignment ( ) ; for ( data type component d b dtc : components ) { dtc get data type ( ) remove parent ( this ) ; component adapter remove record ( dtc get key ( ) ) ; } components clear ( ) ; num components = 0 ; struct length = 0 ; if ( flexible array component ! = null ) { flexible array component get data type ( ) remove parent ( this ) ; component adapter remove record ( flexible array component get key ( ) ) ; flexible array component = null ; } set alignment ( struct , false ) ; if ( struct is internally aligned ( ) ) { do replace with aligned ( struct , resolved dts ) ; } else { do replace with unaligned ( struct , resolved dts ) ; } if ( flex component ! = null ) { do add flex array ( resolved flex dt , flex component get field name ( ) , flex component get comment ( ) , false ) ; } record set int value ( composite d b adapter composite num components col , num components ) ; record set int value ( composite d b adapter composite length col , struct length ) ; composite adapter update record ( record , false ) ; adjust internal alignment ( false ) ; if ( notify ) { if ( old min alignment ! = get minimum alignment ( ) ) { notify alignment changed ( ) ; } else if ( old length ! = struct length ) { notify size changed ( ) ; } else { data mgr data type changed ( this ) ; } } if ( pointer post resolve required ) { data mgr queue post resolve ( this , struct ) ; } }


public map < string , map < string , string > > get map map of string ( ) { return map map of string ; }


returns the local address where this channel is bound to the returned { @ link socket address } is supposed to be down - cast into more concrete type such as { @ link inet socket address } to retrieve the detailed information


public static saml registered service get saml registered service ( final string service id ) { val registered service = new saml registered service ( ) ; registered service set id ( 100 ) ; registered service set name ( " saml " ) ; registered service set service id ( service id ) ; registered service set metadata location ( " classpath : metadata / testshib - providers xml " ) ; val request = new mock http servlet request ( ) ; request add parameter ( saml protocol constants parameter entity id , registered service get service id ( ) ) ; request context holder set request attributes ( new servlet request attributes ( request , new mock http servlet response ( ) ) ) ; return registered service ; }


adds and returns the plugin to this env ' s tool for the given class < p > if you have not created a tool using this env , then the default tool from { @ link # lazy tool ( ) } is used if you have launched a tool , then that tool is used in the following example , the given plugin is added to the default tool : test env env = new test env ( ) ; env launch default tool ( ) ; foo plugin foo = env add plugin ( foo plugin class ) ;

public < t extends plugin > t add plugin ( class < t > c ) throws plugin exception { plugin tool default tool = lazy tool ( ) ; default tool add plugin ( c get name ( ) ) ; return abstract ghidra headless integration test get plugin ( default tool , c ) ; }


where the entry was defined < code > optional aapt pb source source = 1 ; < code >

public boolean has source ( ) { return instance has source ( ) ; }


creates an empty { @ code linked blocking deque } with the given ( fixed ) capacity

public static < e > linked blocking deque < e > new linked blocking deque ( int capacity ) { return new linked blocking deque < e > ( capacity ) ; }


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 " ) ; }


set the document encoding using for marshalling default is utf - 8

public void set encoding ( string encoding ) { this encoding = encoding ; }


return the bytes of des decryption for hex string

public static byte [ ] decrypt hex string d e s ( final string data , final byte [ ] key , final string transformation , final byte [ ] iv ) { return decrypt d e s ( utils bridge hex string 2 bytes ( data ) , key , transformation , iv ) ; }


public set < string > get cluster node label names ( ) { read lock lock ( ) ; try { set < string > labels = new hash set < string > ( label collections key set ( ) ) ; labels remove ( no label ) ; return collections unmodifiable set ( labels ) ; } finally { read lock unlock ( ) ; } }


sets the priority for new threads created with this thread factory

public thread factory builder set priority ( int priority ) { / / thread # set priority ( ) already checks for validity these error messages / / are nicer though and will fail - fast check argument ( priority > = thread min priority , " thread priority ( % s ) must be > = % s " , priority , thread min priority ) ; check argument ( priority < = thread max priority , " thread priority ( % s ) must be < = % s " , priority , thread max priority ) ; this priority = priority ; return this ; }


query given sql to create a prepared statement from sql and a list of arguments to bind to the query , expecting a result list the results will be mapped to a list ( one entry for each row ) of maps ( one entry for each column , using the column name as the key ) each element in the list will be of the form returned by this interface ' s { @ code query for map } methods

list < map < string , object > > query for list ( string sql , map < string , ? > param map ) throws data access exception ;


this method clears the current informational message

public void clear info message ( ) { info msg = new string buffer ( ) ; }


parses the value as a geopoint the following types of values are supported : object : has to contain either lat and lon or geohash fields string : expected to be in " latitude , longitude " format or a geohash array : two or more elements , the first element is longitude , the second is latitude , the rest is ignored if ignore z value is true

public static geo point parse geo point ( object value , final boolean ignore z value ) throws elasticsearch parse exception { return parse geo point ( value , new geo point ( ) , ignore z value ) ; }


test that missing " filter " element causes { @ link parsing exception }

public void test filter element ( ) throws i o exception { string query string = " { \ " " + constant score query builder name + " \ " : { } } " ; parsing exception e = expect throws ( parsing exception class , ( ) - > parse query ( query string ) ) ; assert that ( e get message ( ) , contains string ( " requires a ' filter ' element " ) ) ; }


launch a jnlp agent created by { @ link # create jnlp slave ( string ) }

public channel launch jnlp slave ( slave slave ) throws exception { j create web client ( ) go to ( " computer / " + slave get node name ( ) + " / slave - agent jnlp ? encrypt = true " , " application / octet - stream " ) ; string secret = slave get computer ( ) get jnlp mac ( ) ; file slave jar = tmp new file ( ) ; file utils copy u r l to file ( new slave jnlp jar ( " slave jar " ) get u r l ( ) , slave jar ) ; / / to watch it fail : secret = secret replace ( ' 1 ' , ' 2 ' ) ; process builder pb = new process builder ( java env utils get jre executable ( " java " ) , " - jar " , slave jar get absolute path ( ) , " - jnlp url " , j get u r l ( ) + " computer / " + slave get node name ( ) + " / slave - agent jnlp " , " - secret " , secret ) ; pb inherit i o ( ) ; system err println ( " running : " + pb command ( ) ) ; jnlp = pb start ( ) ; for ( int i = 0 ; i < / * one minute * / 600 ; i + + ) { if ( slave get computer ( ) is online ( ) ) { return slave get computer ( ) get channel ( ) ; } thread sleep ( 100 ) ; } throw new assertion error ( " the jnlp agent failed to connect " ) ; }


with an unlimited - size cache with max weight of 0 , entries weighing 0 should still be cached entries with positive weight should not be cached ( nor dump existing cache )

public void test eviction max weight zero ( ) { counting removal listener < integer , integer > removal listener = counting removal listener ( ) ; identity loader < integer > loader = identity loader ( ) ; / / even numbers are free , odd are too expensive weigher < integer , integer > evens only = ( k , v ) - > k % 2 ; loading cache < integer , integer > cache = caffeinated guava build ( caffeine new builder ( ) maximum weight ( 0 ) weigher ( evens only ) removal listener ( removal listener ) executor ( more executors direct executor ( ) ) , loader ) ; / / 1 won ' t be cached assert that ( cache get unchecked ( 1 ) ) is equal to ( 1 ) ; assert that ( cache as map ( ) key set ( ) ) is empty ( ) ; cache clean up ( ) ; assert that ( removal listener get count ( ) ) is equal to ( 1 ) ; / / 2 will be cached assert that ( cache get unchecked ( 2 ) ) is equal to ( 2 ) ; assert that ( cache as map ( ) key set ( ) ) contains exactly ( 2 ) ; cache clean up ( ) ; cache testing check valid state ( cache ) ; assert that ( removal listener get count ( ) ) is equal to ( 1 ) ; / / 4 will be cached assert that ( cache get unchecked ( 4 ) ) is equal to ( 4 ) ; assert that ( cache as map ( ) key set ( ) ) contains exactly ( 2 , 4 ) ; cache clean up ( ) ; assert that ( removal listener get count ( ) ) is equal to ( 1 ) ; / / 5 won ' t be cached , won ' t dump cache assert that ( cache get unchecked ( 5 ) ) is equal to ( 5 ) ; assert that ( cache as map ( ) key set ( ) ) contains exactly ( 2 , 4 ) ; cache clean up ( ) ; assert that ( removal listener get count ( ) ) is equal to ( 2 ) ; / / should we pepper more of these calls throughout the above ? where ? cache testing check valid state ( cache ) ; }


returns immutable services registered with the server , or an empty list if not supported by the implementation

public list < server service definition > get immutable services ( ) { return collections empty list ( ) ; }


adds an inbound tcp agent to the system and returns it

private void add test agent ( computer launcher launcher ) throws exception { list < node > agents = new array list < > ( j jenkins get nodes ( ) ) ; file dir = util create temp dir ( ) ; agents add ( new dumb slave ( " test " , " dummy " , dir get absolute path ( ) , " 1 " , node mode normal , " " , launcher , retention strategy instance , new array list < > ( ) ) ) ; j jenkins set nodes ( agents ) ; computer c = j jenkins get computer ( " test " ) ; assert not null ( c ) ; }


ignore the given dependency interface for autowiring this will typically be used by application contexts to register dependencies that are resolved in other ways , like bean factory through bean factory aware or application context through application context aware by default , only the bean factory aware interface is ignored for further types to ignore , invoke this method for each type

public void ignore dependency interface ( class < ? > ifc ) { this ignored dependency interfaces add ( ifc ) ; }


show the given tooltip on the component with the given anchor key with the specified offsets from the given position

public static void show tooltip ( component context c , deprecated litho tooltip tooltip , string anchor key , tooltip position tooltip position , int x offset , int y offset ) { final component tree component tree = c get component tree ( ) ; final component root component = c get component scope ( ) ; if ( component tree = = null ) { return ; } final string anchor global key = root component = = null ? anchor key : component key utils get key with separator ( component get global key ( c , root component ) , anchor key ) ; component tree show tooltip ( tooltip , anchor global key , tooltip position , x offset , y offset ) ; }


set the project associated with this class loader

public void set project ( project project ) { this project = project ; if ( project ! = null ) { project add build listener ( this ) ; } }


utility method to verify that the given linked hash set is equal to and hashes identically to a set constructed with the elements in the given collection also verifies that the ordering in the set is the same as the ordering of the given contents

private static < e > void verify linked hash set contents ( linked hash set < e > set , collection < e > contents ) { assert equals ( " linked hash set should have preserved order for iteration " , new array list < e > ( set ) , new array list < e > ( contents ) ) ; verify set contents ( set , contents ) ; }


gets language specific primitives these are in addition to the " base " primitives defined in a generator in general , a primitive defined here will indicate to the generator : - models with these types don ' t require an import - model names not included here require imports and likely indicate a model reference there may be generator - specific implementation details which differ slightly

public set < string > get language specific primitives ( ) { return language specific primitives ; }


returns true if the path component ( i e directory ) of this uri is absolute this method is a wrapper for { @ link # is uri path absolute ( ) }

public boolean is absolute ( ) { return is uri path absolute ( ) ; }


updates the table with whatever is in the { @ link # model }

public void refresh ( ) { model reload ( ) ; }


creates a new { @ code bloom filter } that ' s a copy of this instance the new instance is equal to this instance but shares no mutable state

public bloom filter < t > copy ( ) { return new bloom filter < t > ( bits copy ( ) , num hash functions , funnel , strategy ) ; }


see { @ link # same ( attributes , boolean ) }

public final boolean same ( final attributes other ) { return same ( other , false ) ; }


public void set font asset delegate ( font asset delegate asset delegate ) { this font asset delegate = asset delegate ; if ( font asset manager ! = null ) { font asset manager set delegate ( asset delegate ) ; } }


create a cluster with even distribution , and a new empty node is added to the cluster , then test rack locality for balancer policy

public void test balancer with rack locality ( ) throws exception { configuration conf = create conf ( ) ; long [ ] capacities = new long [ ] { capacity , capacity } ; string [ ] racks = new string [ ] { rack0 , rack1 } ; string [ ] node groups = new string [ ] { nodegroup0 , nodegroup1 } ; int num of datanodes = capacities length ; assert equals ( num of datanodes , racks length ) ; mini d f s cluster builder builder = new mini d f s cluster builder ( conf ) num data nodes ( capacities length ) racks ( racks ) simulated capacities ( capacities ) ; mini d f s cluster with node group set node groups ( node groups ) ; cluster = new mini d f s cluster with node group ( builder ) ; try { cluster wait active ( ) ; verify network topology ( ) ; client = name node proxies create proxy ( conf , cluster get file system ( 0 ) get uri ( ) , client protocol class ) get proxy ( ) ; long total capacity = test balancer sum ( capacities ) ; / / fill up the cluster to be 30 % full long total used space = total capacity * 3 / 10 ; long length = total used space / num of datanodes ; test balancer create file ( cluster , file path , length , ( short ) num of datanodes , 0 ) ; located blocks lbs = client get block locations ( file path to uri ( ) get path ( ) , 0 , length ) ; set < extended block > before = get blocks on rack ( lbs get located blocks ( ) , rack0 ) ; long new capacity = capacity ; string new rack = rack1 ; string new node group = nodegroup2 ; / / start up an empty node with the same capacity and on the same rack cluster start data nodes ( conf , 1 , true , null , new string [ ] { new rack } , new long [ ] { new capacity } , new string [ ] { new node group } ) ; total capacity + = new capacity ; / / run balancer and validate results run balancer ( conf , total used space , total capacity ) ; lbs = client get block locations ( file path to uri ( ) get path ( ) , 0 , length ) ; set < extended block > after = get blocks on rack ( lbs get located blocks ( ) , rack0 ) ; assert equals ( before , after ) ; verify proper block placement ( file path to uri ( ) get path ( ) , length , num of datanodes ) ; } finally { cluster shutdown ( ) ; } }


gets the number of the superstep , starting at < tt > 1 < tt >

public int get superstep number ( ) { return this runtime context get superstep number ( ) ; }


returns the geo distance type used to compute the distance

public geo distance geo distance ( ) { return this geo distance ; }


override to add additional { @ link char filter } s see { @ link # requires analysis settings ( analysis provider ) } how to on get the configuration from the index

default map < string , analysis provider < char filter factory > > get char filters ( ) { return empty map ( ) ; }


returns the looked up provider the result is not valid until this lookup has been initialized , which usually happens when the injector is created the provider will throw an { @ code illegal state exception } if you try to use it beforehand

public provider < t > get provider ( ) { return new provider impl < > ( this ) ; }


returns the resource profile for this job vertex

resource profile get resource profile ( ) ;


the value of the { @ code requires index } item must be a valid index into the constant pool the entry at that index must be a { @ link constant pool module info } structure denoting a module that the current module depends on

public int get requires index ( ) { return requires index & 0xffff ; }


deletes the contents of { @ code dir } throws an i o exception if any file could not be deleted , or if { @ code dir } is not a readable directory

static void delete contents ( file dir ) throws i o exception { file [ ] files = dir list files ( ) ; if ( files = = null ) { throw new i o exception ( " not a readable directory : " + dir ) ; } for ( file file : files ) { if ( file is directory ( ) ) { delete contents ( file ) ; } if ( ! file delete ( ) ) { throw new i o exception ( " failed to delete file : " + file ) ; } } }


calculate the limit for a get request , based on input policy and state of object

static long calculate request limit ( final long target pos , final long length , final long content length , final long readahead ) { / / cannot read past the end of the object return math min ( content length , length < 0 ? content length : target pos + math max ( readahead , length ) ) ; }


void set status message ( string message ) { provider set status message ( message ) ; }


return language which has modified context field offsetssizes , register offsets , and compiler - spec id ' s notes : 1 translation can not be handled by default language transaltor 2 simple language transaltor should handle it

private old language get lang 3 ( ) throws exception { return read old language ( " < ? xml version = \ " 1 0 \ " encoding = \ " utf - 8 \ " ? > " + " < language version = \ " 3 \ " endian = \ " little \ " > " + " < description > " + " < id > x 8 6 : le : 32 : test < / id > " + " < processor > x 8 6 < / processor > " + " < variant > test < / variant > " + " < size > 32 < / size > " + " < / description > " + " < compiler name = \ " abc \ " id = \ " abc \ " / > " + " < compiler name = \ " xyz \ " id = \ " xyz \ " / > " + " < spaces > " + " < space name = \ " ram \ " type = \ " ram \ " size = \ " 4 \ " default = \ " yes \ " / > " + " < space name = \ " register \ " type = \ " register \ " size = \ " 4 \ " / > " + " < / spaces > " + " < registers > " + " < context register name = \ " contextreg \ " offset = \ " 0x 3 0 0 0 \ " bitsize = \ " 32 \ " > " + " < field name = \ " a \ " range = \ " 0 , 3 \ " / > " + " < field name = \ " b \ " range = \ " 4 , 4 \ " / > " + " < field name = \ " c \ " range = \ " 5 , 5 \ " / > " + " < / context register > " + " < register name = \ " rax2 \ " offset = \ " 0x 8 \ " bitsize = \ " 64 \ " / > " + " < register name = \ " eax2 \ " offset = \ " 0x 8 \ " bitsize = \ " 32 \ " / > " + " < register name = \ " ax2 \ " offset = \ " 0x 8 \ " bitsize = \ " 16 \ " / > " + " < register name = \ " al2 \ " offset = \ " 0x 8 \ " bitsize = \ " 8 \ " / > " + " < register name = \ " ah2 \ " offset = \ " 0x 9 \ " bitsize = \ " 8 \ " / > " + " < register name = \ " xx2 \ " offset = \ " 0x 2 0 \ " bitsize = \ " 16 \ " / > " + " < register name = \ " xl2 \ " offset = \ " 0x 2 1 \ " bitsize = \ " 8 \ " / > " + " < / registers > " + " < / language > " ) ; }


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


public string name ( ) { return name ; }


path fragment get target in symlink tree ( boolean follow symlinks ) throws dangling symlink exception ;


public void close ( ) { if ( curator ! = null ) { curator close ( ) ; } }


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


void on patch dex opt fail ( file patch file , list < file > dex files , throwable t ) ;


protected void create generate service ticket action ( final flow flow ) { val handler = create action state ( flow , cas webflow constants state id generate service ticket , create evaluate action ( cas webflow constants action id generate service ticket ) ) ; create transition for state ( handler , cas webflow constants transition id success , cas webflow constants state id redirect ) ; create transition for state ( handler , cas webflow constants transition id warn , cas webflow constants state id warn ) ; create transition for state ( handler , cas webflow constants transition id authentication failure , cas webflow constants state id handle authn failure ) ; create transition for state ( handler , cas webflow constants transition id error , cas webflow constants state id init login form ) ; create transition for state ( handler , cas webflow constants transition id gateway , cas webflow constants state id gateway services mgmt check ) ; }


sets the primary callback to be executed when this action is invoked this builder will throw an { @ link illegal state exception } if one of the build methods is called without providing this callback

public b on action ( consumer < c > action ) { action callback = action ; return self ( ) ; }


returns a custom { @ link patch transition } with the given value added to { @ link test configuration test options # test filter }

private static patch transition new patch transition ( final string value ) { return new patch transition ( ) { @ override public immutable set < class < ? extends fragment options > > requires option fragments ( ) { return immutable set of ( test configuration test options class ) ; } @ override public build options patch ( build options view options , event handler event handler ) { build options view to options = options clone ( ) ; test configuration test options base options = to options get ( test configuration test options class ) ; base options test filter = null to empty ( base options test filter ) + value ; return to options underlying ( ) ; } } ; }


removes the given fid file from the application note : this does not delete the file , it only removes it from the applications list of knows fid files

public void remove user file ( fid file fid file ) { load fid files ( ) ; fid files remove ( fid file ) ; save to preferences ( ) ; notify listeners ( ) ; }


in this scenario , we make sure that if a state update happens in the background followed by a second state update in the background before the first can commit on the main thread , that we still properly diff at mount time and don ' t unmount and remount and mount specs with @ should update ( on mount = true )

public void layout diffing multiple state updates in parallel with should update false mount content is not remounted ( ) { final simple state update emulator spec caller state updater = new simple state update emulator spec caller ( ) ; final array list < lifecycle step > operations = new array list < > ( ) ; final object first object for should update = new object ( ) ; m litho view rule set root ( create root component with state updater ( m litho view rule get context ( ) , first object for should update , operations , state updater ) ) set size px ( 100 , 100 ) measure ( ) layout ( ) attach to window ( ) ; assert that ( operations ) described as ( " test setup , there should be an initial mount " ) contains exactly ( lifecycle step on mount ) ; operations clear ( ) ; / / do two state updates sequentially without draining the main thread queue state updater increment async ( ) ; m background layout looper rule run to end of tasks sync ( ) ; state updater increment async ( ) ; m background layout looper rule run to end of tasks sync ( ) ; / / now drain the main thread queue and mount the result shadow looper idle main looper ( ) ; m litho view rule layout ( ) ; assert that ( operations ) is empty ( ) ; }


sets the < code > date time < code > property

public mixed properties and additional properties class date time ( date date time ) { this date time = date time ; return this ; }


creates a datetime from the millis since epoch then translates the date into the given timezone

public static zoned date time as date time ( long millis , zone id id ) { return zoned date time of instant ( instant of epoch milli ( millis ) , id ) ; }


add all of the elements in the given collection to this list

public boolean add all ( collection < ? extends e > c ) { iterator < ? extends e > i = c iterator ( ) ; boolean changed = false ; while ( i has next ( ) ) { boolean ret = add ( i next ( ) ) ; if ( ! changed ) { changed = ret ; } } return changed ; }


public map < string , object > get params ( ) { return params ; }


undefine the specified rule from this { @ link grammar } instance the instance { @ code r } is removed from { @ link # rules } and { @ link # index to rule } this method updates the { @ link rule # index } field for all rules defined after { @ code r } , and decrements { @ link # rule number } in preparation for adding new rules this method does nothing if the current { @ link grammar } does not contain the instance { @ code r } at index { @ code r index } in { @ link # index to rule }

public boolean undefine rule ( rule r ) { if ( r index < 0 | | r index > = index to rule size ( ) | | index to rule get ( r index ) ! = r ) { return false ; } assert rules get ( r name ) = = r ; rules remove ( r name ) ; index to rule remove ( r index ) ; for ( int i = r index ; i < index to rule size ( ) ; i + + ) { assert index to rule get ( i ) index = = i + 1 ; index to rule get ( i ) index - - ; } rule number - - ; return true ; } / / public int get num rules ( ) { / / int n = rules size ( ) ; / / list < grammar > imports = get all imported grammars ( ) ; / / if ( imports ! = null ) { / / for ( grammar g : imports ) n + = g get num rules ( ) ; / / } / / return n ; / / }


public map < string , integer > get map integer ( ) { return map integer ; }


return the engine supplier that will be used to instantiate the { @ link script engine }

supplier < script engine > get engine supplier ( ) ;


public int get total reduces ( ) { return datum get total reduces ( ) ; }


this method returns the token types supported by this authentication handler

public collection < string > get token types ( ) { return types ; }


allow a ipc response to be postponed instead of sent immediately after the handler returns from the proxy method the intended use case is freeing up the handler thread when the response is known , but an expensive pre - condition must be satisfied before it ' s sent to the client

public final void postpone response ( ) { int count = response wait count increment and get ( ) ; assert count > 0 : " response has already been sent " ; } @ interface stability unstable @ interface audience limited private ( { " hdfs " }


fills a triangle with vertices at x 1 , y 1 and x 2 , y 2 and x 3 , y 3 using the current color

public void fill triangle ( int x 1 , int y 1 , int x 2 , int y 2 , int x 3 , int y 3 ) { triangle ( x 1 , y 1 , x 2 , y 2 , x 3 , y 3 , draw type fill ) ; }


to test enum parameters to test enum parameters

public api response < void > test enum parameters with http info ( list < string > enum header string array , string enum header string , list < string > enum query string array , string enum query string , integer enum query integer , double enum query double , list < string > enum form string array , string enum form string ) throws api exception { okhttp 3 call local var call = test enum parameters validate before call ( enum header string array , enum header string , enum query string array , enum query string , enum query integer , enum query double , enum form string array , enum form string , null ) ; return local var api client execute ( local var call ) ; }


resets the position of the standalone fallback clock

public void reset position ( long position us ) { standalone clock reset position ( position us ) ; }


usage counting service : it will count whether the limination check funtion will be open

private void insert or update usage ( string group , string tenant , counter mode counter mode , boolean has tenant ) { try { capacity service insert and update cluster usage ( counter mode , true ) ; if ( has tenant ) { capacity service insert and update tenant usage ( counter mode , tenant , true ) ; } else { capacity service insert and update group usage ( counter mode , group , true ) ; } } catch ( exception e ) { logger error ( " [ capacity management ] insert or update usage " , e ) ; } }


returns a new { @ link multi search processor }

multi search processor new search processor ( ) ;


returns a view containing the result of applying { @ code function } to each element of { @ code from iterable } the returned iterable ' s iterator supports { @ code remove ( ) } if { @ code from iterable } ' s iterator does after a successful { @ code remove ( ) } call , { @ code from iterable } no longer contains the corresponding element if the input { @ code iterable } is known to be a { @ code list } or other { @ code collection } , consider { @ link lists # transform } and { @ link collections 2 # transform } < b > { @ code stream } equivalent : < b > { @ link stream # map }

public static < f , t > iterable < t > transform ( final iterable < f > from iterable , final function < ? super f , ? extends t > function ) { check not null ( from iterable ) ; check not null ( function ) ; return new fluent iterable < t > ( ) { @ override public iterator < t > iterator ( ) { return iterators transform ( from iterable iterator ( ) , function ) ; } } ; }


check if this instruction has strange references we shouldn ' t mess with

private boolean has strange references ( instruction instr ) { if ( instr get flow override ( ) ! = flow override none ) { return true ; } / / should only have a call , and maybe some data references from param refs boolean had call = false ; reference [ ] references from = instr get references from ( ) ; for ( reference reference : references from ) { ref type reference type = reference get reference type ( ) ; if ( had call = = false & & reference type is call ( ) ) { had call = true ; continue ; } if ( reference type is data ( ) ) { continue ; } return true ; } boolean has indirect = false ; for ( int i = 0 ; i < references from length ; i + + ) { if ( references from [ i ] get reference type ( ) is indirect ( ) ) { has indirect = true ; } } if ( has indirect ) { return true ; } / / there must be another way to get to any instruction below this instruction next instr = instr get next ( ) ; if ( next instr = = null ) { return false ; } if ( ! instr get fall through ( ) equals ( next instr get min address ( ) ) ) { return false ; } reference iterator reference iterator to = next instr get reference iterator to ( ) ; while ( reference iterator to has next ( ) ) { reference reference = reference iterator to next ( ) ; / / found a reference other than this one if ( reference get from address ( ) ! = instr get min address ( ) ) { return false ; } } return true ; }


create the actual resource inside the application submission context info to be submitted to the rm from the information provided by the user

private static resource create app submission context resource ( application submission context info new app , configuration conf ) throws bad request exception { if ( new app get resource ( ) getv cores ( ) > conf get int ( yarn configuration rm scheduler maximum allocation vcores , yarn configuration default rm scheduler maximum allocation vcores ) ) { string msg = " requested more cores than configured max " ; throw new bad request exception ( msg ) ; } if ( new app get resource ( ) get memory size ( ) > conf get int ( yarn configuration rm scheduler maximum allocation mb , yarn configuration default rm scheduler maximum allocation mb ) ) { string msg = " requested more memory than configured max " ; throw new bad request exception ( msg ) ; } resource r = resource new instance ( new app get resource ( ) get memory size ( ) , new app get resource ( ) getv cores ( ) ) ; return r ; }


return the underlying { @ link javax cache annotation cache resolver } that this instance is using

protected javax cache annotation cache resolver get target ( ) { return this target ; }


creates a new bit mapped memory block ( a bit mapped block is a block where each byte value is either 1 or 0 and the value is taken from a bit in a byte at some other address in memory )

public static memory block create bit mapped block ( program program , string name , address start , address base , int length , string comment , string source , boolean r , boolean w , boolean x , boolean overlay , message log log ) { memory memory = program get memory ( ) ; try { memory block block = memory create bit mapped block ( name , start , base , length , overlay ) ; set block attributes ( block , comment , source , r , w , x ) ; adjust fragment ( program , start , name ) ; return block ; } catch ( lock exception e ) { log append msg ( " failed to create ' " + name + " ' bit mapped memory block : exclusive lock / checkout required " ) ; } catch ( exception e ) { log append msg ( " failed to create ' " + name + " ' mapped memory block : " + e get message ( ) ) ; } return null ; }


add to this collection a { @ link header } with the given key and value

headers add list ( string key , list < ? > value , schema schema ) ;


determines the addresses where one program initialized memory and the other didn ' t

address set get initialization differs address set ( address set view addrs ) { address set in common = pgm mem comp get addresses in common ( ) ; address set same type = pgm mem comp get same mem type addresses in common ( ) ; address set init differs = in common subtract ( same type ) ; if ( addrs ! = null ) { init differs = init differs intersect ( addrs ) ; } return init differs ; }


remove all interface http data from virtual file storage from clean list for all requests


public result get result ( ) { return result ; }


create a { @ link layout spec model } from the given { @ link type element } and an optional { @ link dependency injection helper }

public layout spec model create ( elements elements , types types , type element element , messager messager , enum set < run mode > run mode , @ nullable dependency injection helper dependency injection helper , @ nullable inter stage store inter stage store ) { return new layout spec model ( element get qualified name ( ) to string ( ) , element get annotation ( layout spec class ) value ( ) , delegate method extractor get delegate methods ( element , m layout spec delegate method annotations , inter stage input annotations , immutable list < class < ? extends annotation > > of ( should update class ) , messager ) , event method extractor get on event methods ( elements , element , inter stage input annotations , messager , run mode ) , trigger method extractor get on trigger methods ( elements , element , inter stage input annotations , messager , run mode ) , working ranges method extractor get register method ( element , inter stage input annotations , messager ) , working ranges method extractor get ranges methods ( elements , element , inter stage input annotations , messager ) , update state method extractor get on update state methods ( element , inter stage input annotations , messager ) , update state method extractor get on update state with transition methods ( element , inter stage input annotations , messager ) , inter stage store = = null ? immutable list of ( ) : cached prop name extractor get cached prop names ( inter stage store , element get qualified name ( ) ) , immutable list copy of ( prop defaults extractor get prop defaults ( element ) ) , event declarations extractor get event declarations ( elements , element , layout spec class , run mode ) , annotation extractor extract valid annotations ( element ) , tag extractor extract tags from spec class ( types , element , run mode ) , javadoc extractor get class javadoc ( elements , element ) , javadoc extractor get prop javadocs ( elements , element ) , element get annotation ( layout spec class ) is public ( ) , dependency injection helper , element get annotation ( layout spec class ) is pure render ( ) , spec element type determinator determine ( element ) , element , m layout spec generator , immutable list copy of ( type variables extractor get type variables ( element ) ) , fields extractor extract fields ( element ) , element get annotation ( layout spec class ) simple name delegate ( ) ) ; }


public string get small camel ( ) { return small camel ; }


block until all pending requests from the given node have finished

public boolean await pending requests ( node node , timer timer ) { while ( has pending requests ( node ) & & timer not expired ( ) ) { poll ( timer ) ; } return ! has pending requests ( node ) ; }


sets the font size and color of the given text by wrapping it in & lt ; font & gt ; tags

public static string set font ( string text , color color , int pt size ) { string rgb = to hex string ( color ) ; int start = 0 ; if ( string utilities starts with ignore case ( text , html ) ) { start = html length ( ) ; } string builder buffy = new string builder ( text ) ; buffy insert ( start , " < span style = \ " font - size : " + pt size + " pt ; color : " + rgb + " \ " > " ) ; int end = buffy length ( ) ; if ( string utilities ends with ignore case ( text , html close ) ) { end = end - html close length ( ) ; } buffy insert ( end , " < / span > " ) ; return buffy to string ( ) ; }


this implementation returns a uri for the underlying file

public uri get u r i ( ) throws i o exception { return this path to uri ( ) ; }


set path bytes for this entity ( default = { @ link # empty name } )

public builder path ( byte [ ] path ) { this path = null = = path ? null : arrays copy of ( path , path length ) ; return this ; }


constructs an appropriate connector based on the url

public static cluster connector get cluster ( uri cluster u r i , configuration conf ) throws i o exception , u r i syntax exception { log debug ( " cluster uri : { } " , cluster u r i ) ; log debug ( " scheme : { } " , cluster u r i get scheme ( ) ) ; if ( cluster u r i get scheme ( ) starts with ( " file " ) ) { log debug ( " creating a json node connector " ) ; return new json node connector ( cluster u r i to u r l ( ) ) ; } else { log debug ( " creating name node connector " ) ; return new d b name node connector ( cluster u r i , conf ) ; } }


returns the default registry that loads providers via the java service loader mechanism

public static synchronized name resolver registry get default registry ( ) { if ( instance = = null ) { list < name resolver provider > provider list = service providers load all ( name resolver provider class , get hard coded classes ( ) , name resolver provider class get class loader ( ) , new name resolver priority accessor ( ) ) ; if ( provider list is empty ( ) ) { logger warning ( " no name resolver providers found via service loader , including for dns this " + " is probably due to a broken build if using pro guard , check your configuration " ) ; } instance = new name resolver registry ( ) ; for ( name resolver provider provider : provider list ) { logger fine ( " service loader found " + provider ) ; if ( provider is available ( ) ) { instance add provider ( provider ) ; } } instance refresh providers ( ) ; } return instance ; }


sets the aliases that will be associated with the index when it gets created

public create index request builder set aliases ( string source ) { request aliases ( source ) ; return this ; }


set the template used for method entry log messages this template can contain any of the following placeholders : { @ code $ [ target class name ] } { @ code $ [ target class short name ] } { @ code $ [ argument types ] } { @ code $ [ arguments ] }

public void set enter message ( string enter message ) throws illegal argument exception { assert has text ( enter message , " enter message must not be empty " ) ; check for invalid placeholders ( enter message ) ; assert does not contain ( enter message , placeholder return value , " enter message cannot contain placeholder " + placeholder return value ) ; assert does not contain ( enter message , placeholder exception , " enter message cannot contain placeholder " + placeholder exception ) ; assert does not contain ( enter message , placeholder invocation time , " enter message cannot contain placeholder " + placeholder invocation time ) ; this enter message = enter message ; }


left - multiplies the vector by the given matrix , assuming the fourth ( w ) component of the vector is 1

public vector 3 mul ( final matrix 4 matrix ) { final float l mat [ ] = matrix val ; return this set ( x * l mat [ matrix 4 m00 ] + y * l mat [ matrix 4 m01 ] + z * l mat [ matrix 4 m02 ] + l mat [ matrix 4 m03 ] , x * l mat [ matrix 4 m10 ] + y * l mat [ matrix 4 m11 ] + z * l mat [ matrix 4 m12 ] + l mat [ matrix 4 m13 ] , x * l mat [ matrix 4 m20 ] + y * l mat [ matrix 4 m21 ] + z * l mat [ matrix 4 m22 ] + l mat [ matrix 4 m23 ] ) ; }


get the target of the link if a merge link then it returned as " , " separated uri list

path get target link ( ) { string builder result = new string builder ( target dir link list [ 0 ] to string ( ) ) ; / / if merge link , use " , " as separator between the merged u r is for ( int i = 1 ; i < target dir link list length ; + + i ) { result append ( ' , ' ) append ( target dir link list [ i ] to string ( ) ) ; } return new path ( result to string ( ) ) ; }


deserializes the key and namespace into a { @ link tuple 2 }

public static < k , n > tuple 2 < k , n > deserialize key and namespace ( byte [ ] serialized key and namespace , type serializer < k > key serializer , type serializer < n > namespace serializer ) throws i o exception { data input deserializer dis = new data input deserializer ( serialized key and namespace , 0 , serialized key and namespace length ) ; try { k key = key serializer deserialize ( dis ) ; byte magic number = dis read byte ( ) ; if ( magic number ! = magic number ) { throw new i o exception ( " unexpected magic number " + magic number + " " ) ; } n namespace = namespace serializer deserialize ( dis ) ; if ( dis available ( ) > 0 ) { throw new i o exception ( " unconsumed bytes in the serialized key and namespace " ) ; } return new tuple 2 < > ( key , namespace ) ; } catch ( i o exception e ) { throw new i o exception ( " unable to deserialize key " + " and namespace this indicates a mismatch in the key / namespace " + " serializers used by the kv state instance and this access " , e ) ; } }


returns the number of top docs to retrieve

final int num hits ( ) { return num hits ; }


public map < string , map < string , string > > get map map of string ( ) { return map map of string ; }


format internet address : java ' s default doesn ' t include everything useful

private static string format address ( interface address interface address ) throws i o exception { string builder sb = new string builder ( ) ; inet address address = interface address get address ( ) ; if ( address instanceof inet 6 address ) { sb append ( " inet 6 " ) ; sb append ( network address format ( address ) ) ; sb append ( " prefixlen : " ) ; sb append ( interface address get network prefix length ( ) ) ; } else { sb append ( " inet " ) ; sb append ( network address format ( address ) ) ; int netmask = 0x f f f f f f f f < < ( 32 - interface address get network prefix length ( ) ) ; sb append ( " netmask : " ) append ( network address format ( inet address get by address ( new byte [ ] { ( byte ) ( netmask > > > 24 ) , ( byte ) ( netmask > > > 16 & 0x f f ) , ( byte ) ( netmask > > > 8 & 0x f f ) , ( byte ) ( netmask & 0x f f ) } ) ) ) ; inet address broadcast = interface address get broadcast ( ) ; if ( broadcast ! = null ) { sb append ( " broadcast : " ) append ( network address format ( broadcast ) ) ; } } if ( address is loopback address ( ) ) { sb append ( " scope : host " ) ; } else if ( address is link local address ( ) ) { sb append ( " scope : link " ) ; } else if ( address is site local address ( ) ) { sb append ( " scope : site " ) ; } return sb to string ( ) ; }


creates a new { @ link job } with no particular { @ link cluster } and given { @ link configuration } and { @ link job status } a cluster will be created from the conf parameter only when it ' s needed the < code > job < code > makes a copy of the < code > configuration < code > so that any necessary internal modifications do not reflect on the incoming parameter

public static job get instance ( job status status , configuration conf ) throws i o exception { return new job ( status , new job conf ( conf ) ) ; }


public map < string , integer > get map integer ( ) { return map integer ; }


returns the enum values as a list of strings for validation

static iterable < string > get values ( ) { return iterables transform ( immutable list copy of ( values ( ) ) , functions to string function ( ) ) ; }


tests if the specified key - value pair has been cached in open s s l - to - java cache

static boolean is o 2 j cached ( string key , string protocol , string value ) { map < string , string > p 2j = o 2j get ( key ) ; if ( p 2j = = null ) { return false ; } else { return value equals ( p 2j get ( protocol ) ) ; } }


returns an iterator for the entries in the map remove is supported if { @ link collections # allocate iterators } is false , the same iterator instance is returned each time this method is called use the { @ link entries } constructor for nested or multithreaded iteration

public entries < v > entries ( ) { if ( collections allocate iterators ) return new entries ( this ) ; if ( entries 1 = = null ) { entries 1 = new entries ( this ) ; entries 2 = new entries ( this ) ; } if ( ! entries 1 valid ) { entries 1 reset ( ) ; entries 1 valid = true ; entries 2 valid = false ; return entries 1 ; } entries 2 reset ( ) ; entries 2 valid = true ; entries 1 valid = false ; return entries 2 ; }


public boolean is key pressed ( int key ) ;


read sasl message and negotiated cipher option from server

public static sasl response with negotiated cipher option read sasl message and negotiated cipher option ( input stream in ) throws i o exception { data transfer encryptor message proto proto = data transfer encryptor message proto parse from ( vint prefixed ( in ) ) ; if ( proto get status ( ) = = data transfer encryptor status error unknown key ) { throw new invalid encryption key exception ( proto get message ( ) ) ; } else if ( proto get status ( ) = = data transfer encryptor status error ) { throw new i o exception ( proto get message ( ) ) ; } else { byte [ ] response = proto get payload ( ) to byte array ( ) ; list < cipher option > options = p b helper client convert cipher option protos ( proto get cipher option list ( ) ) ; cipher option option = null ; if ( options ! = null & & ! options is empty ( ) ) { option = options get ( 0 ) ; } return new sasl response with negotiated cipher option ( response , option ) ; } }


get the launcher artifact for a java binary , creating the necessary actions for it

pair < artifact , artifact > get launcher ( final rule context rule context , final java common common , deploy archive builder deploy archive builder , deploy archive builder unstripped deploy archive builder , builder runfiles builder , list < string > jvm flags , java target attributes builder attributes builder , boolean should strip , cc toolchain provider cc toolchain , feature configuration feature configuration ) throws interrupted exception , rule error exception ;


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


returns the { @ link id strategy } that should be used for turning { @ link hudson security group details # get name ( ) } into an id note : mostly this should be the same as { @ link # get user id strategy ( ) } but some security realms may have legitimate reasons for a different strategy

public id strategy get group id strategy ( ) { return get user id strategy ( ) ; }


returns a { @ link job vertex i d } to vertex name mapping for the given graph

private map < job vertex i d , string > remember ids ( job graph job graph ) { final map < job vertex i d , string > ids = new hash map < > ( ) ; for ( job vertex vertex : job graph get vertices ( ) ) { ids put ( vertex get i d ( ) , vertex get name ( ) ) ; } return ids ; }


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


registers a catalog function by also considering temporary catalog functions

public void register catalog function ( unresolved identifier unresolved identifier , class < ? extends user defined function > function class , boolean ignore if exists ) { final object identifier identifier = catalog manager qualify identifier ( unresolved identifier ) ; final object identifier normalized identifier = function identifier normalize object identifier ( identifier ) ; try { user defined function helper validate class ( function class ) ; } catch ( throwable t ) { throw new validation exception ( string format ( " could not register catalog function ' % s ' due to implementation errors " , identifier as summary string ( ) ) , t ) ; } final catalog catalog = catalog manager get catalog ( normalized identifier get catalog name ( ) ) or else throw ( illegal state exception : : new ) ; final object path path = identifier to object path ( ) ; / / we force users to deal with temporary catalog functions first if ( temp catalog functions contains key ( normalized identifier ) ) { if ( ignore if exists ) { return ; } throw new validation exception ( string format ( " could not register catalog function a temporary function ' % s ' does already exist " + " please drop the temporary function first " , identifier as summary string ( ) ) ) ; } if ( catalog function exists ( path ) ) { if ( ignore if exists ) { return ; } throw new validation exception ( string format ( " could not register catalog function a function ' % s ' does already exist " , identifier as summary string ( ) ) ) ; } final catalog function catalog function = new catalog function impl ( function class get name ( ) , function language java ) ; try { catalog create function ( path , catalog function , ignore if exists ) ; } catch ( throwable t ) { throw new table exception ( string format ( " could not register catalog function ' % s ' " , identifier as summary string ( ) ) , t ) ; } }


generate a partial x path expression that matches an element whose specified attribute contains the given css word so to match & lt ; div class = ' foo bar ' & gt ; you would say " div [ " + containing word ( " class " , " foo " ) + " ] " private map < string , object > to json ( ) { map < string , object > as json = new hash map < > ( ) ; as json put ( " using " , " link text " ) ; as json put ( " value " , link text ) ; return collections unmodifiable map ( as json ) ; }

private string containing word ( string attribute , string word ) { return " contains ( concat ( ' ' , normalize - space ( @ " + attribute + " ) , ' ' ) , ' " + word + " ' ) " ; }


set the { @ code name } to { @ code value } this will remove all previous values associated with { @ code name }

t set boolean ( k name , boolean value ) ;


specify from which offsets the kafka source should start consume from by providing an { @ link offsets initializer } the following { @ link offsets initializer } s are commonly used and provided out of the box users can also implement their own { @ link offsets initializer } for custom behaviors { @ link offsets initializer # earliest ( ) } - starting from the earliest offsets this is also the default { @ link offsets initializer } of the kafka source for starting offsets { @ link offsets initializer # latest ( ) } - starting from the latest offsets { @ link offsets initializer # committed offsets ( ) } - starting from the committed offsets of the consumer group { @ link offsets initializer # committed offsets ( org apache kafka clients consumer offset reset strategy ) } - starting from the committed offsets of the consumer group if there is no committed offsets , starting from the offsets specified by the { @ link org apache kafka clients consumer offset reset strategy offset reset strategy } { @ link offsets initializer # offsets ( map ) } - starting from the specified offsets for each partition { @ link offsets initializer # timestamp ( long ) } - starting from the specified timestamp for each partition note that the guarantee here is that all the records in kafka whose { @ link org apache kafka clients consumer consumer record # timestamp ( ) } is greater than the given starting timestamp will be consumed however , it is possible that some consumer records whose timestamp is smaller than the given starting timestamp are also consumed

public kafka source builder < out > set starting offsets ( offsets initializer starting offsets initializer ) { this starting offsets initializer = starting offsets initializer ; return this ; }


unless the concurrent build option is enabled , polling and build should be mutually exclusive to avoid allocating unnecessary workspaces

public void polling and build exclusion ( ) throws exception { final one shot event sync = new one shot event ( ) ; final free style project p = j create free style project ( ) ; free style build b 1 = j build and assert success ( p ) ; p set scm ( new null s c m ( ) { @ override public boolean poll changes ( abstract project project , launcher launcher , file path workspace , task listener listener ) { try { sync block ( ) ; } catch ( interrupted exception e ) { e print stack trace ( ) ; } return true ; }


parses bodies of the kind < code > { " fieldname 1 " : { " origin " : " some value " , " scale " : " some value " } , " multi value mode " : " min " } < code >

public dfb from x content ( x content parser parser ) throws i o exception , parsing exception { string current field name ; x content parser token token ; multi value mode multi value mode = decay function builder default multi value mode ; string field name = null ; bytes reference function bytes = null ; while ( ( token = parser next token ( ) ) = = x content parser token field name ) { current field name = parser current name ( ) ; token = parser next token ( ) ; if ( token = = x content parser token start object ) { field name = current field name ; x content builder builder = x content factory json builder ( ) ; builder copy current structure ( parser ) ; function bytes = bytes reference bytes ( builder ) ; } else if ( multi value mode match ( current field name , parser get deprecation handler ( ) ) ) { multi value mode = multi value mode from string ( parser text ( ) ) ; } else { throw new parsing exception ( parser get token location ( ) , " malformed score function score parameters " ) ; } } if ( field name = = null | | function bytes = = null ) { throw new parsing exception ( parser get token location ( ) , " malformed score function score parameters " ) ; } dfb function builder = create from bytes apply ( field name , function bytes ) ; function builder set multi value mode ( multi value mode ) ; return function builder ; }


set whether the xslt transformer may add additional whitespace when outputting the result tree default is { @ code true } ( on ) ; set this to { @ code false } ( off ) to not specify an " indent " key , leaving the choice up to the stylesheet

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


should only be called by one thread , and only after all accesses to the db happened

public void dispose ( ) { if ( this disposed ) { return ; } super dispose ( ) ; / / this call will block until all clients that still acquire access to the rocks d b instance / / have released it , / / so that we cannot release the native resources while clients are still working with it in / / parallel rocks d b resource guard close ( ) ; / / important : null reference to signal potential async checkpoint workers that the db was / / disposed , as / / working on the disposed object results in segfaults if ( db ! = null ) { i o utils close quietly ( write batch wrapper ) ; / / metric collection occurs on a background thread when this method returns / / it is guaranteed that thr rocks d b reference has been invalidated / / and no more metric collection will be attempted against the database if ( native metric monitor ! = null ) { native metric monitor close ( ) ; } list < column family options > column family options = new array list < > ( kv state information values ( ) size ( ) ) ; / / rocks d b ' s native memory management requires that * all * c fs ( including default ) are / / closed before the / / db is closed see : / / https : / / github com / facebook / rocksdb / wiki / rocks java - basics # opening - a - database - with - column - families / / start with default cf rocks d b operation utils add column family options to close later ( column family options , default column family ) ; i o utils close quietly ( default column family ) ; / / continue with the ones created by flink for ( rocks db kv state info kv state info : kv state information values ( ) ) { rocks d b operation utils add column family options to close later ( column family options , kv state info column family handle ) ; i o utils close quietly ( kv state info column family handle ) ; } / / and finally close the db instance i o utils close quietly ( db ) ; column family options for each ( i o utils : : close quietly ) ; i o utils close quietly ( options container ) ; ttl compact filters manager dispose and clear registered compaction factories ( ) ; kv state information clear ( ) ; clean instance base path ( ) ; } this disposed = true ; }


schedules a task that must happen during app startup in a blocking fashion

public @ non null app startup add blocking ( @ non null string name , @ non null runnable task ) { blocking add ( new task ( name , task ) ) ; return this ; }


returns a generic iso datetime parser where the date is mandatory and the time is optional the returned formatter can only be used for parsing , printing is unsupported this parser can parse zoned datetimes the parser is strict by default , thus time string { @ code 24 : 00 } cannot be parsed it accepts formats described by the following syntax : date - opt - time = date - element [ ' t ' [ time - element ] [ offset ] ] date - element = std - date - element | ord - date - element | week - date - element std - date - element = yyyy [ ' - ' mm [ ' - ' dd ] ] ord - date - element = yyyy [ ' - ' ddd ] week - date - element = xxxx ' - w ' ww [ ' - ' e ] time - element = hh [ minute - element ] | [ fraction ] minute - element = ' : ' mm [ second - element ] | [ fraction ] second - element = ' : ' ss [ fraction ] fraction = ( ' ' | ' , ' ) digit +

public static date time formatter date optional time parser ( ) { return constants dotp ; }


one or more labels associated with the endpoint < code > map & lt ; string , string & gt ; labels = 3 ; < code >

boolean contains labels ( java lang string key ) ;


set one or more sources to find cache operations

public void set cache operation sources ( cache operation source cache operation sources ) { this cache interceptor set cache operation sources ( cache operation sources ) ; }


extension point that subclasses can use to add extra bind values for a request invoked before { @ link # do bind ( mutable property values ) } the default implementation is empty

protected void add bind values ( mutable property values mpvs , servlet request request ) { }


creates a new group with the title and avatar

public new group create new group ( final group secret params group secret params , final string title , final optional < byte [ ] > avatar , final group candidate self , final set < group candidate > members , final member role member role , final int disappearing message timer seconds ) { if ( members contains ( self ) ) { throw new illegal argument exception ( " members must not contain self " ) ; } final group operations group operations = for group ( group secret params ) ; group builder group = group new builder ( ) set revision ( 0 ) set public key ( byte string copy from ( group secret params get public params ( ) serialize ( ) ) ) set title ( group operations encrypt title ( title ) ) set disappearing messages timer ( group operations encrypt timer ( disappearing message timer seconds ) ) set access control ( access control new builder ( ) set attributes ( access control access required member ) set members ( access control access required member ) ) ; group add members ( group operations member ( self get profile key credential ( ) get ( ) , member role administrator ) ) ; for ( group candidate credential : members ) { profile key credential profile key credential = credential get profile key credential ( ) or null ( ) ; if ( profile key credential ! = null ) { group add members ( group operations member ( profile key credential , member role ) ) ; } else { group add pending members ( group operations invitee ( credential get uuid ( ) , member role ) ) ; } } return new new group ( group secret params , group build ( ) , avatar ) ; }


set the job detail that this trigger should be associated with

public void set job detail ( job detail job detail ) { this job detail = job detail ; }


delete storeorder { order id } : delete purchase order by id for valid response try integer i ds with value & lt ; 1000 anything above 1000 or nonintegers will generate api errors

default mono < response entity < void > > delete order ( string order id , server web exchange exchange ) { mono < void > result = mono empty ( ) ; exchange get response ( ) set status code ( http status not implemented ) ; return result then ( mono empty ( ) ) ; }


adds an empty handler message to list of pending messages

protected synchronized boolean add handler message at time ( handler wrapper handler , int message , long time ms ) { if ( time ms < = time since boot ms ) { return handler send empty message ( message ) ; } handler messages add ( new handler message data ( time ms , handler , message ) ) ; return true ; }


get the names of all the trees in the program

public string [ ] get tree names ( ) { string [ ] names = new string [ tree map size ( ) ] ; try { record iterator iter = adapter get records ( ) ; int index = 0 ; while ( iter has next ( ) ) { d b record record = iter next ( ) ; names [ index ] = record get string ( tree name col ) ; + + index ; } return names ; } catch ( i o exception e ) { err handler db error ( e ) ; } return new string [ 0 ] ; }


public boolean has status bar ( ) { return has status bar ; }


called to to register a more specific analyzer

static public void claim processor ( string processor name ) { handled processors add ( processor name ) ; }


tries to assign the given slot to the execution the assignment works only if the execution is in state scheduled returns true , if the resource could be assigned

public boolean try assign resource ( final logical slot logical slot ) { assert running in job master main thread ( ) ; check not null ( logical slot ) ; / / only allow to set the assigned resource in state scheduled or created / / note : we also accept resource assignment when being in state created for testing purposes if ( state = = scheduled | | state = = created ) { if ( assigned resource = = null ) { assigned resource = logical slot ; if ( logical slot try assign payload ( this ) ) { / / check for concurrent modification ( e g cancelling call ) if ( ( state = = scheduled | | state = = created ) & & ! task manager location future is done ( ) ) { task manager location future complete ( logical slot get task manager location ( ) ) ; assigned allocation i d = logical slot get allocation id ( ) ; return true ; } else { / / free assigned resource and return false assigned resource = null ; return false ; } } else { assigned resource = null ; return false ; } } else { / / the slot already has another slot assigned return false ; } } else { / / do not allow resource assignment if we are not in state scheduled return false ; } }


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 " ) ; }


protected ssl handler new handler ( byte buf allocator alloc , boolean start tls ) { return new ssl handler ( new engine ( alloc ) , start tls ) ; }


define if a wrapper will be used for indexed ( list , array ) properties or not by default ( only applies to { @ link xml mapper } )

public jackson 2 object mapper builder default use wrapper ( boolean default use wrapper ) { this default use wrapper = default use wrapper ; return this ; }


write a chunk of input to the stream an integer of some length is written first , followed by the data

public void write chunk ( data output output , boolean is byte , i o runner < data output > runner ) throws i o exception { reusable byte out stream dout = is byte ? byte output small : byte output ; / / reset output position dout reset ( ) ; / / write the needed info runner accept ( is byte ? data bytes small : data bytes ) ; int length = dout size ( ) ; / / write length ( either int or byte ) followed by the output bytes if ( ! is byte ) { output write int ( length ) ; } else { if ( length > short max value ) { throw new i o exception ( " byte write length exceeded : " + length + " > " + short max value ) ; } output write short ( length ) ; } output write ( dout get bytes ( ) , 0 , length ) ; }


public byte first ( ) { if ( size = = 0 ) throw new illegal state exception ( " array is empty " ) ; return items [ 0 ] ; }


returns whether or not this drawable rounds as circle

public boolean is circle ( ) { return m is circle ; }


writes the portion of the file header that refers to this instance

public void write header part ( annotated output out ) { throw if not prepared ( ) ; int sz = type ids size ( ) ; int offset = ( sz = = 0 ) ? 0 : get file offset ( ) ; if ( sz > dex format max type idx + 1 ) { throw new dex index overflow exception ( " too many type references : " + sz + " ; max is " + ( dex format max type idx + 1 ) + " \ n " + new main ( ) get too many ids error message ( ) ) ; } if ( out annotates ( ) ) { out annotate ( 4 , " type ids size : " + hex u 4 ( sz ) ) ; out annotate ( 4 , " type ids off : " + hex u 4 ( offset ) ) ; } out write int ( sz ) ; out write int ( offset ) ; }


public void load xml resource ( package pkg , string name ) throws i o exception { string pkg name = pkg get name ( ) ; pkg name = pkg name replace ( ' ' , ' / ' ) ; string resource name = " / " + pkg name + " / " + name ; input stream is = get class ( ) get resource as stream ( resource name ) ; if ( is = = null ) { throw new i o exception ( " could not find resource : " + resource name ) ; } buffered reader br = new buffered reader ( new input stream reader ( is ) ) ; string line = " " ; while ( line ! = null ) { line = br read line ( ) ; if ( line ! = null ) { xml list add ( line ) ; } } br close ( ) ; }


add a { @ link event listener dubbo event listener }

void add event listener ( e listener ) throws null pointer exception , illegal argument exception ;


public void commit created ( ) { increment ( committer commits created , 1 ) ; }


static public scale by action scale by ( float amount x , float amount y ) { return scale by ( amount x , amount y , 0 , null ) ; }


sets a generic answer for the method e g : < pre class = " code " > < code class = " java " > when ( mock some method ( 10 ) ) then answer ( new answer & lt ; integer & gt ; ( ) { public integer answer ( invocation on mock invocation ) throws throwable { return ( integer ) invocation get arguments ( ) [ 0 ] ; } } < code >

ongoing stubbing < t > then answer ( answer < ? > answer ) ;


non - blocking api resource manager services call this to remove an application from the state store this does not block the dispatcher threads there is no notification of completion for this operation

public void remove application ( r m app app ) { application state data app state = application state data new instance ( app get submit time ( ) , app get start time ( ) , app get application submission context ( ) , app get user ( ) , app get caller context ( ) ) ; for ( r m app attempt app attempt : app get app attempts ( ) values ( ) ) { app state attempts put ( app attempt get app attempt id ( ) , null ) ; } get r m state store event handler ( ) handle ( new r m state store remove app event ( app state ) ) ; }


issue a single sql update operation ( such as an insert , update or delete statement ) via a prepared statement , binding the given arguments

int update ( string sql , object [ ] args , int [ ] arg types ) throws data access exception ;


match the expansion state for the drop node and the node to select ( which is the new node that just got added ) select the new node

private void select node ( program node drop node , program node node to select ) { / / apply expansion state of the dropped node to the new node tree match expansion state ( drop node , node to select ) ; / / add the target node to the selection later so / / that the selection shows as being selected ; / / without the invoke later ( ) , the path is not / / rendered as being selected add to selection ( node to select ) ; }


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


iterate over the records using a secondary index sorting occurs on the specified schema column this table must have been constructed with a secondary index on the specified column

public record iterator index iterator ( int column index ) throws i o exception { synchronized ( db ) { index table index table = secondary indexes get ( column index ) ; if ( index table = = null ) { throw new i o exception ( " index required ( " + get name ( ) + " , " + column index + " ) " ) ; } return new key to record iterator ( this , index table key iterator ( ) ) ; } }


delegates ` close ` to the wrapped input stream

public void close ( ) throws i o exception { in close ( ) ; }


enumerate all available parameter names if possible this is an optional operation , primarily for use with { @ link org springframework jdbc core simple simple jdbc insert } and { @ link org springframework jdbc core simple simple jdbc call }

default string [ ] get parameter names ( ) { return null ; }


updates a pet in the store with form data

public void update pet with form ( long pet id , string name , string status , final response listener < string > response listener , final response error listener error listener ) { object post body = null ; / / verify the required parameter ' pet id ' is set if ( pet id = = null ) { volley error error = new volley error ( " missing the required parameter ' pet id ' when calling update pet with form " , new api exception ( 400 , " missing the required parameter ' pet id ' when calling update pet with form " ) ) ; } / / create path and map variables string path = " / pet / { pet id } " replace all ( " \ \ { format \ \ } " , " json " ) replace all ( " \ \ { " + " pet id " + " \ \ } " , api invoker escape string ( pet id to string ( ) ) ) ; / / query params list < pair > query params = new array list < pair > ( ) ; / / header params map < string , string > header params = new hash map < string , string > ( ) ; / / form params map < string , string > form params = new hash map < string , string > ( ) ; string [ ] content types = { " application / x - www - form - urlencoded " } ; string content type = content types length > 0 ? content types [ 0 ] : " application / json " ; if ( content type starts with ( " multipart / form - data " ) ) { / / file uploading multipart entity builder local var builder = multipart entity builder create ( ) ; if ( name ! = null ) { local var builder add text body ( " name " , api invoker parameter to string ( name ) , api invoker text plain utf8 ) ; } if ( status ! = null ) { local var builder add text body ( " status " , api invoker parameter to string ( status ) , api invoker text plain utf8 ) ; } http entity http entity = local var builder build ( ) ; post body = http entity ; } else { / / normal form params form params put ( " name " , api invoker parameter to string ( name ) ) ; form params put ( " status " , api invoker parameter to string ( status ) ) ; } string [ ] auth names = new string [ ] { " petstore auth " } ; try { api invoker invoke a p i ( base path , path , " post " , query params , post body , header params , form params , content type , auth names , new response listener < string > ( ) { @ override public void on response ( string local var response ) { response listener on response ( local var response ) ; } } , new response error listener ( ) { @ override public void on error response ( volley error error ) { error listener on error response ( error ) ; } } ) ; } catch ( api exception ex ) { error listener on error response ( new volley error ( ex ) ) ; } }


copies special metadata hold by this instance to the provided instance

void copy meta ( abstract binary memcache message dst ) { dst magic = magic ; dst opcode = opcode ; dst key length = key length ; dst extras length = extras length ; dst data type = data type ; dst total body length = total body length ; dst opaque = opaque ; dst cas = cas ; }


return true if this dog object is equal to o

public boolean equals ( object o ) { if ( this = = o ) { return true ; } if ( o = = null | | get class ( ) ! = o get class ( ) ) { return false ; } dog dog = ( dog ) o ; return objects equals ( this breed , dog breed ) & & super equals ( o ) ; }


if this recipient is missing crucial data , this will return a populated copy otherwise it returns itself

public @ non null recipient resolve ( ) { if ( resolving ) { return live ( ) resolve ( ) ; } else { return this ; } }


returns the record number type that is pointed to

public record number get parent record number ( ) { return parent record number ; }


dumps all of the threads ' current information , including synchronization , to an output stream

public void dump ( output stream out ) { dump ( true , true , out ) ; }


public static string to hex ( byte [ ] ba ) { byte array output stream baos = new byte array output stream ( ) ; string str hex = " " ; try { print stream ps = new print stream ( baos , false , " utf - 8 " ) ; for ( byte b : ba ) { ps printf ( " % x " , b ) ; } str hex = baos to string ( " utf - 8 " ) ; } catch ( unsupported encoding exception e ) { } return str hex ; }


sends kill signal to process , forcefully terminating the process

public static void kill process ( string pid ) { maybe signal process ( pid , sigkill , sigkill str , false ) ; }


quota callback invoked to determine the quota metric tags to be applied for a request quota limits are associated with quota metrics and all clients which use the same metric tags share the quota limit

map < string , string > quota metric tags ( client quota type quota type , kafka principal principal , string client id ) ;


the src files is on the local disk add it to filesystem at the given dst name , removing the source afterwards

public void move from local file ( path [ ] srcs , path dst ) throws i o exception { copy from local file ( true , true , srcs , dst ) ; }


function to update a reservation to the rm this method is reachable by using { @ link r m w s consts # reservation update }

response update reservation ( reservation update request info res context , http servlet request hsr ) throws authorization exception , i o exception , interrupted exception ;


ensures malformed spans don ' t hang the collector

@ test void skips malformed data ( ) throws exception { rabbit m q collector builder builder = builder ( " decoder exception " ) ; byte [ ] malformed 1 = " [ \ " = ' " get bytes ( utf 8 ) ; / / screwed up json byte [ ] malformed 2 = " malformed " get bytes ( utf 8 ) ; produce spans ( thrift encode list ( spans ) , builder queue ) ; produce spans ( new byte [ 0 ] , builder queue ) ; produce spans ( malformed 1 , builder queue ) ; produce spans ( malformed 2 , builder queue ) ; produce spans ( thrift encode list ( spans ) , builder queue ) ; try ( rabbit m q collector collector = builder build ( ) ) { collector start ( ) ; assert that ( received spans take ( ) ) contains exactly elements of ( spans ) ; / / the only way we could read this , is if the malformed spans were skipped assert that ( received spans take ( ) ) contains exactly elements of ( spans ) ; } assert that ( rabbitmq metrics messages ( ) ) is equal to ( 5 ) ; assert that ( rabbitmq metrics messages dropped ( ) ) is equal to ( 2 ) ; / / only malformed , not empty assert that ( rabbitmq metrics bytes ( ) ) is equal to ( thrift encode list ( spans ) length * 2 + malformed 1 length + malformed 2 length ) ; assert that ( rabbitmq metrics spans ( ) ) is equal to ( spans size ( ) * 2 ) ; assert that ( rabbitmq metrics spans dropped ( ) ) is zero ( ) ; }


convert a z node ephemeral owner to an ephemeral type if extended types are not enabled , void or normal is always returned

public static ephemeral type get ( long ephemeral owner ) { if ( extended ephemeral types enabled ( ) ) { if ( boolean get boolean ( ttl 3 5 3 emulation property ) ) { if ( ephemeral type emulate 3 5 3 get ( ephemeral owner ) = = ephemeral type emulate 3 5 3 ttl ) { return ttl ; } } if ( ( ephemeral owner & extended mask ) = = extended mask ) { long extended feature bit = get extended feature bit ( ephemeral owner ) ; ephemeral type ephemeral type = extended feature map get ( extended feature bit ) ; if ( ephemeral type = = null ) { throw new illegal argument exception ( string format ( " invalid ephemeral owner [ % s ] " , long to hex string ( ephemeral owner ) ) ) ; } return ephemeral type ; } } if ( ephemeral owner = = container ephemeral owner ) { return container ; } return ( ephemeral owner = = 0 ) ? void : normal ; }


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


proceed to declare how to extract the response for example to extract a { @ link response entity } with status , headers , and body : mono & lt ; response entity & lt ; person & gt ; & gt ; entity mono = client get ( ) uri ( " persons 1 " ) accept ( media type application json ) retrieve ( ) to entity ( person class ) ; or if interested only in the body : mono & lt ; person & gt ; entity mono = client get ( ) uri ( " persons 1 " ) accept ( media type application json ) retrieve ( ) body to mono ( person class ) ; by default , 4xx and 5xx responses result in a { @ link web client response exception } to customize error handling , use { @ link response spec # on status ( predicate , function ) on status } handlers


opens an f s data input stream at the indicated path

public f s data input stream open ( path f , int buffer size ) throws i o exception { return open ( f , optional empty ( ) , optional empty ( ) ) ; }