public static < E > DoubleStream  shiftingWindowAveragingDouble ( Stream < E > stream , int rollingFactor , ToDoubleFunction < ? super E > mapper )  { Objects . requireNonNull ( stream ) ; Objects . requireNonNull ( mapper ) ; DoubleStream doubleStream = stream . mapToDouble ( mapper ) ; return shiftingWindowAveragingDouble ( doubleStream , rollingFactor ) ; }

 genera una corriente que se calcula a partir de un flujo provisto después de dos pasos.

 Los primeros pasos asignan este flujo a un <código> DoubleStream  que luego se rueda siguiendo el mismo principio que el<Código> Rollo () </ código> MÉTODO.Estos pasos construyen un <código> Stream & LT; DoubleStream & GT; .

 Luego, el método <código> promedio () </ codigo> se llama en cada <código> DoubleStream  usando un MAPPER, y se devuelve un DoubleStream  DoubleStream  de promedios.

 El flujo resultante tiene el mismo número de elementos que el flujo provisto, menos el tamaño del ancho de la ventana, para preservar la consistencia de cada colección.

 A <CÓDIGO> NULLPOINEXEXCEGO  Se lanzará si el flujo provisto o el Mapper es NULL.


private UInteger ( long value ) throws NumberFormatException { this . value = rangeCheck ( value ) ; }


public void putGrammar  ( DTDGrammar grammar ) { XMLDTDDescription desc = ( XMLDTDDescription ) grammar . getGrammarDescription ( ) ; fGrammars . put ( desc , grammar ) ; }

Pone la gramática especificada en la piscina de gramática y lo asocia a un nombre de elemento raíz (que es que es interno, la falta de generalidad es irrelevante).


@ DELETE @ Path ( "{experimentID}/pages/{pageName}" ) @ ApiOperation ( value = "Remove a page from an experiment" , notes = "Pages can only be added to an experiment with DRAFT, RUNNING, or PAUSED states" ) @ Timed public Response deletePage  ( @ PathParam ( "experimentID" ) @ ApiParam ( value = "Experiment ID" ) final Experiment . ID experimentID , @ PathParam ( "pageName" ) @ ApiParam ( value = "Page name where the experiment will appear" ) final Page . Name pageName , @ HeaderParam ( AUTHORIZATION ) @ ApiParam ( value = EXAMPLE_AUTHORIZATION_HEADER , required = true ) final String authorizationHeader ) { Username userName = authorization . getUser ( authorizationHeader ) ; Experiment experiment = experiments . getExperiment ( experimentID ) ; if ( experiment == null ) { throw new ExperimentNotFoundException ( experimentID ) ; } authorization . checkUserPermissions ( userName , experiment . getApplicationName ( ) , Permission . DELETE ) ; pages . deletePage ( experimentID , pageName , authorization . getUserInfo ( userName ) ) ; return httpHeader . headers ( NO_CONTENT ) . build ( ) ; }

Eliminar la asociación de una página a un experimento.


static int findBestSampleSize  ( int actualWidth , int actualHeight , int desiredWidth , int desiredHeight ) { double wr = ( double ) actualWidth / desiredWidth ; double hr = ( double ) actualHeight / desiredHeight ; double ratio = Math . min ( wr , hr ) ; float n = 1.0f ; while ( ( n * 2 ) <= ratio ) { n *= 2 ; } return ( int ) n ; }

Devuelve el mayor divisor de potencia de dos para su uso en la escalada de un mapa de bits que no resultará en la escala de las dimensiones deseadas.


public CartPaymentInfo addPaymentAmount  ( String id , BigDecimal amount , String refNum , String authCode , boolean isSingleUse , boolean isPresent , boolean replace ) { CartPaymentInfo inf = this . getPaymentInfo ( id , refNum , authCode , amount , replace ) ; if ( isSalesOrder ( ) ) { GenericValue billingAddress = inf . getBillingAddress ( this . getDelegator ( ) ) ; if ( billingAddress != null ) { for ( GenericValue product : ShoppingCart . getItemsProducts ( this . cartLines ) ) { if ( ! ProductWorker . isBillableToAddress ( product , billingAddress ) ) { throw new IllegalArgumentException ( "The billing address is not compatible with ProductGeos rules." ) ; } } } } inf . singleUse = isSingleUse ; inf . isPresent = isPresent ; if ( replace ) { paymentInfo . remove ( inf ) ; } paymentInfo . add ( inf ) ; return inf ; }

Agrega un método de pago / tipo de método de pago


private ArrayList < Long > buildCursorPositionMapping  ( final long [ ] order , final String columnName , final List < ? extends Object > extraData ) { ArrayList < Long > missingIds = new ArrayList < Long > ( ) ; mOrderedPositions = new ArrayList < Integer > ( mCursor . getCount ( ) ) ; mExtraData = new ArrayList < Object > ( ) ; mMapCursorPositions = new HashMap < Long , Integer > ( mCursor . getCount ( ) ) ; final int idPosition = mCursor . getColumnIndex ( columnName ) ; if ( mCursor . moveToFirst ( ) ) { do { mMapCursorPositions . put ( mCursor . getLong ( idPosition ) , mCursor . getPosition ( ) ) ; } while ( mCursor . moveToNext ( ) ) ; for ( int i = 0 ; order != null && i < order . length ; i ++ ) { final long id = order [ i ] ; if ( mMapCursorPositions . containsKey ( id ) ) { mOrderedPositions . add ( mMapCursorPositions . get ( id ) ) ; mMapCursorPositions . remove ( id ) ; if ( extraData != null ) { mExtraData . add ( extraData . get ( i ) ) ; } } else { missingIds . add ( id ) ; } } mCursor . moveToFirst ( ) ; } return missingIds ; }

Esta función llena las posiciones de Mordered con las posiciones del cursor en el orden basado en el pedido aprobado en


public Vector2f addLocal  ( Vector2f vec ) { if ( null == vec ) { logger . warning ( "Provided vector is null, null returned." ) ; return null ; } x += vec . x ; y += vec . y ; return this ; }

<CÓDIGO> ADDLOCAL </ CODE> Agrega un vector provisto a este vector internamente, y devuelve un asa a este vector para que se encadene fácil de las llamadas.Si el vector provisto es nulo, se devuelve NULL.


public static void parse  ( String pathString , Path p ) { int n = pathString . length ( ) ; ParserHelper ph = new ParserHelper ( pathString , 0 ) ; ph . skipWhitespace ( ) ; float lastX = 0 ; float lastY = 0 ; float lastX1 = 0 ; float lastY1 = 0 ; float subPathStartX = 0 ; float subPathStartY = 0 ; char prevCmd = 0 ; while ( ph . pos < n ) { char cmd = pathString . charAt ( ph . pos ) ; switch ( cmd ) { case '-' : case '+' : case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : if ( prevCmd == 'm' || prevCmd == 'M' ) { cmd = ( char ) ( ( ( int ) prevCmd ) - 1 ) ; break ; } else if ( prevCmd == 'c' || prevCmd == 'C' ) { cmd = prevCmd ; break ; } else if ( prevCmd == 'l' || prevCmd == 'L' ) { cmd = prevCmd ; break ; } default : { ph . advance ( ) ; prevCmd = cmd ; } } boolean wasCurve = false ; switch ( cmd ) { case 'M' : case 'm' : { float x = ph . nextFloat ( ) ; float y = ph . nextFloat ( ) ; if ( cmd == 'm' ) { subPathStartX += x ; subPathStartY += y ; p . rMoveTo ( x , y ) ; lastX += x ; lastY += y ; } else { subPathStartX = x ; subPathStartY = y ; p . moveTo ( x , y ) ; lastX = x ; lastY = y ; } break ; } case 'Z' : case 'z' : { p . close ( ) ; p . moveTo ( subPathStartX , subPathStartY ) ; lastX = subPathStartX ; lastY = subPathStartY ; lastX1 = subPathStartX ; lastY1 = subPathStartY ; wasCurve = true ; break ; } case 'L' : case 'l' : { float x = ph . nextFloat ( ) ; float y = ph . nextFloat ( ) ; if ( cmd == 'l' ) { p . rLineTo ( x , y ) ; lastX += x ; lastY += y ; } else { p . lineTo ( x , y ) ; lastX = x ; lastY = y ; } break ; } case 'H' : case 'h' : { float x = ph . nextFloat ( ) ; if ( cmd == 'h' ) { p . rLineTo ( x , 0 ) ; lastX += x ; } else { p . lineTo ( x , lastY ) ; lastX = x ; } break ; } case 'V' : case 'v' : { float y = ph . nextFloat ( ) ; if ( cmd == 'v' ) { p . rLineTo ( 0 , y ) ; lastY += y ; } else { p . lineTo ( lastX , y ) ; lastY = y ; } break ; } case 'C' : case 'c' : { wasCurve = true ; float x1 = ph . nextFloat ( ) ; float y1 = ph . nextFloat ( ) ; float x2 = ph . nextFloat ( ) ; float y2 = ph . nextFloat ( ) ; float x = ph . nextFloat ( ) ; float y = ph . nextFloat ( ) ; if ( cmd == 'c' ) { x1 += lastX ; x2 += lastX ; x += lastX ; y1 += lastY ; y2 += lastY ; y += lastY ; } p . cubicTo ( x1 , y1 , x2 , y2 , x , y ) ; lastX1 = x2 ; lastY1 = y2 ; lastX = x ; lastY = y ; break ; } case 'S' : case 's' : { wasCurve = true ; float x2 = ph . nextFloat ( ) ; float y2 = ph . nextFloat ( ) ; float x = ph . nextFloat ( ) ; float y = ph . nextFloat ( ) ; if ( cmd == 's' ) { x2 += lastX ; x += lastX ; y2 += lastY ; y += lastY ; } float x1 = 2 * lastX - lastX1 ; float y1 = 2 * lastY - lastY1 ; p . cubicTo ( x1 , y1 , x2 , y2 , x , y ) ; lastX1 = x2 ; lastY1 = y2 ; lastX = x ; lastY = y ; break ; } case 'A' : case 'a' : { float rx = ph . nextFloat ( ) ; float ry = ph . nextFloat ( ) ; float theta = ph . nextFloat ( ) ; int largeArc = ( int ) ph . nextFloat ( ) ; int sweepArc = ( int ) ph . nextFloat ( ) ; float x = ph . nextFloat ( ) ; float y = ph . nextFloat ( ) ; drawArc ( p , lastX , lastY , x , y , rx , ry , theta , largeArc , sweepArc ) ; lastX = x ; lastY = y ; break ; } } if ( ! wasCurve ) { lastX1 = lastX ; lastY1 = lastY ; } ph . skipWhitespace ( ) ; } }

Analiza una sola ruta SVG y lo devuelve como un objeto </ code> spath </ code>.Una ruta de ejemplo es <code> M250,150L150.350L350.350Z </ código>, que dibuja un triángulo.


@ Override public void finish  ( ) { for ( Entry < String , FileChannel > entry : fileNameAndStreamCache . entrySet ( ) ) { try { FileChannel channel = entry . getValue ( ) ; if ( null != channel ) { channel . close ( ) ; } } catch ( IOException exception ) { LOGGER . error ( exception , exception . getMessage ( ) ) ; } } }

Este método se utilizará para cerrar todos los flujos actualmente presentes en el caché


@ VisibleForTesting int exactBinarySearch  ( long searchX , int startSearchIndex ) { return approximateBinarySearch ( searchX , startSearchIndex , mData . size ( ) - 1 , true , 0 ) ; }

Busca el índice del valor que es igual o simplemente menor que el valor de la búsqueda x, en el rango de StartSearchIndex al final de la matriz de datos.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Sleep_END_A_TO_SELF  ( String skilltarget ) { return new SM_SYSTEM_MESSAGE ( 1200755 , skilltarget ) ; }


public static int exportName2Percent  ( String format , ViewerBase cViewer , File file , char separator , boolean reportSummarized , ProgressListener progressListener ) throws IOException { int totalLines = 0 ; try { final Classification classification = ClassificationManager . get ( cViewer . getClassName ( ) , true ) ; final String shortName = ( cViewer . getClassName ( ) . toLowerCase ( ) . equals ( "taxonomy" ) ? "Taxon" : cViewer . getClassName ( ) ) ; try ( BufferedWriter w = new BufferedWriter ( new FileWriter ( file ) ) ) { final List < String > names = cViewer . getDocument ( ) . getSampleNames ( ) ; if ( names . size ( ) > 1 ) { w . write ( "#Datasets" ) ; for ( String name : names ) { if ( separator == ',' ) name = name . replaceAll ( "," , "_" ) ; w . write ( separator + " " + name ) ; } w . write ( "\n" ) ; } final NodeSet selected = cViewer . getSelectedNodes ( ) ; progressListener . setSubtask ( shortName + " to counts" ) ; progressListener . setMaximum ( 2 * selected . size ( ) ) ; progressListener . setProgress ( 0 ) ; int [ ] total = new int [ cViewer . getDocument ( ) . getSampleNames ( ) . size ( ) ] ; { final Set < Integer > seen = new HashSet < > ( ) ; for ( Node v = selected . getFirstElement ( ) ; v != null ; v = selected . getNextElement ( v ) ) { final Integer id = ( Integer ) v . getInfo ( ) ; if ( id != null && ! seen . contains ( id ) ) { seen . add ( id ) ; final NodeData data = cViewer . getNodeData ( v ) ; final int [ ] counts = ( reportSummarized || v . getOutDegree ( ) == 0 ? data . getSummarized ( ) : data . getAssigned ( ) ) ; for ( int i = 0 ; i < counts . length ; i ++ ) { total [ i ] += counts [ i ] ; } } progressListener . incrementProgress ( ) ; } } { final Set < Integer > seen = new HashSet < > ( ) ; for ( Node v = selected . getFirstElement ( ) ; v != null ; v = selected . getNextElement ( v ) ) { final Integer id = ( Integer ) v . getInfo ( ) ; if ( id != null && ! seen . contains ( id ) ) { seen . add ( id ) ; final NodeData data = cViewer . getNodeData ( v ) ; final int [ ] counts = ( reportSummarized || v . getOutDegree ( ) == 0 ? data . getSummarized ( ) : data . getAssigned ( ) ) ; final String name = getLabelSource ( shortName , classification , format , v ) ; if ( name != null ) { if ( counts . length == names . size ( ) ) { w . write ( name ) ; for ( int i = 0 ; i < counts . length ; i ++ ) { double value = ( total [ i ] == 0 ? 0 : ( 100.0 * counts [ i ] ) / ( double ) total [ i ] ) ; w . write ( String . format ( "%c%f" , separator , ( float ) value ) ) ; } w . write ( "\n" ) ; totalLines ++ ; } else System . err . println ( "Skipped " + name + ", number of values: " + counts . length ) ; } } progressListener . incrementProgress ( ) ; } } } } catch ( CanceledException canceled ) { System . err . println ( "USER CANCELED" ) ; } return totalLines ; }


public static List < ItemStack > consolidateItemStacks  ( List < ItemStack > inputStacks ) { List < ItemStack > outputStacks = new ArrayList < ItemStack > ( ) ; for ( ItemStack sourceIS : inputStacks ) { boolean bFound = false ; for ( ItemStack destIS : outputStacks ) { if ( destIS != null && sourceIS != null && itemStackIngredientsMatch ( destIS , sourceIS ) ) { bFound = true ; destIS . stackSize += sourceIS . stackSize ; } } if ( ! bFound ) outputStacks . add ( sourceIS . copy ( ) ) ; } return outputStacks ; }

Tome una lista de mochilas y amalgamado donde sea posible. <br>


protected void writeImageDesc  ( ) throws IOException  { out . write ( 0x2c ) ; writeShort ( 0 ) ; writeShort ( 0 ) ; writeShort ( width ) ; writeShort ( height ) ; if ( firstFrame ) { out . write ( 0 ) ; } else { out . write ( 0x80 | 0 | 0 | 0 | palSize ) ; } }


public boolean after  ( Model m ) { for ( String name : filters . keySet ( ) ) { if ( m . getURI ( ) . matches ( name ) ) { Object o = filters . get ( name ) ; try { IFilter f = null ; if ( o instanceof IFilter ) { f = ( IFilter ) o ; } else { f = ( IFilter ) ( Class . forName ( ( String ) o ) . newInstance ( ) ) ; filters . put ( name , f ) ; } if ( ! f . after ( m ) ) { return false ; } } catch ( Exception e ) { log . error ( e . getMessage ( ) , e ) ; filters . remove ( name ) ; } } } Module m1 = floor ( ) ; if ( m1 != null ) { return m1 . after ( m ) ; } return true ; }


public final String removeSizeInfo  ( String label ) { int pos = label . indexOf ( "[" ) ; if ( pos > 0 ) return label . substring ( 0 , pos ) . trim ( ) ; return label ; }

Elimina la última parte de una etiqueta, por ejemplo.E.coli [100 lee] -> e.coli


public static byte [ ] decodeFromFile  ( String filename ) throws java . io . IOException { byte [ ] decodedData = null ; Base64 . InputStream bis = null ; try { java . io . File file = new java . io . File ( filename ) ; byte [ ] buffer = null ; int length = 0 ; int numBytes = 0 ; if ( file . length ( ) > Integer . MAX_VALUE ) { throw new java . io . IOException ( "File is too big for this convenience method (" + file . length ( ) + " bytes)." ) ; } buffer = new byte [ ( int ) file . length ( ) ] ; bis = new Base64 . InputStream ( new java . io . BufferedInputStream ( new java . io . FileInputStream ( file ) ) , Base64 . DECODE ) ; while ( ( numBytes = bis . read ( buffer , length , 4096 ) ) >= 0 ) { length += numBytes ; } decodedData = new byte [ length ] ; System . arraycopy ( buffer , 0 , decodedData , 0 , length ) ; } catch ( java . io . IOException e ) { throw e ; } finally { try { bis . close ( ) ; } catch ( Exception e ) { } } return decodedData ; }

Método de conveniencia para leer un archivo codificado de base64 y decodificarlo.<p> ASO de V 2.3, si hay un error, el método lanzará una java.io.ioException.<b> ¡Esto es nuevo en V2.3! </ b> En versiones anteriores, simplemente regresó FALSO, pero en retrospectiva es una forma bastante pobre de manejarlo. </ p>


public static SpaceIndex createCompoundIndex  ( String [ ] paths , SpaceIndexType indexType , String indexName , boolean unique ) { return createCompoundIndex_Impl ( paths , indexType , indexName , unique ) ; }

Crea un índice de compuesto de espacio desde las rutas especificadas con el tipo de índice especificado.


public static java . util . Date convertToDate  ( String str , boolean isExpiry ) { SimpleDateFormat fmt = new SimpleDateFormat ( "yyyy-MM-dd HH:mm" ) ; java . util . Date dt = null ; try { dt = fmt . parse ( str ) ; } catch ( ParseException ex ) { Calendar cal = Calendar . getInstance ( ) ; if ( isExpiry ) { cal . add ( Calendar . DAY_OF_MONTH , 1 ) ; cal . set ( Calendar . HOUR_OF_DAY , 23 ) ; cal . set ( Calendar . MINUTE , 59 ) ; } else { cal . set ( Calendar . HOUR_OF_DAY , 0 ) ; cal . set ( Calendar . MINUTE , 0 ) ; } dt = cal . getTime ( ) ; } return dt ; }

Función para convertir el objeto de cadena hasta la fecha.Si se devuelve la entrada no válida, se devuelve la fecha actual o el día siguiente (agregado por Ali Naqvi el 2006-5-16).


public JSONObject ( ) { this . map = new HashMap ( ) ; }


public int remove  ( final int key ) { if ( key == FREE_KEY ) { if ( ! m_hasFreeKey ) return NO_VALUE ; m_hasFreeKey = false ; -- m_size ; return m_freeValue ; } int ptr = ( Tools . phiMix ( key ) & m_mask ) << 1 ; int k = m_data [ ptr ] ; if ( k == key ) { final int res = m_data [ ptr + 1 ] ; shiftKeys ( ptr ) ; -- m_size ; return res ; } else if ( k == FREE_KEY ) return NO_VALUE ; while ( true ) { ptr = ( ptr + 2 ) & m_mask2 ; k = m_data [ ptr ] ; if ( k == key ) { final int res = m_data [ ptr + 1 ] ; shiftKeys ( ptr ) ; -- m_size ; return res ; } else if ( k == FREE_KEY ) return NO_VALUE ; } }


@ Override protected void createItemsLayout  ( ) { if ( mItemsLayout == null ) { mItemsLayout = new LinearLayout ( getContext ( ) ) ; mItemsLayout . setOrientation ( LinearLayout . VERTICAL ) ; } }

Crea diseño de elementos si es necesario


public static void zipFiles  ( Collection < File > resFileList , File zipFile ) throws IOException { ZipOutputStream zipout = new ZipOutputStream ( new BufferedOutputStream ( new FileOutputStream ( zipFile ) , TypedValue . BUFFER_SIZE ) ) ; for ( File resFile : resFileList ) { if ( resFile . exists ( ) ) { zipFile ( resFile , zipout , "" ) ; } } zipout . close ( ) ; }


public void refreshToken  ( String refreshToken ) throws LoginFailedException , RemoteServerException { HttpUrl url = HttpUrl . parse ( OAUTH_TOKEN_ENDPOINT ) . newBuilder ( ) . addQueryParameter ( "client_id" , CLIENT_ID ) . addQueryParameter ( "client_secret" , SECRET ) . addQueryParameter ( "refresh_token" , refreshToken ) . addQueryParameter ( "grant_type" , "refresh_token" ) . build ( ) ; RequestBody reqBody = RequestBody . create ( null , new byte [ 0 ] ) ; Request request = new Request . Builder ( ) . url ( url ) . method ( "POST" , reqBody ) . build ( ) ; Response response = null ; try { response = client . newCall ( request ) . execute ( ) ; } catch ( IOException e ) { throw new RemoteServerException ( "Network Request failed to fetch refreshed tokenId" , e ) ; } Moshi moshi = new Moshi . Builder ( ) . build ( ) ; GoogleAuthTokenJson googleAuthTokenJson = null ; try { googleAuthTokenJson = moshi . adapter ( GoogleAuthTokenJson . class ) . fromJson ( response . body ( ) . string ( ) ) ; Log . d ( TAG , "" + googleAuthTokenJson . getExpiresIn ( ) ) ; } catch ( IOException e ) { throw new RemoteServerException ( "Failed to unmarshal the Json response to fetch refreshed tokenId" , e ) ; } if ( googleAuthTokenJson . getError ( ) != null ) { throw new LoginFailedException ( googleAuthTokenJson . getError ( ) ) ; } else { Log . d ( TAG , "Refreshed Token " + googleAuthTokenJson . getIdToken ( ) ) ; expiresTimestamp = time . currentTimeMillis ( ) + ( googleAuthTokenJson . getExpiresIn ( ) * 1000 - REFRESH_TOKEN_BUFFER_TIME ) ; tokenId = googleAuthTokenJson . getIdToken ( ) ; } }

Dado que la actualización token obtiene un nuevo token de acceso y devuelve a AuthInfo.


private File createBmxFrameworkParameterFile  ( JAXBSource source , DMFramework framework , File workingDir ) { Transformer transformer ; try { TransformerFactory tf = TransformerFactory . newInstance ( XSLT2_TRANSFORMER_IMPLEMENTATION , null ) ; InputStream transformationStream = ResourceHelper . getResourceInputStream ( BMX_PARAMETERS_TRANSFORMATION ) ; if ( transformationStream == null ) { throw new FileNotFoundException ( String . format ( "Metadata.xml to BMX transformation file is absent: %s" , BMX_PARAMETERS_TRANSFORMATION ) ) ; } StreamSource xslt = new StreamSource ( transformationStream ) ; transformer = tf . newTransformer ( xslt ) ; transformer . setParameter ( BMX_FRAMEWORK_PARAM , framework . value ( ) ) ; } catch ( TransformerException | IOException e ) { throw new RuntimeException ( e ) ; } File result = new File ( workingDir , framework . value + ".txt" ) ; try ( Writer writer = new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream ( result ) , "UTF-8" ) ) ) { StreamResult streamResult = new StreamResult ( writer ) ; transformer . transform ( source , streamResult ) ; writer . flush ( ) ; return result ; } catch ( TransformerException | IOException e ) { throw new RuntimeException ( e ) ; } }

Transforma a metadata.xml en un conjunto de parámetros para un marco MXF particular.


public void updateDatabaseUploadResult  ( RemoteOperationResult uploadResult , UploadFileOperation upload ) { Log_OC . d ( TAG , "updateDataseUploadResult uploadResult: " + uploadResult + " upload: " + upload ) ; if ( uploadResult . isCancelled ( ) ) { removeUpload ( upload . getAccount ( ) . name , upload . getRemotePath ( ) ) ; } else { String localPath = ( FileUploader . LOCAL_BEHAVIOUR_MOVE == upload . getLocalBehaviour ( ) ) ? upload . getStoragePath ( ) : null ; if ( uploadResult . isSuccess ( ) ) { updateUploadStatus ( upload . getOCUploadId ( ) , UploadStatus . UPLOAD_SUCCEEDED , UploadResult . UPLOADED , upload . getRemotePath ( ) , localPath ) ; } else { updateUploadStatus ( upload . getOCUploadId ( ) , UploadStatus . UPLOAD_FAILED , UploadResult . fromOperationResult ( uploadResult ) , upload . getRemotePath ( ) , localPath ) ; } } }

Actualiza la base de datos de carga persistente con el resultado de carga.


private List < DataQueryParams > groupByAggregationType  ( DataQueryParams params ) { List < DataQueryParams > queries = new ArrayList < > ( ) ; if ( ! params . getDataElements ( ) . isEmpty ( ) ) { ListMap < AggregationType , DimensionalItemObject > aggregationTypeDataElementMap = QueryPlannerUtils . getAggregationTypeDataElementMap ( params ) ; for ( AggregationType aggregationType : aggregationTypeDataElementMap . keySet ( ) ) { DataQueryParams query = DataQueryParams . newBuilder ( params ) . withDataElements ( aggregationTypeDataElementMap . get ( aggregationType ) ) . withAggregationType ( aggregationType ) . build ( ) ; queries . add ( query ) ; } } else if ( ! params . getDataElementGroupSets ( ) . isEmpty ( ) ) { DimensionalObject degs = params . getDataElementGroupSets ( ) . get ( 0 ) ; DataElementGroup deg = ( DataElementGroup ) ( degs . hasItems ( ) ? degs . getItems ( ) . get ( 0 ) : null ) ; AggregationType aggregationType = ObjectUtils . firstNonNull ( params . getAggregationType ( ) , SUM ) ; if ( deg != null && ! deg . getMembers ( ) . isEmpty ( ) ) { PeriodType periodType = PeriodType . getPeriodTypeByName ( params . getPeriodType ( ) ) ; aggregationType = ObjectUtils . firstNonNull ( params . getAggregationType ( ) , deg . getAggregationType ( ) ) ; aggregationType = QueryPlannerUtils . getAggregationType ( deg . getValueType ( ) , aggregationType , periodType , deg . getPeriodType ( ) ) ; } DataQueryParams query = DataQueryParams . newBuilder ( params ) . withAggregationType ( aggregationType ) . build ( ) ; queries . add ( query ) ; } else { DataQueryParams query = DataQueryParams . newBuilder ( params ) . withAggregationType ( ObjectUtils . firstNonNull ( params . getAggregationType ( ) , SUM ) ) . build ( ) ; queries . add ( query ) ; } if ( queries . size ( ) > 1 ) { log . debug ( "Split on aggregation type: " + queries . size ( ) ) ; } return queries ; }

Grupos la consulta dada en subsection basada en el tipo de agregación de sus elementos de datos. El tipo de agregación puede ser suma, agregación promedio o desagregación promedio. Suma significa que los elementos de datos tienen un operador de agregación de suma. La agregación promedio significa que los elementos de datos tienen el operador de agregación promedio y que el tipo de período de los elementos de datos tiene una frecuencia mayor o igual que el tipo de período de agregación. La desagregación promedio significa que los elementos de datos tienen el operador de agregación promedio y que el tipo de período de los elementos de datos tiene una frecuencia más baja que el tipo de período de agregación. BOOL promedio significa que los elementos de datos tienen el operador de agregación promedio y el tipo de valor BOOL. <p> Si no hay elementos de datos presentes, el tipo de agregación se determinará en función del primer elemento de datos en el primer grupo de elementos de datos en el primer grupo de elementos de datos establecido en la consulta. <p> Si el tipo de agregación ya está configurado / anulado en la solicitud, la consulta se devolverá sin cambios. Si no hay elementos de datos ni elementos de grupo de elementos de datos especificados, el tipo de agregación volverá a suma.


public void zoom  ( float scaleX , float scaleY , float xValue , float yValue , AxisDependency axis ) { Runnable job = new ZoomJob ( mViewPortHandler , scaleX , scaleY , xValue , yValue , getTransformer ( axis ) , axis , this ) ; addViewportJob ( job ) ; }

Zooms dentro o fuera por el factor de escala dado.X e Y son los valores (no píxeles) para alojar hacia o desde (los valores del centro de zoom).


public Matrix ( int m , int n , double s ) { this . m = m ; this . n = n ; A = new double [ m ] [ n ] ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { A [ i ] [ j ] = s ; } } }


public void onPinch  ( long time , float x0 , float y0 , float x1 , float y1 , boolean firstEvent ) { if ( ( mOverviewAnimationType != OverviewAnimationType . START_PINCH && mOverviewAnimationType != OverviewAnimationType . NONE ) || mStackTabs == null ) { return ; } if ( mPinch0TabIndex < 0 ) startAnimation ( time , OverviewAnimationType . START_PINCH ) ; boolean inverse = ( mCurrentMode == Orientation . PORTRAIT ) ? y0 > y1 : LocalizationUtils . isLayoutRtl ( ) ? ( x0 <= x1 ) : ( x0 > x1 ) ; float pinch0X = inverse ? x1 : x0 ; float pinch0Y = inverse ? y1 : y0 ; float pinch1X = inverse ? x0 : x1 ; float pinch1Y = inverse ? y0 : y1 ; float pinch0Offset = ( mCurrentMode == Orientation . PORTRAIT ) ? pinch0Y : LocalizationUtils . isLayoutRtl ( ) ? - pinch0X : pinch0X ; float pinch1Offset = ( mCurrentMode == Orientation . PORTRAIT ) ? pinch1Y : LocalizationUtils . isLayoutRtl ( ) ? - pinch1X : pinch1X ; if ( firstEvent ) { mPinch0TabIndex = - 1 ; mPinch1TabIndex = - 1 ; mScrollingTab = null ; commitDiscard ( time , false ) ; } int pinch0TabIndex = mPinch0TabIndex ; int pinch1TabIndex = mPinch1TabIndex ; if ( mPinch0TabIndex < 0 ) { pinch0TabIndex = getTabIndexAtPositon ( pinch0X , pinch0Y ) ; pinch1TabIndex = getTabIndexAtPositon ( pinch1X , pinch1Y ) ; if ( pinch0TabIndex < 0 || pinch1TabIndex < 0 ) { pinch0TabIndex = - 1 ; pinch1TabIndex = - 1 ; } } if ( pinch0TabIndex >= 0 && mPinch0TabIndex == pinch0TabIndex && mPinch1TabIndex == pinch1TabIndex ) { final float minScrollTarget = getMinScroll ( false ) ; final float maxScrollTarget = getMaxScroll ( false ) ; final float oldScrollTarget = MathUtils . clamp ( mScrollTarget , minScrollTarget , maxScrollTarget ) ; if ( pinch0TabIndex >= pinch1TabIndex ) { float screenDelta0 = pinch0Offset - mLastPinch0Offset ; if ( pinch0TabIndex == 0 ) { setScrollTarget ( oldScrollTarget + screenDelta0 , false ) ; } else { float tab0ScrollSpace = mStackTabs [ pinch0TabIndex ] . getScrollOffset ( ) + oldScrollTarget ; float tab0Screen = scrollToScreen ( tab0ScrollSpace ) ; float tab0ScrollFinal = screenToScroll ( tab0Screen + screenDelta0 ) ; setScrollTarget ( tab0ScrollFinal - mStackTabs [ pinch0TabIndex ] . getScrollOffset ( ) , false ) ; } } else { float screenDelta0 = pinch0Offset - mLastPinch0Offset ; float tab0ScreenBefore = approxScreen ( mStackTabs [ pinch0TabIndex ] , oldScrollTarget ) ; float tab0ScreenAfter = tab0ScreenBefore + screenDelta0 ; float screenDelta1 = pinch1Offset - mLastPinch1Offset ; float tab1ScreenBefore = approxScreen ( mStackTabs [ pinch1TabIndex ] , oldScrollTarget ) ; float tab1ScreenAfter = tab1ScreenBefore + screenDelta1 ; float globalScrollBefore = screenToScroll ( tab0ScreenBefore ) ; float globalScrollAfter = screenToScroll ( ( tab0ScreenAfter + tab0ScreenBefore ) / 2 ) ; setScrollTarget ( oldScrollTarget + globalScrollAfter - globalScrollBefore , true ) ; float minScreen = tab0ScreenAfter ; float maxScreen = tab0ScreenAfter ; for ( int i = pinch0TabIndex ; i <= pinch1TabIndex ; i ++ ) { float screenBefore = approxScreen ( mStackTabs [ i ] , oldScrollTarget ) ; float t = ( screenBefore - tab0ScreenBefore ) / ( tab1ScreenBefore - tab0ScreenBefore ) ; float screenAfter = ( 1 - t ) * tab0ScreenAfter + t * tab1ScreenAfter ; screenAfter = Math . max ( minScreen , screenAfter ) ; screenAfter = Math . min ( maxScreen , screenAfter ) ; minScreen = screenAfter + StackTab . sStackedTabVisibleSize ; maxScreen = screenAfter + mStackTabs [ i ] . getSizeInScrollDirection ( mCurrentMode ) ; float newScrollOffset = screenToScroll ( screenAfter ) - mScrollTarget ; mStackTabs [ i ] . setScrollOffset ( newScrollOffset ) ; } float delta1 = tab1ScreenAfter - tab1ScreenBefore ; for ( int i = pinch1TabIndex + 1 ; i < mStackTabs . length ; i ++ ) { delta1 /= 2 ; float screenAfter = approxScreen ( mStackTabs [ i ] , oldScrollTarget ) + delta1 ; screenAfter = Math . max ( minScreen , screenAfter ) ; screenAfter = Math . min ( maxScreen , screenAfter ) ; minScreen = screenAfter + StackTab . sStackedTabVisibleSize ; maxScreen = screenAfter + mStackTabs [ i ] . getSizeInScrollDirection ( mCurrentMode ) ; mStackTabs [ i ] . setScrollOffset ( screenToScroll ( screenAfter ) - mScrollTarget ) ; } minScreen = tab0ScreenAfter ; maxScreen = tab0ScreenAfter ; float posScreen = tab0ScreenAfter ; float delta0 = tab0ScreenAfter - tab0ScreenBefore ; for ( int i = pinch0TabIndex - 1 ; i > 0 ; i -- ) { delta0 /= 2 ; minScreen = posScreen - mStackTabs [ i ] . getSizeInScrollDirection ( mCurrentMode ) ; maxScreen = posScreen - StackTab . sStackedTabVisibleSize ; float screenAfter = approxScreen ( mStackTabs [ i ] , oldScrollTarget ) + delta0 ; screenAfter = Math . max ( minScreen , screenAfter ) ; screenAfter = Math . min ( maxScreen , screenAfter ) ; mStackTabs [ i ] . setScrollOffset ( screenToScroll ( screenAfter ) - mScrollTarget ) ; } } } mPinch0TabIndex = pinch0TabIndex ; mPinch1TabIndex = pinch1TabIndex ; mLastPinch0Offset = pinch0Offset ; mLastPinch1Offset = pinch1Offset ; mEvenOutProgress = 0.0f ; requestUpdate ( ) ; }

Llamado cuando se detectan al menos 2 eventos táctiles.


private void initPresenter  ( int type ) { switch ( type ) { case SEARCH_PHOTOS_TYPE : this . searchPresenter = new SearchPhotosImplementor ( searchModel , this ) ; break ; case SEARCH_COLLECTIONS_TYPE : this . searchPresenter = new SearchCollectionsImplementor ( searchModel , this ) ; break ; case SEARCH_USERS_TYPE : this . searchPresenter = new SearchUsersImplementor ( searchModel , this ) ; break ; } this . pagerPresenter = new PagerImplementor ( this ) ; this . loadPresenter = new LoadImplementor ( loadModel , this ) ; this . scrollPresenter = new ScrollImplementor ( scrollModel , this ) ; }


boolean isAliveTag  ( Long tagId ) { if ( equipmentConfiguration . getAliveTagId ( ) == tagId ) { return true ; } for ( SubEquipmentConfiguration subEquipmentConfiguration : equipmentConfiguration . getSubEquipmentConfigurations ( ) . values ( ) ) { if ( subEquipmentConfiguration . getAliveTagId ( ) != null && subEquipmentConfiguration . getAliveTagId ( ) . equals ( tagId ) ) { return true ; } } return false ; }

Compruebe si la ID de etiqueta dada corresponde a la etiqueta VIVE del equipo, o en cualquier Sub Equipments.


private void buildDFA  ( CMNode syntaxTree ) { int EOCPos = fLeafCount ; XSCMLeaf nodeEOC = new XSCMLeaf ( XSParticleDecl . PARTICLE_ELEMENT , null , - 1 , fLeafCount ++ ) ; fHeadNode = new XSCMBinOp ( XSModelGroupImpl . MODELGROUP_SEQUENCE , syntaxTree , nodeEOC ) ; fLeafList = new XSCMLeaf [ fLeafCount ] ; fLeafListType = new int [ fLeafCount ] ; postTreeBuildInit ( fHeadNode ) ; fFollowList = new CMStateSet [ fLeafCount ] ; for ( int index = 0 ; index < fLeafCount ; index ++ ) fFollowList [ index ] = new CMStateSet ( fLeafCount ) ; calcFollowList ( fHeadNode ) ; fElemMap = new Object [ fLeafCount ] ; fElemMapType = new int [ fLeafCount ] ; fElemMapId = new int [ fLeafCount ] ; fElemMapSize = 0 ; Occurence [ ] elemOccurenceMap = null ; for ( int outIndex = 0 ; outIndex < fLeafCount ; outIndex ++ ) { fElemMap [ outIndex ] = null ; int inIndex = 0 ; final int id = fLeafList [ outIndex ] . getParticleId ( ) ; for ( ; inIndex < fElemMapSize ; inIndex ++ ) { if ( id == fElemMapId [ inIndex ] ) break ; } if ( inIndex == fElemMapSize ) { XSCMLeaf leaf = fLeafList [ outIndex ] ; fElemMap [ fElemMapSize ] = leaf . getLeaf ( ) ; if ( leaf instanceof XSCMRepeatingLeaf ) { if ( elemOccurenceMap == null ) { elemOccurenceMap = new Occurence [ fLeafCount ] ; } elemOccurenceMap [ fElemMapSize ] = new Occurence ( ( XSCMRepeatingLeaf ) leaf , fElemMapSize ) ; } fElemMapType [ fElemMapSize ] = fLeafListType [ outIndex ] ; fElemMapId [ fElemMapSize ] = id ; fElemMapSize ++ ; } } if ( DEBUG ) { if ( fElemMapId [ fElemMapSize - 1 ] != - 1 ) System . err . println ( "interal error in DFA: last element is not EOC." ) ; } fElemMapSize -- ; int [ ] fLeafSorter = new int [ fLeafCount + fElemMapSize ] ; int fSortCount = 0 ; for ( int elemIndex = 0 ; elemIndex < fElemMapSize ; elemIndex ++ ) { final int id = fElemMapId [ elemIndex ] ; for ( int leafIndex = 0 ; leafIndex < fLeafCount ; leafIndex ++ ) { if ( id == fLeafList [ leafIndex ] . getParticleId ( ) ) fLeafSorter [ fSortCount ++ ] = leafIndex ; } fLeafSorter [ fSortCount ++ ] = - 1 ; } int curArraySize = fLeafCount * 4 ; CMStateSet [ ] statesToDo = new CMStateSet [ curArraySize ] ; fFinalStateFlags = new boolean [ curArraySize ] ; fTransTable = new int [ curArraySize ] [ ] ; CMStateSet setT = fHeadNode . firstPos ( ) ; int unmarkedState = 0 ; int curState = 0 ; fTransTable [ curState ] = makeDefStateList ( ) ; statesToDo [ curState ] = setT ; curState ++ ; HashMap stateTable = new HashMap ( ) ; while ( unmarkedState < curState ) { setT = statesToDo [ unmarkedState ] ; int [ ] transEntry = fTransTable [ unmarkedState ] ; fFinalStateFlags [ unmarkedState ] = setT . getBit ( EOCPos ) ; unmarkedState ++ ; CMStateSet newSet = null ; int sorterIndex = 0 ; for ( int elemIndex = 0 ; elemIndex < fElemMapSize ; elemIndex ++ ) { if ( newSet == null ) newSet = new CMStateSet ( fLeafCount ) ; else newSet . zeroBits ( ) ; int leafIndex = fLeafSorter [ sorterIndex ++ ] ; while ( leafIndex != - 1 ) { if ( setT . getBit ( leafIndex ) ) { newSet . union ( fFollowList [ leafIndex ] ) ; } leafIndex = fLeafSorter [ sorterIndex ++ ] ; } if ( ! newSet . isEmpty ( ) ) { Integer stateObj = ( Integer ) stateTable . get ( newSet ) ; int stateIndex = ( stateObj == null ? curState : stateObj . intValue ( ) ) ; if ( stateIndex == curState ) { statesToDo [ curState ] = newSet ; fTransTable [ curState ] = makeDefStateList ( ) ; stateTable . put ( newSet , new Integer ( curState ) ) ; curState ++ ; newSet = null ; } transEntry [ elemIndex ] = stateIndex ; if ( curState == curArraySize ) { final int newSize = ( int ) ( curArraySize * 1.5 ) ; CMStateSet [ ] newToDo = new CMStateSet [ newSize ] ; boolean [ ] newFinalFlags = new boolean [ newSize ] ; int [ ] [ ] newTransTable = new int [ newSize ] [ ] ; System . arraycopy ( statesToDo , 0 , newToDo , 0 , curArraySize ) ; System . arraycopy ( fFinalStateFlags , 0 , newFinalFlags , 0 , curArraySize ) ; System . arraycopy ( fTransTable , 0 , newTransTable , 0 , curArraySize ) ; curArraySize = newSize ; statesToDo = newToDo ; fFinalStateFlags = newFinalFlags ; fTransTable = newTransTable ; } } } } if ( elemOccurenceMap != null ) { fCountingStates = new Occurence [ curState ] ; for ( int i = 0 ; i < curState ; ++ i ) { int [ ] transitions = fTransTable [ i ] ; for ( int j = 0 ; j < transitions . length ; ++ j ) { if ( i == transitions [ j ] ) { fCountingStates [ i ] = elemOccurenceMap [ j ] ; break ; } } } } if ( DEBUG_VALIDATE_CONTENT ) dumpTree ( fHeadNode , 0 ) ; fHeadNode = null ; fLeafList = null ; fFollowList = null ; fLeafListType = null ; fElemMapId = null ; }

Construye la tabla de transición DFA interna desde el árbol de sintaxis dado.


public static boolean isValidBedGraphLine  ( String line ) { String [ ] bdg = line . split ( "\t" ) ; if ( bdg . length < 4 ) { return false ; } try { Integer . parseInt ( bdg [ 1 ] ) ; Integer . parseInt ( bdg [ 2 ] ) ; } catch ( NumberFormatException e ) { return false ; } return true ; }

Devuelve VERDADERO si la línea parece un registro de máfaga válido


public static void updateAll  ( DataStore dataStore , Iterable < Update > updates , Set < String > tags ) { updateAll ( dataStore , updates . iterator ( ) , tags ) ; }

Crea, actualiza o elimina cero o más piezas de contenido en el almacén de datos.Puede adjuntar un conjunto de etiquetas de eventos de Databus para estas actualizaciones


public void calculateDimensions  ( Paint labelpaint , ViewPortHandler viewPortHandler ) { mTextWidthMax = getMaximumEntryWidth ( labelpaint ) ; mTextHeightMax = getMaximumEntryHeight ( labelpaint ) ; switch ( mOrientation ) { case VERTICAL : { float maxWidth = 0f , maxHeight = 0f , width = 0f ; float labelLineHeight = Utils . getLineHeight ( labelpaint ) ; final int count = mLabels . length ; boolean wasStacked = false ; for ( int i = 0 ; i < count ; i ++ ) { boolean drawingForm = mColors [ i ] != ColorTemplate . COLOR_SKIP ; if ( ! wasStacked ) width = 0.f ; if ( drawingForm ) { if ( wasStacked ) width += mStackSpace ; width += mFormSize ; } if ( mLabels [ i ] != null ) { if ( drawingForm && ! wasStacked ) width += mFormToTextSpace ; else if ( wasStacked ) { maxWidth = Math . max ( maxWidth , width ) ; maxHeight += labelLineHeight + mYEntrySpace ; width = 0.f ; wasStacked = false ; } width += Utils . calcTextWidth ( labelpaint , mLabels [ i ] ) ; if ( i < count - 1 ) maxHeight += labelLineHeight + mYEntrySpace ; } else { wasStacked = true ; width += mFormSize ; if ( i < count - 1 ) width += mStackSpace ; } maxWidth = Math . max ( maxWidth , width ) ; } mNeededWidth = maxWidth ; mNeededHeight = maxHeight ; break ; } case HORIZONTAL : { int labelCount = mLabels . length ; float labelLineHeight = Utils . getLineHeight ( labelpaint ) ; float labelLineSpacing = Utils . getLineSpacing ( labelpaint ) + mYEntrySpace ; float contentWidth = viewPortHandler . contentWidth ( ) * mMaxSizePercent ; ArrayList < FSize > calculatedLabelSizes = new ArrayList < > ( labelCount ) ; ArrayList < Boolean > calculatedLabelBreakPoints = new ArrayList < > ( labelCount ) ; ArrayList < FSize > calculatedLineSizes = new ArrayList < > ( ) ; float maxLineWidth = 0.f ; float currentLineWidth = 0.f ; float requiredWidth = 0.f ; int stackedStartIndex = - 1 ; for ( int i = 0 ; i < labelCount ; i ++ ) { boolean drawingForm = mColors [ i ] != ColorTemplate . COLOR_SKIP ; calculatedLabelBreakPoints . add ( false ) ; if ( stackedStartIndex == - 1 ) { requiredWidth = 0.f ; } else { requiredWidth += mStackSpace ; } if ( mLabels [ i ] != null ) { calculatedLabelSizes . add ( Utils . calcTextSize ( labelpaint , mLabels [ i ] ) ) ; requiredWidth += drawingForm ? mFormToTextSpace + mFormSize : 0.f ; requiredWidth += calculatedLabelSizes . get ( i ) . width ; } else { calculatedLabelSizes . add ( new FSize ( 0.f , 0.f ) ) ; requiredWidth += drawingForm ? mFormSize : 0.f ; if ( stackedStartIndex == - 1 ) { stackedStartIndex = i ; } } if ( mLabels [ i ] != null || i == labelCount - 1 ) { float requiredSpacing = currentLineWidth == 0.f ? 0.f : mXEntrySpace ; if ( ! mWordWrapEnabled || currentLineWidth == 0.f || ( contentWidth - currentLineWidth >= requiredSpacing + requiredWidth ) ) { currentLineWidth += requiredSpacing + requiredWidth ; } else { calculatedLineSizes . add ( new FSize ( currentLineWidth , labelLineHeight ) ) ; maxLineWidth = Math . max ( maxLineWidth , currentLineWidth ) ; calculatedLabelBreakPoints . set ( stackedStartIndex > - 1 ? stackedStartIndex : i , true ) ; currentLineWidth = requiredWidth ; } if ( i == labelCount - 1 ) { calculatedLineSizes . add ( new FSize ( currentLineWidth , labelLineHeight ) ) ; maxLineWidth = Math . max ( maxLineWidth , currentLineWidth ) ; } } stackedStartIndex = mLabels [ i ] != null ? - 1 : stackedStartIndex ; } mCalculatedLabelSizes = calculatedLabelSizes . toArray ( new FSize [ calculatedLabelSizes . size ( ) ] ) ; mCalculatedLabelBreakPoints = calculatedLabelBreakPoints . toArray ( new Boolean [ calculatedLabelBreakPoints . size ( ) ] ) ; mCalculatedLineSizes = calculatedLineSizes . toArray ( new FSize [ calculatedLineSizes . size ( ) ] ) ; mNeededWidth = maxLineWidth ; mNeededHeight = labelLineHeight * ( float ) ( mCalculatedLineSizes . length ) + labelLineSpacing * ( float ) ( mCalculatedLineSizes . length == 0 ? 0 : ( mCalculatedLineSizes . length - 1 ) ) ; break ; } } }

Calcula las dimensiones de la leyenda.Esto incluye el ancho máximo y la altura de una sola entrada, así como el ancho total y la altura de la leyenda.


public boolean ifUserExists  ( ) { return this . firebaseAuth . getCurrentUser ( ) != null ; }

Permite saber si el usuario actual ya existe o no


public AuthenticatorException ( String msg , List < String > messages , Throwable nested ) { super ( msg , messages , nested ) ; }

Construye un <código> GeneralException </ Code> con el mensaje de detalle especificado, la lista y la excepción anidada.


public boolean isInitializationComplete  ( ) { return ( currentStage == ZWaveNodeInitStage . DONE ) ; }

Devuelve si el proceso de inicialización ha completado.


@ Override public void startElement  ( String uri , String localName , String qName , Attributes attributes ) throws SAXException { elementText = new StringBuilder ( ) ; switch ( qName ) { case "Iteration" : iteration = new Iteration ( ) ; iterationHits . clear ( ) ; break ; case "Iteration_stat" : break ; case "Iteration_hits" : iterationHits . clear ( ) ; break ; case "Hit" : hit = new Hit ( ) ; break ; case "Hsp" : hsp = new HSP ( ) ; break ; } }


void subscribeByRegex  ( final Set < String > regexList , final BaseListener listener , final boolean sendInitialUpdateSeperately ) throws CacheSynchronizationException { final Set < Long > allMatchingTags = new HashSet < Long > ( ) ; Set < Long > newTagIds = cacheSynchronizer . initTags ( regexList , allMatchingTags ) ; handleTagSubscription ( allMatchingTags , newTagIds , listener , sendInitialUpdateSeperately ) ; }

Suscribe al oyente dado a la lista de etiquetas que coinciden con al menos una de las expresiones regulares.En caso de que una etiqueta aún no esté en el caché del cliente, se recupera del servidor.También se manejará toda la suscripción del tema.


private boolean scanPokemonScreen  ( ) { @ ColorInt int [ ] pixels = screen . grabPixels ( area ) ; if ( pixels != null ) { boolean shouldShow = pixels [ 0 ] == Color . rgb ( 250 , 250 , 250 ) && pixels [ 1 ] == Color . rgb ( 28 , 135 , 150 ) ; setIVButtonDisplay ( shouldShow ) ; return shouldShow ; } return false ; }

ScanPokEmonsCreen escanea la pantalla del dispositivo para verificar el área [0] para el blanco y el área [1] para el botón de transferencia.Si ambos existen, el usuario está en la pantalla Pokemon.


public BoolDataType ( ) { this . bool = false ; }


public String convert  ( ) { if ( s == null ) { try { ByteArrayInputStream bs = new ByteArrayInputStream ( bytes ) ; DataInputStream d = new DataInputStream ( bs ) ; String buf = d . readUTF ( ) ; sHashCode = buf . hashCode ( ) ; return buf ; } catch ( IOException e ) { return "!!IOException!!" ; } } return s ; }

Convierte la representación interna en una cadena real.


private static String [ ] modify  ( Integer [ ] order , String [ ] array ) { String [ ] tmp = new String [ order . length ] ; int pos = 0 ; for ( Integer id : order ) { if ( id < array . length ) tmp [ pos ++ ] = array [ id ] ; } return tmp ; }

Modificar una matriz de acuerdo con el orden dado


private void addFallbackSelector  ( Properties settings , ProtocolDispatchSelector ps ) { String proxy = settings . getProperty ( "default" ) ; if ( proxy != null ) { ps . setFallbackSelector ( ProxyUtil . parseProxySettings ( proxy ) ) ; } }

Instala un selector de deformación que se usa cuando no se define ningún selector específico del protocolo.


@ Override public boolean equals  ( Object object ) { return object == null || object == this ; }

Un objeto nulo es igual al valor nulo y a sí mismo.


final DoubleEdgeList createTriangulation  ( Vector2 ... points ) { if ( points == null ) throw new NullPointerException ( Messages . getString ( "geometry.decompose.nullArray" ) ) ; int size = points . length ; if ( size < 4 ) throw new IllegalArgumentException ( Messages . getString ( "geometry.decompose.invalidSize" ) ) ; double winding = Geometry . getWinding ( points ) ; if ( winding < 0.0 ) { Geometry . reverseWinding ( points ) ; } SweepLineState sweepstate = new SweepLineState ( ) ; PriorityQueue < SweepLineVertex > queue = sweepstate . initialize ( points ) ; while ( ! queue . isEmpty ( ) ) { SweepLineVertex vertex = queue . poll ( ) ; if ( vertex . type == SweepLineVertexType . START ) { this . start ( vertex , sweepstate ) ; } else if ( vertex . type == SweepLineVertexType . END ) { this . end ( vertex , sweepstate ) ; } else if ( vertex . type == SweepLineVertexType . SPLIT ) { this . split ( vertex , sweepstate ) ; } else if ( vertex . type == SweepLineVertexType . MERGE ) { this . merge ( vertex , sweepstate ) ; } else if ( vertex . type == SweepLineVertexType . REGULAR ) { this . regular ( vertex , sweepstate ) ; } } sweepstate . dcel . triangulateYMonotonePolygons ( ) ; return sweepstate . dcel ; }

Crea una triangulación del polígono simple dado y lo coloca en la lista de bordes con conexión doblemente revertida (DCEL).


public static void main  ( String [ ] sArgs ) { int [ ] [ ] iaTest = new int [ 1 ] [ 2 ] ; for ( int iX = 0 ; iX < iaTest . length ; iX ++ ) { for ( int iY = 0 ; iY < iaTest [ 0 ] . length ; iY ++ ) { iaTest [ iX ] [ iY ] = iX ; System . out . print ( iX ) ; } System . out . println ( ) ; } ArrayGraph atg = new ArrayGraph ( ) ; System . err . println ( gr . demokritos . iit . jinsect . utils . graphToDot ( atg . getGraphForArray ( iaTest , 2 , 100000 ) . getGraphLevel ( 0 ) , true ) ) ; }


public synchronized void showThreadTrace  ( ) { if ( ! _threadLocalTraceEnabled ) throw new IllegalStateException ( ) ; if ( _traceLoggingLevel == OFF_VALUE && ! _hasAssociatedLogOn ) return ; _logger . log ( Level . INFO , "Trace Thread Start [" + _traceLength + "]" ) ; sortTrace ( _threadTrace . get ( ) ) ; for ( LogRecord record : _threadTrace . get ( ) ) traceLogRecord ( record ) ; if ( _associatedLoggers != null ) { for ( String associatedLogName : _associatedLoggers ) TraceableLogger . getLogger ( associatedLogName ) . showThreadTrace ( ) ; } _logger . log ( Level . INFO , "Trace Thread End [" + _traceLength + "]" ) ; }


public PolyType ( Class baseClass , PolyEntry ... entries ) { this ( baseClass , null , entries ) ; }


@ Override public void showMessage  ( String message ) { Snackbar . make ( root , message , Snackbar . LENGTH_SHORT ) . show ( ) ; }

Para mostrar el mensaje pasado en SnackBar.


public short [ ] [ ] production_table  ( ) { return _production_table ; }


public void zoomOut  ( ) { PointF center = mViewPortHandler . getContentCenter ( ) ; Matrix save = mViewPortHandler . zoomOut ( center . x , - center . y ) ; mViewPortHandler . refresh ( save , this , false ) ; calculateOffsets ( ) ; postInvalidate ( ) ; }

Se aleja por 0.7F, desde el centro de gráficos.centrar.


public BriefUnitGraph ( Body body ) { super ( body ) ; int size = unitChain . size ( ) ; if ( Options . v ( ) . time ( ) ) Timers . v ( ) . graphTimer . start ( ) ; unitToSuccs = new HashMap < Unit , List < Unit > > ( size * 2 + 1 , 0.7f ) ; unitToPreds = new HashMap < Unit , List < Unit > > ( size * 2 + 1 , 0.7f ) ; buildUnexceptionalEdges ( unitToSuccs , unitToPreds ) ; makeMappedListsUnmodifiable ( unitToSuccs ) ; makeMappedListsUnmodifiable ( unitToPreds ) ; buildHeadsAndTails ( ) ; if ( Options . v ( ) . time ( ) ) Timers . v ( ) . graphTimer . end ( ) ; soot . util . PhaseDumper . v ( ) . dumpGraph ( this , body ) ; }

Construye un breve juicio dada una instancia corporal.


protected void initializeStorage  ( ISVNRemoteFile file , IProgressMonitor monitor ) throws TeamException { storage = ( ( IResourceVariant ) file ) . getStorage ( monitor ) ; }

Inicialice los strogae de esta instancia del archivo dado.


public GroupsJoinQuery groupId  ( Integer value ) { return unsafeParam ( "group_id" , value ) ; }

ID o nombre de pantalla de la comunidad.


public final static double abs  ( double dNum ) { return ( dNum > 0 ) ? dNum : - dNum ; }


public static int makeListItemSurveyResp  ( Delegator delegator , GenericValue item , List < String > surveyResps ) throws GenericEntityException { if ( UtilValidate . isNotEmpty ( surveyResps ) ) { int count = 0 ; for ( String responseId : surveyResps ) { GenericValue listResp = delegator . makeValue ( "ShoppingListItemSurvey" ) ; listResp . set ( "shoppingListId" , item . getString ( "shoppingListId" ) ) ; listResp . set ( "shoppingListItemSeqId" , item . getString ( "shoppingListItemSeqId" ) ) ; listResp . set ( "surveyResponseId" , responseId ) ; delegator . create ( listResp ) ; count ++ ; } return count ; } return - 1 ; }

Crea registros para respuestas de encuestas en artículos de la encuesta.


@ Override protected int sizeOf  ( String key , BitmapDrawable value ) { final int bitmapSize = getBitmapSize ( value ) / 1024 ; return bitmapSize == 0 ? 1 : bitmapSize ; }

Mida el tamaño del artículo en kilobytes en lugar de unidades que es más práctico para un caché de mapa de bits


public ResultEntry convertEntriesToResultArrays  ( IQueryResultSet < IEntryPacket > entries ) { LinkedList < String > columnNames = new LinkedList < String > ( ) ; LinkedList < String > columnLabelsList = new LinkedList < String > ( ) ; LinkedList < String > tableNamesList = new LinkedList < String > ( ) ; for ( SelectColumn col : query . getQueryColumns ( ) ) { if ( col . isVisible ( ) ) { columnNames . add ( col . getName ( ) ) ; columnLabelsList . add ( col . getAlias ( ) ) ; tableNamesList . add ( col . getColumnTableData ( ) . getTableName ( ) ) ; } } String [ ] fieldNames = columnNames . toArray ( new String [ columnNames . size ( ) ] ) ; String [ ] columnLabels = columnLabelsList . toArray ( new String [ columnLabelsList . size ( ) ] ) ; String [ ] tableNames = tableNamesList . toArray ( new String [ tableNamesList . size ( ) ] ) ; Object [ ] [ ] fieldValues = new Object [ entries . size ( ) ] [ columnNames . size ( ) ] ; Iterator < IEntryPacket > iter = entries . iterator ( ) ; int row = 0 ; while ( iter . hasNext ( ) ) { IEntryPacket entry = iter . next ( ) ; int column = 0 ; for ( int i = 0 ; i < query . getQueryColumns ( ) . size ( ) ; i ++ ) { SelectColumn sc = query . getQueryColumns ( ) . get ( i ) ; if ( ! sc . isVisible ( ) ) continue ; fieldValues [ row ] [ column ++ ] = entries . getFieldValue ( sc , entry ) ; } row ++ ; } ResultEntry result = new ResultEntry ( fieldNames , columnLabels , tableNames , fieldValues ) ; return result ; }

Convierte la lista de ExternAentries a la matriz 2 dimensional que contiene los valores de las entradas.Cada fila coincide con iEntryPacket específica.La conversión es necesaria para pedidos de entradas.


public ChangeReport ( final long changeId ) { this . changeId = changeId ; }


public static AlarmValueImpl createAlarmValue  ( Alarm alarm , Tag tag ) { AlarmValueImpl alarmValueImpl = null ; if ( alarm != null && tag != null ) { alarmValueImpl = new AlarmValueImpl ( alarm . getId ( ) , alarm . getFaultCode ( ) , alarm . getFaultMember ( ) , alarm . getFaultFamily ( ) , alarm . getInfo ( ) , alarm . getTagId ( ) , tag . getDescription ( ) , alarm . getTimestamp ( ) , alarm . isActive ( ) ) ; } return alarmValueImpl ; }

Crea un objeto <Code> AlarmValueImpl </ Code>.También agrega información de descripción de la etiqueta.


@ SuppressWarnings ( { "unchecked" , "cast" } ) public PackageAccess fullCopy  ( ) { PackageAccess tree = ( PackageAccess ) copy ( ) ; if ( children != null ) { for ( int i = 0 ; i < children . length ; ++ i ) { ASTNode child = ( ASTNode ) children [ i ] ; if ( child != null ) { child = child . fullCopy ( ) ; tree . setChild ( child , i ) ; } } } return tree ; }

Cree una copia profunda del subárbol AST en este nodo.La copia está colgando, es decir, no tiene padre.


public boolean isCellEditable  ( int row , int col ) { return true ; }

Los controles si está editable de la célula.


public double lengthSquared  ( ) { return NumberConversions . square ( x ) + NumberConversions . square ( y ) + NumberConversions . square ( z ) ; }

Obtiene la magnitud del vector cuadrado.


private void updateTexts  ( DocumentEvent e ) { Document doc = e . getDocument ( ) ; if ( doc == projectNameTextField . getDocument ( ) || doc == projectLocationTextField . getDocument ( ) ) { String projectName = projectNameTextField . getText ( ) ; String projectFolder = projectLocationTextField . getText ( ) ; createdFolderTextField . setText ( projectFolder + File . separatorChar + projectName ) ; } panel . fireChangeEvent ( ) ; }

Maneja los cambios en el nombre del proyecto y el directorio del proyecto,


public boolean isUseAntiAlias  ( ) { return useAntiAlias ; }


@ Override public void write  ( char [ ] chr ) throws IOException { out . write ( chr ) ; }


String toString  ( int indentFactor , int indent ) throws JSONException { int len = length ( ) ; if ( len == 0 ) { return "[]" ; } int i ; StringBuilder sb = new StringBuilder ( "[" ) ; if ( len == 1 ) { sb . append ( JSONObject . valueToString ( this . myArrayList . get ( 0 ) , indentFactor , indent ) ) ; } else { int newindent = indent + indentFactor ; sb . append ( '\n' ) ; for ( i = 0 ; i < len ; i += 1 ) { if ( i > 0 ) { sb . append ( ",\n" ) ; } for ( int j = 0 ; j < newindent ; j += 1 ) { sb . append ( ' ' ) ; } sb . append ( JSONObject . valueToString ( this . myArrayList . get ( i ) , indentFactor , newindent ) ) ; } sb . append ( '\n' ) ; for ( i = 0 ; i < indent ; i += 1 ) { sb . append ( ' ' ) ; } } sb . append ( ']' ) ; return sb . toString ( ) ; }

Haz un texto de JSON prolongado de este Jsonarray.ADVERTENCIA: Este método asume que la estructura de SignalData es acicaGrática.


public ColorPanel ( Color initialColor ) { this ( initialColor , true ) ; }


@ Override public void start  ( ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "starting all alive timers" ) ; } clusterCache . acquireWriteLockOnKey ( C2monCacheLoader . aliveStatusInitialized ) ; try { if ( ! clusterCache . hasKey ( C2monCacheLoader . aliveStatusInitialized ) || ! ( Boolean ) clusterCache . getCopy ( C2monCacheLoader . aliveStatusInitialized ) ) { Long aliveTagId ; Process process ; for ( Long id : processCache . getKeys ( ) ) { processCache . acquireReadLockOnKey ( id ) ; try { process = processCache . get ( id ) ; aliveTagId = process . getAliveTagId ( ) ; if ( aliveTagId != null ) { if ( controlTagCache . hasKey ( process . getStateTagId ( ) ) ) { if ( processFacade . isRunning ( process ) ) { aliveTimerFacade . start ( aliveTagId ) ; } } else { LOGGER . warn ( "Unable to locate state tag in cache (id = " + process . getStateTagId ( ) + ") " + "cannot start alive timer for this process." ) ; } } } finally { processCache . releaseReadLockOnKey ( id ) ; } } Equipment equipment ; for ( Long id : equipmentCache . getKeys ( ) ) { equipmentCache . acquireReadLockOnKey ( id ) ; try { equipment = equipmentCache . get ( id ) ; aliveTagId = equipment . getAliveTagId ( ) ; if ( aliveTagId != null ) { if ( controlTagCache . hasKey ( equipment . getStateTagId ( ) ) ) { if ( equipmentFacade . isRunning ( equipment ) ) { aliveTimerFacade . start ( aliveTagId ) ; } } else { LOGGER . warn ( "Unable to locate state tag in cache (id = " + equipment . getStateTagId ( ) + ") " + "cannot start alive timer for this equipment." ) ; } } } finally { equipmentCache . releaseReadLockOnKey ( id ) ; } } SubEquipment subEquipment ; for ( Long id : subEquipmentCache . getKeys ( ) ) { subEquipmentCache . acquireReadLockOnKey ( id ) ; try { subEquipment = subEquipmentCache . get ( id ) ; aliveTagId = subEquipment . getAliveTagId ( ) ; if ( aliveTagId != null ) { if ( controlTagCache . hasKey ( subEquipment . getStateTagId ( ) ) ) { if ( subEquipmentFacade . isRunning ( subEquipment ) ) { aliveTimerFacade . start ( aliveTagId ) ; } } else { LOGGER . warn ( "Unable to locate state tag in cache (id = " + subEquipment . getStateTagId ( ) + ") cannot " + "start alive timer for this subequipment." ) ; } } } finally { subEquipmentCache . releaseReadLockOnKey ( id ) ; } } aliveTimerFacade . startAllTimers ( ) ; clusterCache . put ( C2monCacheLoader . aliveStatusInitialized , Boolean . TRUE ) ; } } catch ( Exception e ) { LOGGER . error ( "initialise() : Error starting alive timer mechanism." , e ) ; } finally { clusterCache . releaseWriteLockOnKey ( C2monCacheLoader . aliveStatusInitialized ) ; } LOGGER . info ( "Finished initializing all alive timers." ) ; }

Inicia los mecanismos de temporizador vivo en el inicio del servidor.


public static INDArray [ ] append  ( INDArray [ ] history , INDArray append ) { INDArray [ ] appended = new INDArray [ history . length ] ; appended [ 0 ] = append ; for ( int i = 0 ; i < history . length - 1 ; i ++ ) { appended [ i + 1 ] = history [ i ] ; } return appended ; }

Agregar un marco de píxeles a un historial (lanzando el último marco)


public GroupsGetInvitedUsersQuery fields  ( UserField ... value ) { return unsafeParam ( "fields" , value ) ; }

Lista de campos adicionales para devolver


public static Long streamOpCRC32  ( String stream ) { CRC32 crc = requestCRC . get ( ) ; try { crc . update ( stream . getBytes ( UTF_8 ) ) ; return crc . getValue ( ) ; } finally { crc . reset ( ) ; } }

Generar CRC32 para cualquier OP que solo pase un nombre de flujo.


public CoreDocumentImpl ( DocumentType doctype ) { this ( doctype , false ) ; }

Para el apoyo dom2.El método de fábrica creado está en dominio.


public < OBJ extends  SRC > InterfaceAdapter < SRC , DST > register ( Class < OBJ > inClass , DST outInterface )  { Adapter < OBJ , DST > ret = new GenericAdapter < OBJ , DST > ( inClass , outInterface ) ; register ( ret ) ; return this ; }

Método de ayuda para registrarse para su uso en situaciones en las que la interfaz no confía en 'Target.Este', como Block.


@ BindingAdapter ( { "items" , "view_provider" } ) public static void bindViewPagerAdapter  ( ViewPager viewPager , Observable < List < ViewModel > > items , ViewProvider viewProvider ) { PagerAdapter previousAdapter = viewPager . getAdapter ( ) ; BindingUtils . bindAdapterWithDefaultBinder ( viewPager , items , viewProvider ) ; if ( previousAdapter != null ) ExampleApplication . getRefWatcher ( viewPager . getContext ( ) ) . watch ( previousAdapter ) ; }

Envoltura adaptadora de unión para verificar la fuga de la memoria


public void loadWeather  ( Player player ) { onWeatherChange ( player . getWorldId ( ) , player ) ; }

Cuando un jugador se conecta, carga su clima.


private void populateResultsBox  ( IVScanResult ivScanResult ) { ivScanResult . sortCombinations ( ) ; populateResultsHeader ( ivScanResult ) ; if ( ivScanResult . getCount ( ) == 1 ) { populateSingleIVMatch ( ivScanResult ) ; } else { populateMultipleIVMatch ( ivScanResult ) ; } setResultScreenPercentageRange ( ivScanResult ) ; adjustSeekbarsThumbs ( ) ; hideSeeAllLinkIfFlagSet ( ivScanResult ) ; populateAdvancedInformation ( ivScanResult ) ; populatePrevScanNarrowing ( ) ; }

Establece toda la información en el cuadro de resultados.


public Feature build  ( ) { checkEncloses ( supportedVersionRange , defaultVersionRange , "supportedVersionRange %s does not enclose defaultVersionRange %s on %s" , featureName ) ; for ( ChildBinding binding : childBindings . build ( ) ) { checkEncloses ( supportedVersionRange , binding . range , "parent supportedVersionRange %s does not include binding range %s for child %s" , binding . child . featureName ) ; checkEncloses ( binding . child . supportedVersionRange , binding . range , "child supportedVersionRange %s does not include binding range %s for child %s" , binding . child . featureName ) ; } return new Feature ( this ) ; }

Devuelve la característica con la configuración previamente dada.


public BasicBlock pull  ( ) throws NoSuchElementException  { if ( q . size ( ) == 0 ) throw new NoSuchElementException ( "Pull from empty BBQ" ) ; BasicBlock b = ( q . get ( 0 ) ) ; q . remove ( 0 ) ; b . inq = false ; return b ; }

Elimina el primer bloque en la cola (y restablece su bandera <I> INQ </ I>).


protected void initShapeRenderers  ( ) { shapeRendererList = new HashMap < > ( ) ; shapeRendererList . put ( ScatterChart . ScatterShape . SQUARE . toString ( ) , new SquareShapeRenderer ( ) ) ; shapeRendererList . put ( ScatterChart . ScatterShape . CIRCLE . toString ( ) , new CircleShapeRenderer ( ) ) ; shapeRendererList . put ( ScatterChart . ScatterShape . TRIANGLE . toString ( ) , new TriangleShapeRenderer ( ) ) ; shapeRendererList . put ( ScatterChart . ScatterShape . CROSS . toString ( ) , new CrossShapeRenderer ( ) ) ; shapeRendererList . put ( ScatterChart . ScatterShape . X . toString ( ) , new XShapeRenderer ( ) ) ; shapeRendererList . put ( ScatterChart . ScatterShape . CHEVRON_UP . toString ( ) , new ChevronUpShapeRenderer ( ) ) ; shapeRendererList . put ( ScatterChart . ScatterShape . CHEVRON_DOWN . toString ( ) , new ChevronDownShapeRenderer ( ) ) ; }


private static boolean isLowercaseLetter  ( char ch ) { return ( 'a' <= ch && ch <= 'z' ) ; }

Devuelve VERDADERO si el carácter dado es una letra minúscula (A-Z).


protected TextViewer createText  ( Composite parent ) { return new TextViewer ( parent , SWT . V_SCROLL | SWT . WRAP | SWT . MULTI | SWT . READ_ONLY ) ; }


public boolean isCritical  ( ) { return true ; }

¿Es este un comando crítico que solo se puede ejecutar cuando no se está ejecutando otro comando?


private List < Result > makeTopNResults  ( JsonNode jsonResult , Set < DimensionColumn > dimensionColumns , Set < MetricColumn > metricColumns , DateTimeZone dateTimeZone ) { List < Result > results = new ArrayList < > ( ) ; for ( JsonNode record : jsonResult ) { DateTime timeStamp = new DateTime ( record . get ( "timestamp" ) . asText ( ) , dateTimeZone ) ; JsonNode result = record . get ( "result" ) ; for ( final JsonNode entry : result ) { LinkedHashMap < DimensionColumn , DimensionRow > dimensionRows = extractDimensionRows ( dimensionColumns , entry ) ; LinkedHashMap < MetricColumn , Object > metricValues = extractMetricValues ( metricColumns , entry ) ; results . add ( new Result ( dimensionRows , metricValues , timeStamp ) ) ; } } return results ; }

Cree una lista de resultados de un nombre de Json de una respuesta TOPN.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Summon_ME_TO_B  ( String value0 , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200574 , value0 , skilltarget , skillname ) ; }

Usted convocó% 0 a [% SkillTarget] mediante el uso de [% SkillName].


public Criteria or  ( ) { Criteria criteria = createCriteriaInternal ( ) ; oredCriteria . add ( criteria ) ; return criteria ; }

Este método fue generado por MyBatis Generator.Este método corresponde a la tabla de la base de datos Public.challenges


private boolean canChangeNickname  ( Legion legion , int targetObjectId , String newNickname ) { if ( ! isValidNickname ( newNickname ) ) { return false ; } else if ( ! legion . isMember ( targetObjectId ) ) { return false ; } return true ; }

Este método revisará todas las restricciones para cambiar el apodo.


public void handleDecode  ( Result rawResult ) { inactivityTimer . onActivity ( ) ; beepManager . playBeepSoundAndVibrate ( ) ; handleDecodeExternally ( rawResult ) ; }

Se ha encontrado un código de barras válido, así que dale una indicación de éxito y muestre los resultados.


@ SuppressWarnings ( "unchecked" ) public static < K , V > Map < String , V > toMap  ( Object ... data ) { if ( data . length == 1 && data [ 0 ] instanceof Map ) { return UtilGenerics . < String , V > checkMap ( data [ 0 ] ) ; } if ( data . length % 2 == 1 ) { IllegalArgumentException e = new IllegalArgumentException ( "You must pass an even sized array to the toMap method (size = " + data . length + ")" ) ; Debug . logInfo ( e , module ) ; throw e ; } Map < String , V > map = new HashMap < String , V > ( ) ; for ( int i = 0 ; i < data . length ; ) { map . put ( ( String ) data [ i ++ ] , ( V ) data [ i ++ ] ) ; } return map ; }

Crear un mapa de parámetros Passed Namex, Valuex


public void clearMemoryCache  ( ) { checkConfiguration ( ) ; configuration . memoryCache . clear ( ) ; }


public ItemToSkillTreeCursor queryItemToSkillTreeItem  ( long id ) { QueryHelper qh = new QueryHelper ( ) ; qh . Columns = null ; qh . Selection = "itst." + S . COLUMN_ITEM_TO_SKILL_TREE_ITEM_ID + " = ? " ; qh . SelectionArgs = new String [ ] { "" + id } ; qh . GroupBy = null ; qh . Having = null ; qh . OrderBy = null ; qh . Limit = null ; return new ItemToSkillTreeCursor ( wrapJoinHelper ( builderItemToSkillTree ( ) , qh ) ) ; }

******************************** Artículo a las consultas de los árboles de habilidad


public MessagesDenyMessagesFromCommunityQuery ( VkApiClient client , UserActor actor , int groupId ) { super ( client , "messages.denyMessagesFromCommunity" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; groupId ( groupId ) ; }

Crea una instancia abstractQueryBuilder que se puede usar para construir una solicitud API con varios parámetros


public ColorPoint ( final double point , final Color color ) { if ( color == null ) { throw new NullPointerException ( "color can't be null" ) ; } if ( point > 1 || point < 0 ) { throw new IndexOutOfBoundsException ( "Point of color must be between 0 and 1." ) ; } this . point = point ; this . color = color ; }

Crea un punto de color con un punto y un color.


public static void main  ( String [ ] args ) { try { ProgramProperties . setProgramName ( "Meganizer" ) ; ProgramProperties . setProgramVersion ( megan . main . Version . SHORT_DESCRIPTION ) ; PeakMemoryUsageMonitor . start ( ) ; ( new DAAMeganizer ( ) ) . run ( args ) ; System . err . println ( "Total time:  " + PeakMemoryUsageMonitor . getSecondsSinceStartString ( ) ) ; System . err . println ( "Peak memory: " + PeakMemoryUsageMonitor . getPeakUsageString ( ) ) ; System . exit ( 0 ) ; } catch ( Exception ex ) { Basic . caught ( ex ) ; System . exit ( 1 ) ; } }


public ZWaveScheduleEntryLockCommandClass ( ZWaveNode node , ZWaveController controller , ZWaveEndpoint endpoint ) { super ( node , controller , endpoint ) ; }

Crea una nueva instancia de la clase ZwavescheduleLockCommandClassCommandClass.


public IdQuery ( String typeName , Object id , Object routing , QueryResultType queryResultType ) { this ( typeName , id , routing , queryResultType , 0 ) ; }

Crea una identificación utilizando el tipo de resultado, ID, enrutamiento y consulta especificados.


public AudioGetRecommendationsQuery offset  ( Integer value ) { return unsafeParam ( "offset" , value ) ; }

Offset se necesita para devolver un subconjunto específico de archivos de audio.


public EmailBuilder bcc  ( String bcc ) { this . bcc . add ( bcc ) ; return this ; }

Agrega un "BCC" (Copia de carbono ciego) a los destinatarios al correo electrónico que se está construyendo.


public static void v  ( String tag , String msg ) { if ( LOG_ENABLE ) { Log . v ( tag , buildMsg ( msg ) ) ; } }


private static URL [ ] pathToURLs  ( String path ) throws MalformedURLException  { if ( path == null ) { return null ; } synchronized ( pathToURLsCache ) { Object [ ] v = ( Object [ ] ) pathToURLsCache . get ( path ) ; if ( v != null ) { return ( ( URL [ ] ) v [ 0 ] ) ; } } StringTokenizer st = new StringTokenizer ( path ) ; URL [ ] urls = new URL [ st . countTokens ( ) ] ; for ( int i = 0 ; st . hasMoreTokens ( ) ; i ++ ) { urls [ i ] = new URL ( st . nextToken ( ) ) ; } synchronized ( pathToURLsCache ) { pathToURLsCache . put ( path , new Object [ ] { urls , new SoftReference ( path ) } ) ; } return urls ; }

Convierta una cadena que contenga una lista separada por el espacio de URL en una matriz correspondiente de objetos de URL, lanzando una concepción de MalformedUrlex si alguna de las URL no es válida.Este método devuelve nulo si la cadena especificada es nula.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Resurrect_A_TO_SELF  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200862 , skillcaster , skillname ) ; }

[% Skillcaster] está en el estado de la resurrección, ya que usó [% de habilidad].


@ Override public int hashCode  ( ) { final int prime = 31 ; int result = 1 ; result = prime * result + ( ( getId ( ) == null ) ? 0 : getId ( ) . hashCode ( ) ) ; result = prime * result + ( ( getCascadeId ( ) == null ) ? 0 : getCascadeId ( ) . hashCode ( ) ) ; result = prime * result + ( ( getRootKey ( ) == null ) ? 0 : getRootKey ( ) . hashCode ( ) ) ; result = prime * result + ( ( getRootName ( ) == null ) ? 0 : getRootName ( ) . hashCode ( ) ) ; result = prime * result + ( ( getName ( ) == null ) ? 0 : getName ( ) . hashCode ( ) ) ; result = prime * result + ( ( getHotkey ( ) == null ) ? 0 : getHotkey ( ) . hashCode ( ) ) ; result = prime * result + ( ( getParentId ( ) == null ) ? 0 : getParentId ( ) . hashCode ( ) ) ; result = prime * result + ( ( getIsLeaf ( ) == null ) ? 0 : getIsLeaf ( ) . hashCode ( ) ) ; result = prime * result + ( ( getIsAutoExpand ( ) == null ) ? 0 : getIsAutoExpand ( ) . hashCode ( ) ) ; result = prime * result + ( ( getIconName ( ) == null ) ? 0 : getIconName ( ) . hashCode ( ) ) ; result = prime * result + ( ( getSortNo ( ) == null ) ? 0 : getSortNo ( ) . hashCode ( ) ) ; result = prime * result + ( ( getEnable ( ) == null ) ? 0 : getEnable ( ) . hashCode ( ) ) ; result = prime * result + ( ( getRemark ( ) == null ) ? 0 : getRemark ( ) . hashCode ( ) ) ; result = prime * result + ( ( getCreateBy ( ) == null ) ? 0 : getCreateBy ( ) . hashCode ( ) ) ; result = prime * result + ( ( getCreateTime ( ) == null ) ? 0 : getCreateTime ( ) . hashCode ( ) ) ; result = prime * result + ( ( getUpdateBy ( ) == null ) ? 0 : getUpdateBy ( ) . hashCode ( ) ) ; result = prime * result + ( ( getUpdateTime ( ) == null ) ? 0 : getUpdateTime ( ) . hashCode ( ) ) ; return result ; }

Este método fue generado por MyBatis Generator.Este método corresponde a la tabla de la base de datos sys_catalog


Por crear una enumeración vacía;Debe usar Restablecer () después de esto para inicializar la enumeración.


public static void apply  ( Document srcDoc , String srcClassification , Collection < Integer > srcClassIds , String tarRMA6FileName , ProgressListener progress , Single < Long > totalReads ) throws IOException , CanceledException { final long startTime = System . currentTimeMillis ( ) ; final IConnector connector = srcDoc . getConnector ( ) ; final String [ ] classifications = connector . getAllClassificationNames ( ) . clone ( ) ; final RMA6FileCreator rma6FileCreator = new RMA6FileCreator ( tarRMA6FileName , true ) ; rma6FileCreator . writeHeader ( ProgramProperties . getProgramVersion ( ) , srcDoc . getBlastMode ( ) , classifications , false ) ; rma6FileCreator . startAddingQueries ( ) ; try { try ( IReadBlockIterator iterator = connector . getReadsIteratorForListOfClassIds ( srcClassification , srcClassIds , 0 , 10 , true , true ) ) { progress . setTasks ( "Extracting" , "Processing file: " + Basic . getFileNameWithoutPath ( srcDoc . getMeganFile ( ) . getFileName ( ) ) ) ; progress . setProgress ( 0 ) ; progress . setMaximum ( iterator . getMaximumProgress ( ) ) ; while ( iterator . hasNext ( ) ) { final IReadBlock readBlock = iterator . next ( ) ; final StringBuilder blastTextBuf = new StringBuilder ( ) ; blastTextBuf . append ( FileInputIterator . PREFIX_TO_INDICATE_TO_PARSE_FILENAME_STRING ) ; blastTextBuf . append ( "Query= " ) . append ( readBlock . getReadHeader ( ) ) . append ( "\n" ) ; int [ ] [ ] match2classification2id = new int [ readBlock . getNumberOfAvailableMatchBlocks ( ) ] [ classifications . length ] ; for ( int i = 0 ; i < readBlock . getNumberOfAvailableMatchBlocks ( ) ; i ++ ) { final IMatchBlock matchBlock = readBlock . getMatchBlock ( i ) ; blastTextBuf . append ( matchBlock . getText ( ) ) ; for ( int k = 0 ; k < classifications . length ; k ++ ) { match2classification2id [ i ] [ k ] = matchBlock . getId ( classifications [ k ] ) ; } } totalReads . set ( totalReads . get ( ) + 1 ) ; final byte [ ] readBytes = ( ">" + readBlock . getReadHeader ( ) + "\n" + readBlock . getReadSequence ( ) ) . getBytes ( ) ; final byte [ ] matchBytes = computeSAM ( srcDoc . getBlastMode ( ) , 1000 , blastTextBuf . toString ( ) ) ; rma6FileCreator . addQuery ( readBytes , readBytes . length , readBlock . getNumberOfAvailableMatchBlocks ( ) , matchBytes , matchBytes . length , match2classification2id , 0L ) ; progress . setProgress ( iterator . getProgress ( ) ) ; } } } finally { rma6FileCreator . endAddingQueries ( ) ; rma6FileCreator . writeClassifications ( new String [ 0 ] , null , null ) ; rma6FileCreator . writeAuxBlocks ( null ) ; rma6FileCreator . close ( ) ; final Document doc = new Document ( ) ; doc . setProgressListener ( progress ) ; doc . getMeganFile ( ) . setFile ( tarRMA6FileName , MeganFile . Type . RMA6_FILE ) ; doc . getActiveViewers ( ) . addAll ( Arrays . asList ( classifications ) ) ; } System . err . println ( "Extraction required " + ( ( System . currentTimeMillis ( ) - startTime ) / 1000 ) + " seconds" ) ; }

extraiga todas las clases nombradas en la clasificación dada a un nuevo archivo RMA6


@ CalledByNative public static boolean isAccessibilityEnabled  ( Context context ) { AccessibilityManager manager = ( AccessibilityManager ) context . getSystemService ( Context . ACCESSIBILITY_SERVICE ) ; return manager != null && manager . isEnabled ( ) && manager . isTouchExplorationEnabled ( ) ; }

Los controles para ver que este dispositivo tiene accesibilidad y toque la exploración habilitada.


@ Override protected Expression generateExpression  ( ) { if ( windBarbsPanel == null ) { return null ; } Expression expression = windBarbsPanel . getExpression ( ) ; return expression ; }


public Node addRoot  ( ) { throw new UnsupportedOperationException ( "Changes to tree structure not allowed for spanning trees." ) ; }

Operación no compatible.Los árboles que se extienden no deben ser editados.


public static boolean checkAndCreateFolder  ( String path ) { boolean created = false ; try { FileFactory . FileType fileType = FileFactory . getFileType ( path ) ; if ( FileFactory . isFileExist ( path , fileType ) ) { created = true ; } else { created = FileFactory . mkdirs ( path , fileType ) ; } } catch ( IOException e ) { LOGGER . error ( e . getMessage ( ) ) ; } return created ; }


void addFillComponents  ( Container panel , int [ ] cols , int [ ] rows ) { Dimension filler = new Dimension ( 10 , 10 ) ; boolean filled_cell_11 = false ; CellConstraints cc = new CellConstraints ( ) ; if ( cols . length > 0 && rows . length > 0 ) { if ( cols [ 0 ] == 1 && rows [ 0 ] == 1 ) { panel . add ( Box . createRigidArea ( filler ) , cc . xy ( 1 , 1 ) ) ; filled_cell_11 = true ; } } for ( int index = 0 ; index < cols . length ; index ++ ) { if ( cols [ index ] == 1 && filled_cell_11 ) { continue ; } panel . add ( Box . createRigidArea ( filler ) , cc . xy ( cols [ index ] , 1 ) ) ; } for ( int index = 0 ; index < rows . length ; index ++ ) { if ( rows [ index ] == 1 && filled_cell_11 ) { continue ; } panel . add ( Box . createRigidArea ( filler ) , cc . xy ( 1 , rows [ index ] ) ) ; } }

Agrega componentes de llenado para vaciar las celdas en la primera fila y la primera columna de la cuadrícula.Esto asegura que el espaciado de la red sea el mismo que se muestra en el diseñador.


public INSECTFileDB ( String sPrefix , String sBaseDir ) { if ( sPrefix == null ) Prefix = "" ; else Prefix = sPrefix ; if ( sBaseDir == null ) BaseDir = "./" ; else BaseDir = sBaseDir ; }

Crea una nueva instancia de insectfiledb.


public LoadImplementor ( LoadModel model , LoadView view ) { this . model = model ; this . view = view ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Summon_A_TO_B  ( String skillcaster , String value0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201033 , skillcaster , value0 , skillname ) ; }

[% Skillcaster] convocada% 0 usando [% SkillName].


@ Override public void doctypeDecl  ( String rootElement , String publicId , String systemId , Augmentations augs ) throws XNIException { fSeenDoctypeDecl = true ; fRootElement . setValues ( null , rootElement , rootElement , null ) ; String eid = null ; try { eid = XMLEntityManager . expandSystemId ( systemId , fDocLocation . getExpandedSystemId ( ) , false ) ; } catch ( java . io . IOException e ) { } XMLDTDDescription grammarDesc = new XMLDTDDescription ( publicId , systemId , fDocLocation . getExpandedSystemId ( ) , eid , rootElement ) ; fDTDGrammar = fGrammarBucket . getGrammar ( grammarDesc ) ; if ( fDTDGrammar == null ) { if ( fGrammarPool != null && ( systemId != null || publicId != null ) ) { fDTDGrammar = ( DTDGrammar ) fGrammarPool . retrieveGrammar ( grammarDesc ) ; } } if ( fDTDGrammar == null ) { if ( ! fBalanceSyntaxTrees ) { fDTDGrammar = new DTDGrammar ( fSymbolTable , grammarDesc ) ; } else { fDTDGrammar = new BalancedDTDGrammar ( fSymbolTable , grammarDesc ) ; } } else { fValidationManager . setCachedDTD ( true ) ; } fGrammarBucket . setActiveGrammar ( fDTDGrammar ) ; if ( fDocumentHandler != null ) { fDocumentHandler . doctypeDecl ( rootElement , publicId , systemId , augs ) ; } }

Notifica la presencia de la línea DOCTYPE en el documento.


public boolean isCritical  ( ) { return true ; }

¿Es este un comando crítico que solo se puede ejecutar cuando no se está ejecutando otro comando?


public WallCreateCommentQuery createComment  ( UserActor actor , int postId ) { return new WallCreateCommentQuery ( getClient ( ) , actor , postId ) ; }

Agrega un comentario a un post en una pared de usuario o pared comunitaria.


@ Override public synchronized void put  ( String key , Entry entry ) { pruneIfNeeded ( entry . data . length ) ; File file = getFileForKey ( key ) ; try { BufferedOutputStream fos = new BufferedOutputStream ( new FileOutputStream ( file ) ) ; CacheHeader e = new CacheHeader ( key , entry ) ; boolean success = e . writeHeader ( fos ) ; if ( ! success ) { fos . close ( ) ; VolleyLog . d ( "Failed to write header for %s" , file . getAbsolutePath ( ) ) ; throw new IOException ( ) ; } fos . write ( entry . data ) ; fos . close ( ) ; putEntry ( key , e ) ; return ; } catch ( IOException e ) { } boolean deleted = file . delete ( ) ; if ( ! deleted ) { VolleyLog . d ( "Could not clean up file %s" , file . getAbsolutePath ( ) ) ; } }

Pone la entrada con la clave especificada en el caché.


public static boolean isDailyReminderSet  ( Context context ) { SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( context ) ; return prefs . getBoolean ( context . getString ( R . string . key_daily_reminder ) , true ) ; }

Devuelve VERDADERO si el usuario ha seleccionado ser notificado sobre eventos diarios


public void init$Children  ( ) { children = new ASTNode [ 2 ] ; }

Inicializa la matriz de niños al tamaño correcto.Inicializa la lista y opta a los niños NTA.


public void execute  ( ) throws BuildException  { if ( values . isEmpty ( ) ) { throw new BuildException ( "You must set at least one value!" , getLocation ( ) ) ; } if ( target == null ) { throw new BuildException ( "Target must be set!" , getLocation ( ) ) ; } for ( String val : values ) { log ( "Process '" + val + "' location with '" + target + "' target ..." , Project . MSG_VERBOSE ) ; CallTarget antCall = ( CallTarget ) getProject ( ) . createTask ( "antcall" ) ; antCall . init ( ) ; antCall . setLocation ( getLocation ( ) ) ; antCall . setTarget ( target ) ; Property prop = antCall . createParam ( ) ; prop . setName ( name ) ; prop . setValue ( val ) ; antCall . execute ( ) ; } }


public int pointsToSetHashCode  ( ) { final int PRIME = 31 ; int result = 1 ; for ( AllocAndContext elem : this ) { result = PRIME * result + elem . hashCode ( ) ; } return result ; }

Calcula un código hash basado en el contenido de los puntos-para establecer.Tenga en cuenta que Hashcode () no se sobrescribe a propósito.Esto se debe a que la chira se basa en la comparación por la identidad del objeto.


public void read  ( Reader reader , Collection < String > knownSamples , boolean clear ) throws IOException { int countNotFound = 0 ; if ( clear ) clear ( ) ; try ( BufferedReader r = new BufferedReader ( reader ) ) { String aLine = r . readLine ( ) ; while ( aLine != null && aLine . trim ( ) . length ( ) == 0 ) { aLine = r . readLine ( ) ; } if ( aLine != null ) { String [ ] tokens = Basic . splitWithQuotes ( aLine , '\t' ) ; if ( tokens . length < 1 || ! tokens [ 0 ] . startsWith ( SAMPLE_ID ) ) { throw new IOException ( SAMPLE_ID + " tag not found, no sample-attributes data..." ) ; } final int tokensPerLine = tokens . length ; final Set < String > newAttributes = new HashSet < > ( ) ; final List < String > attributesOrder = new LinkedList < > ( ) ; for ( int i = 1 ; i < tokensPerLine ; i ++ ) { String attribute = tokens [ i ] ; if ( ! isSecretAttribute ( attribute ) && ! isHiddenAttribute ( attribute ) && ( newAttributes . contains ( attribute ) || getAttributeOrder ( ) . contains ( attribute ) ) ) { int count = 1 ; while ( newAttributes . contains ( attribute + "." + count ) || getAttributeOrder ( ) . contains ( attribute + "." + count ) ) { count ++ ; } System . err . println ( "Attribute " + attribute + " already exists, renaming to: " + attribute + "." + count ) ; attribute += "." + count ; } newAttributes . add ( attribute ) ; attributesOrder . add ( attribute ) ; } final String [ ] pos2attribute = attributesOrder . toArray ( new String [ attributesOrder . size ( ) ] ) ; for ( int i = 0 ; i < pos2attribute . length ; i ++ ) { if ( isHiddenAttribute ( pos2attribute [ i ] ) ) pos2attribute [ i ] = null ; else getAttributeOrder ( ) . add ( pos2attribute [ i ] ) ; } final Set < String > mentionedSamples = new HashSet < > ( ) ; while ( ( aLine = r . readLine ( ) ) != null ) { aLine = aLine . trim ( ) ; if ( aLine . startsWith ( "#" ) ) { if ( description == null ) description = aLine ; else if ( ! description . equals ( "#EOF" ) && ! description . equals ( "# EOF" ) ) description += " " + aLine ; } else { tokens = Basic . splitWithQuotes ( aLine , '\t' ) ; if ( tokens . length > 0 ) { if ( tokens . length != tokensPerLine ) throw new IOException ( "Expected " + tokensPerLine + " tokens, got " + tokens . length + " in line: " + aLine ) ; final String sample = tokens [ 0 ] . trim ( ) ; if ( sample . length ( ) == 0 ) continue ; if ( mentionedSamples . contains ( sample ) ) { System . err . println ( "Sample occurs more than once: " + sample + ", ignoring repeated occurrences" ) ; continue ; } mentionedSamples . add ( sample ) ; if ( knownSamples == null || knownSamples . contains ( sample ) ) { Map < String , Object > attribute2value = new HashMap < > ( ) ; for ( int i = 1 ; i < tokensPerLine ; i ++ ) { { String attribute = pos2attribute [ i - 1 ] ; if ( attribute != null ) attribute2value . put ( attribute , tokens [ i ] . equals ( "NA" ) ? null : tokens [ i ] ) ; } } addSample ( sample , attribute2value , true , true ) ; } else { System . err . println ( "Sample mentioned in metadata is not present in document, skipping: " + sample ) ; countNotFound ++ ; } } } } setAllAttributeTypesFromValues ( ) ; } } finally { if ( countNotFound > 0 ) NotificationsInSwing . showWarning ( MainViewer . getLastActiveFrame ( ) , "Loaded metadata, ignored " + countNotFound + " unknown input samples." ) ; else { if ( knownSamples != null ) { for ( String sample : knownSamples ) putSampleLabel ( sample , sample ) ; } } } }


@ Deprecated public static boolean hasParentType  ( Delegator delegator , String entityName , String primaryKey , String childType , String parentTypeField , String parentType ) { return EntityTypeUtil . hasParentType ( delegator , entityName , primaryKey , childType , parentTypeField , parentType ) ; }

Un método genérico que se utilizará en los tipos, por ejemplo.Tipo de producto.Recurtive al nivel de la raíz en la jerarquía de tipo y verifica si el tipo STICTYPE especificado tiene parentestype como su padre en algún lugar de la jerarquía.


GSMessageImpl duplicate  ( ) throws JMSException  { GSSimpleMessageImpl dup = new GSSimpleMessageImpl ( ) ; copyTo ( dup ) ; return dup ; }

Crea un objeto duplicado (clon profundo) del mensaje.


public void run  ( IRunnableWithProgress runnable , IProgressMonitor monitor ) throws InvocationTargetException , InterruptedException { runnable . run ( monitor ) ; }


public SelectedSymbolMask ( SymbolMaskEnum level ) { if ( maskOrderlist . isEmpty ( ) ) { maskOrderlist . add ( SymbolMaskEnum . E_STYLED_LAYER ) ; maskOrderlist . add ( SymbolMaskEnum . E_STYLE ) ; maskOrderlist . add ( SymbolMaskEnum . E_FEATURE_TYPE_STYLE ) ; maskOrderlist . add ( SymbolMaskEnum . E_RULE ) ; maskOrderlist . add ( SymbolMaskEnum . E_SYMBOLIZER ) ; } for ( SymbolMaskEnum key : maskOrderlist ) { maskList . add ( key ) ; if ( key == level ) { break ; } } }

Instantánea una nueva máscara de símbolo seleccionado.


public static SM_SYSTEM_MESSAGE STR_MSG_GLORY_POINT_LOSE_PERSONAL  ( int num0 ) { return new SM_SYSTEM_MESSAGE ( 1402209 , num0 ) ; }

Perdiste los puntos de gloria personal% num0.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Spin_END_A_TO_B  ( String skilltarget ) { return new SM_SYSTEM_MESSAGE ( 1200909 , skilltarget ) ; }


@ Override public void postEvent  ( EventLogEvent event ) { AuditLogEntryEnvelope auditLogEntryEnvelope = new AuditLogEntryEnvelope ( createFromEvent ( event ) , repository ) ; LOGGER . debug ( "posting auditLogEntryEnvelope: {}" , auditLogEntryEnvelope ) ; threadPoolExecutor . submit ( auditLogEntryEnvelope ) ; LOGGER . debug ( "posted auditLogEntryEnvelope: {}" , auditLogEntryEnvelope ) ; }

Será llamado por el eventoLogImpl con eventos que se registró el oyente.


public String toString  ( ) { return getClass ( ) . getName ( ) + "[" + lease + "]" ; }

Devuelve una cadena creada a partir del nombre de la clase proxy y el resultado de llamar a Tostring en el contrato de arrendamiento contenido.


public static void dropAllTables  ( SQLiteDatabase db , boolean ifExists ) { VideoBeanDao . dropTable ( db , ifExists ) ; }

Gotas de la tabla de base de datos subyacente utilizando DAOS.


public DocsGetQuery count  ( Integer value ) { return unsafeParam ( "count" , value ) ; }

Número de documentos para devolver.Por defecto, todos los documentos.


private int indexOf  ( int tabId ) { return mTabIdList . indexOf ( tabId ) ; }

Encuentra el índice de la lengua de pestaña dada.


protected boolean receiveAndExecute  ( SpaceDataEventListener eventListener ) throws Throwable , TransactionException { Object template = getReceiveTemplate ( ) ; if ( triggerOperationHandler != null ) { Object trigger ; try { trigger = triggerOperationHandler . triggerReceive ( template , getGigaSpace ( ) , receiveTimeout ) ; } catch ( SpaceInterruptedException e ) { return false ; } if ( logger . isTraceEnabled ( ) ) { logger . trace ( message ( "Trigger operation handler returned [" + trigger + "]" ) ) ; } if ( trigger == null ) { return false ; } if ( triggerOperationHandler . isUseTriggerAsTemplate ( ) ) { template = trigger ; } } if ( this . getTransactionManager ( ) != null ) { TransactionStatus status = this . getTransactionManager ( ) . getTransaction ( this . getTransactionDefinition ( ) ) ; boolean messageReceived ; try { messageReceived = doReceiveAndExecute ( eventListener , template , status ) ; } catch ( RuntimeException ex ) { rollbackOnException ( status , ex ) ; throw ex ; } catch ( Error err ) { rollbackOnException ( status , err ) ; throw err ; } if ( ! status . isCompleted ( ) ) { if ( ! messageReceived || status . isRollbackOnly ( ) ) { this . getTransactionManager ( ) . rollback ( status ) ; } else { this . getTransactionManager ( ) . commit ( status ) ; } } return messageReceived ; } return doReceiveAndExecute ( eventListener , template , null ) ; }

Ejecute al oyente para obtener un mensaje recibido del consumidor dado, envolviendo la operación completa en una transacción externa si se exige.


@ Override public List < WebElement > findElementsByLinkText  ( String linkText ) { return ( ( FindsByLinkText ) super . getWrappedDriver ( ) ) . findElementsByLinkText ( linkText ) ; }

Encuentra elementos por texto de enlace.


@ NotNull public static String ensureNamespaceImported  ( @ NotNull XmlFile file , @ NotNull String namespaceUri , @ Nullable String suggestedPrefix ) { final XmlTag rootTag = file . getRootTag ( ) ; assert rootTag != null ; final XmlElementFactory elementFactory = XmlElementFactory . getInstance ( file . getProject ( ) ) ; String prefix = rootTag . getPrefixByNamespace ( namespaceUri ) ; if ( prefix != null ) { return prefix ; } ApplicationManager . getApplication ( ) . assertWriteAccessAllowed ( ) ; if ( suggestedPrefix != null ) { prefix = suggestedPrefix ; } else if ( TOOLS_URI . equals ( namespaceUri ) ) { prefix = TOOLS_PREFIX ; } else if ( ANDROID_URI . equals ( namespaceUri ) ) { prefix = ANDROID_NS_NAME ; } else { prefix = APP_PREFIX ; } if ( rootTag . getAttribute ( XMLNS_PREFIX + prefix ) != null ) { String base = prefix ; for ( int i = 2 ; ; i ++ ) { prefix = base + Integer . toString ( i ) ; if ( rootTag . getAttribute ( XMLNS_PREFIX + prefix ) == null ) { break ; } } } String name = XMLNS_PREFIX + prefix ; final XmlAttribute xmlnsAttr = elementFactory . createXmlAttribute ( name , namespaceUri ) ; final XmlAttribute [ ] attributes = rootTag . getAttributes ( ) ; XmlAttribute next = attributes . length > 0 ? attributes [ 0 ] : null ; for ( XmlAttribute attribute : attributes ) { String attributeName = attribute . getName ( ) ; if ( ! attributeName . startsWith ( XMLNS_PREFIX ) || attributeName . compareTo ( name ) > 0 ) { next = attribute ; break ; } } if ( next != null ) { rootTag . addBefore ( xmlnsAttr , next ) ; } else { rootTag . add ( xmlnsAttr ) ; } return prefix ; }

Asegura que el espacio de nombres dado se importa en el documento XML dado.


public NotIsolatedAnalysis ( DirectedGraph < Unit > dg , LatestComputation latest , Map < Unit , EquivalentValue > equivRhsMap ) { this ( dg , latest , equivRhsMap , new ArrayPackedSet < EquivalentValue > ( new CollectionFlowUniverse < EquivalentValue > ( equivRhsMap . values ( ) ) ) ) ; }

Realiza automáticamente el análisis de aislamiento en el gráfico <código> DG </ CODE> utilizando el Último cálculo <código> Último </ código>. <br> El <código> EquivrhSMAP </ código> es solo para evitar hacer estosCosas de nuevo ...


public void changeCurrentItem  ( int indexToChange ) { if ( indexToChange < 0 || indexToChange > spaceItems . size ( ) ) throw new ArrayIndexOutOfBoundsException ( "Please be more careful, we do't have such item : " + indexToChange ) ; else { updateSpaceItems ( indexToChange ) ; } }

Cambiar el elemento seleccionado actual al índice dado


@ Deployment ( resources = { "process/errorHandling.bpmn20.xml" } ) public void testCamelRouteWorksAsIntended  ( ) throws Exception  { Map < String , Object > variables = new HashMap < String , Object > ( ) ; variables . put ( "routing" , Routing . DEFAULT ) ; ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "ErrorHandling" , variables ) ; Job job = managementService . createJobQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ( ) ; assertNotNull ( job ) ; managementService . executeJob ( job . getId ( ) ) ; Thread . sleep ( WAIT ) ; assertEquals ( "Process instance not completed" , 0 , runtimeService . createProcessInstanceQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . count ( ) ) ; }

La instancia del proceso debe eliminarse después de la finalización.Funciona según lo previsto, si ninguna excepción interrumpe la ruta del camello.


@ Override public boolean equals  ( Object object ) { if ( object == this ) { return true ; } if ( object instanceof MultivariateSummaryStatistics == false ) { return false ; } MultivariateSummaryStatistics other = ( MultivariateSummaryStatistics ) object ; return other . getN ( ) == getN ( ) && MathArrays . equalsIncludingNaN ( other . getGeometricMean ( ) , getGeometricMean ( ) ) && MathArrays . equalsIncludingNaN ( other . getMax ( ) , getMax ( ) ) && MathArrays . equalsIncludingNaN ( other . getMean ( ) , getMean ( ) ) && MathArrays . equalsIncludingNaN ( other . getMin ( ) , getMin ( ) ) && MathArrays . equalsIncludingNaN ( other . getSum ( ) , getSum ( ) ) && MathArrays . equalsIncludingNaN ( other . getSumSq ( ) , getSumSq ( ) ) && MathArrays . equalsIncludingNaN ( other . getSumLog ( ) , getSumLog ( ) ) && other . getCovariance ( ) . equals ( getCovariance ( ) ) ; }

Devuelve VERDADERO IFF <CÓDIGO> OBJETO </ CODE> es una instancia </ Code> MultivariateSummaryStatisticsTatisticsTatisticsTatisticsTatistics y todas las estadísticas tienen los mismos valores que esto.


private void processResultFromGallery  ( int destType , Intent intent ) { Uri uri = intent . getData ( ) ; if ( uri == null ) { if ( croppedUri != null ) { uri = croppedUri ; } else { this . failPicture ( "null data from photo library" ) ; return ; } } int rotate = 0 ; String fileLocation = FileHelper . getRealPath ( uri , this . cordova ) ; Log . d ( LOG_TAG , "File locaton is: " + fileLocation ) ; if ( this . mediaType != PICTURE ) { this . callbackContext . success ( fileLocation ) ; } else { if ( this . targetHeight == - 1 && this . targetWidth == - 1 && ( destType == FILE_URI || destType == NATIVE_URI ) && ! this . correctOrientation ) { this . callbackContext . success ( uri . toString ( ) ) ; } else { String uriString = uri . toString ( ) ; String mimeType = FileHelper . getMimeType ( uriString , this . cordova ) ; if ( ! ( "image/jpeg" . equalsIgnoreCase ( mimeType ) || "image/png" . equalsIgnoreCase ( mimeType ) ) ) { Log . d ( LOG_TAG , "I either have a null image path or bitmap" ) ; this . failPicture ( "Unable to retrieve path to picture!" ) ; return ; } Bitmap bitmap = null ; try { bitmap = getScaledBitmap ( uriString ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } if ( bitmap == null ) { Log . d ( LOG_TAG , "I either have a null image path or bitmap" ) ; this . failPicture ( "Unable to create bitmap!" ) ; return ; } if ( this . correctOrientation ) { rotate = getImageOrientation ( uri ) ; if ( rotate != 0 ) { Matrix matrix = new Matrix ( ) ; matrix . setRotate ( rotate ) ; try { bitmap = Bitmap . createBitmap ( bitmap , 0 , 0 , bitmap . getWidth ( ) , bitmap . getHeight ( ) , matrix , true ) ; this . orientationCorrected = true ; } catch ( OutOfMemoryError oom ) { this . orientationCorrected = false ; } } } if ( destType == DATA_URL ) { this . processPicture ( bitmap , this . encodingType ) ; } else if ( destType == FILE_URI || destType == NATIVE_URI ) { if ( ( this . targetHeight > 0 && this . targetWidth > 0 ) || ( this . correctOrientation && this . orientationCorrected ) ) { try { String modifiedPath = this . ouputModifiedBitmap ( bitmap , uri ) ; this . callbackContext . success ( "file://" + modifiedPath + "?" + System . currentTimeMillis ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; this . failPicture ( "Error retrieving image." ) ; } } else { this . callbackContext . success ( fileLocation ) ; } } if ( bitmap != null ) { bitmap . recycle ( ) ; bitmap = null ; } System . gc ( ) ; } } }

Aplica toda la transformación necesaria a la imagen recibida de la galería.


Devuelve el tamaño de este objeto CP_INFO.


private static void clearReferencesRmiTargets  ( ClassLoader classLoader ) { try { Class < ? > objectTargetClass = Class . forName ( "sun.rmi.transport.Target" ) ; Field cclField = objectTargetClass . getDeclaredField ( "ccl" ) ; cclField . setAccessible ( true ) ; Class < ? > objectTableClass = Class . forName ( "sun.rmi.transport.ObjectTable" ) ; Field objTableField = objectTableClass . getDeclaredField ( "objTable" ) ; objTableField . setAccessible ( true ) ; Object objTable = objTableField . get ( null ) ; if ( objTable == null ) { return ; } if ( objTable instanceof Map < ? , ? > ) { Iterator < ? > iter = ( ( Map < ? , ? > ) objTable ) . values ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Object obj = iter . next ( ) ; Object cclObject = cclField . get ( obj ) ; if ( classLoader == cclObject ) { iter . remove ( ) ; } } } Field implTableField = objectTableClass . getDeclaredField ( "implTable" ) ; implTableField . setAccessible ( true ) ; Object implTable = implTableField . get ( null ) ; if ( implTable == null ) { return ; } if ( implTable instanceof Map < ? , ? > ) { Iterator < ? > iter = ( ( Map < ? , ? > ) implTable ) . values ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Object obj = iter . next ( ) ; Object cclObject = cclField . get ( obj ) ; if ( classLoader == cclObject ) { iter . remove ( ) ; } } } } catch ( Exception e ) { logger . log ( Level . WARNING , "Failed to clear context class loader referenced from sun.rmi.transport.Target " , e ) ; } }

Esto depende de los internos del sol JVM, por lo que lo hace todo por reflejo.


public void removeString  ( String word , Tuple t ) { removeLeaf ( root , word , t , 0 ) ; }

Retire una palabra / pareja de tuplas de la trie.


@ Override public boolean isCritical  ( ) { return true ; }

¿Es este un comando crítico que solo se puede ejecutar cuando no se está ejecutando otro comando?


public static float readLittleEndianFloat  ( DataInputStream dataStream ) throws IOException { return Float . intBitsToFloat ( readLittleEndianInt ( dataStream ) ) ; }

Lee el siguiente flotador desde el DataInputStream dado, donde los datos están en Little Endian.


public void addEvidence  ( DocumentNGramGraph dDoc , String sFinalCategory ) { addEvidence ( new Decision ( dDoc , sFinalCategory , 1.0 , new HashMap ( 0 ) ) , sFinalCategory ) ; }

Actualiza la evidencia del determinante con nuevos datos, para corregir decisiones erróneas.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_BoostSkillCastingTime_A_TO_ME  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200638 , skillcaster , skillname ) ; }

[% Skillcaster] ha cambiado su velocidad de fundición utilizando [% de habilidad].