public TriangularDistribution ( double a , double c , double b ) throws MathIllegalArgumentException { super ( ) ; if ( a >= b ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . LOWER_BOUND_NOT_BELOW_UPPER_BOUND , a , b , false ) ; } if ( c < a ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . NUMBER_TOO_SMALL , c , a , true ) ; } if ( c > b ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . NUMBER_TOO_LARGE , c , b , true ) ; } this . a = a ; this . c = c ; this . b = b ; }

Crea una distribución real triangular utilizando el límite inferior dado, límite superior y modo.


public void actionPerformed  ( ActionEvent ev ) { execute ( "set pc1=1 pc2=2 pc3=3;" ) ; }


Instantánea un nuevo símbolo de renderizado.


public void destroy  ( ) { tokenizer = null ; }


public static ViewNode parseFlatString  ( @ NotNull byte [ ] bytes ) { String line ; ViewNode root = null ; ViewNode lastNode = null ; int lastWhitespaceCount = Integer . MIN_VALUE ; Stack < ViewNode > stack = new Stack < ViewNode > ( ) ; final BufferedReader in = new BufferedReader ( new InputStreamReader ( new ByteArrayInputStream ( bytes ) , Charsets . UTF_8 ) ) ; try { while ( ( line = in . readLine ( ) ) != null ) { if ( "DONE." . equalsIgnoreCase ( line ) ) { break ; } int whitespaceCount = 0 ; while ( line . charAt ( whitespaceCount ) == ' ' ) { whitespaceCount ++ ; } if ( lastWhitespaceCount < whitespaceCount ) { stack . push ( lastNode ) ; } else if ( ! stack . isEmpty ( ) ) { int count = lastWhitespaceCount - whitespaceCount ; for ( int i = 0 ; i < count ; i ++ ) { stack . pop ( ) ; } } lastWhitespaceCount = whitespaceCount ; ViewNode parent = null ; if ( ! stack . isEmpty ( ) ) { parent = stack . peek ( ) ; } lastNode = new ViewNode ( parent , line . trim ( ) ) ; if ( root == null ) { root = lastNode ; } } } catch ( IOException e ) { return null ; } if ( root != null ) { root . updateNodeDrawn ( true ) ; } return root ; }

Analiza la representación de cuerdas planas de un nodo de vista y devuelve el nodo raíz.


private void populateList  ( ) { children = new ArrayList < ArrayList < Armor > > ( ) ; armors = DataManager . get ( getActivity ( ) ) . queryArmorArrayType ( mType ) ; ArrayList < Armor > g1 = new ArrayList < Armor > ( ) ; ArrayList < Armor > g2 = new ArrayList < Armor > ( ) ; ArrayList < Armor > g3 = new ArrayList < Armor > ( ) ; ArrayList < Armor > g4 = new ArrayList < Armor > ( ) ; ArrayList < Armor > g5 = new ArrayList < Armor > ( ) ; for ( int i = 0 ; i < armors . size ( ) ; i ++ ) { if ( filter == null || filter . armorPassesFilter ( armors . get ( i ) ) ) { switch ( armors . get ( i ) . getSlot ( ) ) { case "Head" : g1 . add ( armors . get ( i ) ) ; break ; case "Body" : g2 . add ( armors . get ( i ) ) ; break ; case "Arms" : g3 . add ( armors . get ( i ) ) ; break ; case "Waist" : g4 . add ( armors . get ( i ) ) ; break ; case "Legs" : g5 . add ( armors . get ( i ) ) ; break ; default : break ; } } } children . add ( g1 ) ; children . add ( g2 ) ; children . add ( g3 ) ; children . add ( g4 ) ; children . add ( g5 ) ; if ( adapter != null ) { adapter . notifyDataSetChanged ( ) ; } }

Actualiza la lista de armaduras de acuerdo con los criterios del filtro.


public void resetViewPortOffsets  ( ) { mCustomViewPortEnabled = false ; calculateOffsets ( ) ; }

Restablece todas las compensaciones personalizadas establecidas a través del método SetViewPortoffsets (...).Permite que la tabla vuelva a calcular todas las compensaciones automáticamente.


private void internal_updateSymbolDoubleField  ( Map < String , String > options , FieldIdEnum field , String key ) { double value = fieldConfigVisitor . getDouble ( field ) ; Double defaultValue = ( Double ) getDefaultFieldValue ( field ) ; if ( defaultValue == null ) { ConsoleManager . getInstance ( ) . error ( this , "Failed to find default for field : " + field ) ; } else if ( value != defaultValue ) { options . put ( key , String . valueOf ( value ) ) ; } }


private void updateSegmentButtons  ( ) { boolean enabled = false ; if ( wktGeometry != null ) { WKTType geometryType = wktGeometry . getGeometryType ( ) ; if ( geometryType != null ) { if ( geometryType . canHaveMultipleShapes ( ) ) { enabled = ! multiListModel . isEmpty ( ) ; } else { enabled = true ; } } } addSegmentButton . setEnabled ( enabled ) ; removeSegmentButton . setEnabled ( ! segmentList . isSelectionEmpty ( ) ) ; }


public GroupsGetMembersQueryWithFields sort  ( GroupsGetMembersSort value ) { return unsafeParam ( "sort" , value ) ; }


private List < CarbonDictionaryColumnMetaChunk > readDictionaryMetadataFile  ( ) throws IOException  { CarbonDictionaryMetadataReaderImpl columnMetadataReaderImpl = new CarbonDictionaryMetadataReaderImpl ( this . carbonStorePath , this . carbonTableIdentifier , this . columnIdentifier ) ; List < CarbonDictionaryColumnMetaChunk > dictionaryMetaChunkList = null ; try { dictionaryMetaChunkList = columnMetadataReaderImpl . read ( ) ; } finally { columnMetadataReaderImpl . close ( ) ; } return dictionaryMetaChunkList ; }

Este método leerá el archivo de metadatos del diccionario y devolverá el diccionario Meta Chunks


public void drawChart  ( Graphics2D gc ) { SelectionGraphics < String [ ] > sgc = ( gc instanceof SelectionGraphics ? ( SelectionGraphics < String [ ] > ) gc : null ) ; gc . setFont ( getFont ( ChartViewer . FontKeys . XAxisFont . toString ( ) ) ) ; int y0 = getHeight ( ) - bottomMargin ; int y1 = topMargin ; double topY ; switch ( scalingType ) { case PERCENT : topY = 101 ; break ; case LOG : topY = computeMaxYAxisValueLogScale ( getMaxValue ( ) ) ; break ; case SQRT : topY = Math . sqrt ( getMaxValue ( ) ) ; break ; default : topY = 1.1 * getMaxValue ( ) ; } double yFactor = ( y0 - y1 ) / topY ; int x0 = leftMargin ; int x1 = getWidth ( ) - rightMargin ; if ( x0 >= x1 ) return ; int numberOfSeries = getChartData ( ) . getNumberOfSeries ( ) ; double xStep = ( x1 - x0 ) / ( 2 * numberOfSeries ) ; double bigSpace = Math . max ( 2 , Math . min ( 10 , xStep ) ) ; xStep = ( x1 - x0 - bigSpace * numberOfSeries ) / numberOfSeries ; Point [ ] previousPoint = new Point [ getChartData ( ) . getNumberOfClasses ( ) ] ; java . util . List < Triplet < String , String , int [ ] > > list = new LinkedList < > ( ) ; int d = 0 ; for ( String series : getChartData ( ) . getSeriesNames ( ) ) { if ( showXAxis ) { double xLabel = x0 + bigSpace + d * bigSpace + ( d + 0.5 ) * xStep ; Point2D apt = new Point2D . Double ( xLabel , getHeight ( ) - bottomMargin + 10 ) ; String label = seriesLabelGetter . getLabel ( series ) ; Dimension labelSize = Basic . getStringSize ( gc , label , gc . getFont ( ) ) . getSize ( ) ; if ( classLabelAngle == 0 ) { apt . setLocation ( apt . getX ( ) - labelSize . getWidth ( ) / 2 , apt . getY ( ) ) ; } else if ( classLabelAngle > Math . PI / 2 ) { apt = Geometry . translateByAngle ( apt , classLabelAngle , - labelSize . width ) ; } if ( getChartData ( ) . getChartSelection ( ) . isSelected ( series , null ) ) { gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; fillAndDrawRect ( gc , apt . getX ( ) , apt . getY ( ) , labelSize . width , labelSize . height , classLabelAngle , ProgramProperties . SELECTION_COLOR , ProgramProperties . SELECTION_COLOR_DARKER ) ; } gc . setColor ( getFontColor ( ChartViewer . FontKeys . XAxisFont . toString ( ) , Color . BLACK ) ) ; if ( sgc != null ) sgc . setCurrentItem ( new String [ ] { series , null } ) ; drawString ( gc , label , apt . getX ( ) , apt . getY ( ) , classLabelAngle ) ; if ( sgc != null ) sgc . clearCurrentItem ( ) ; } double currentHeight = y0 ; double currentValueForLog = 0 ; int c = 0 ; for ( String className : getChartData ( ) . getClassNames ( ) ) { double value ; if ( scalingType == ChartViewer . ScalingType . PERCENT ) { double total = getChartData ( ) . getTotalForSeriesIncludingDisabledAttributes ( series ) ; if ( total == 0 ) value = 0 ; else value = 100 * getChartData ( ) . getValueAsDouble ( series , className ) / total ; } else if ( scalingType == ChartViewer . ScalingType . LOG ) { value = getChartData ( ) . getValueAsDouble ( series , className ) ; if ( value >= 1 ) { value = Math . log10 ( value + currentValueForLog ) ; if ( currentValueForLog >= 1 ) value -= Math . log10 ( currentValueForLog ) ; } currentValueForLog += getChartData ( ) . getValueAsDouble ( series , className ) ; } else if ( scalingType == ChartViewer . ScalingType . SQRT ) { value = getChartData ( ) . getValueAsDouble ( series , className ) ; if ( value >= 1 ) { value = Math . sqrt ( value + currentValueForLog ) ; if ( currentValueForLog >= 1 ) value -= Math . sqrt ( currentValueForLog ) ; } currentValueForLog += getChartData ( ) . getValueAsDouble ( series , className ) ; } else value = getChartData ( ) . getValueAsDouble ( series , className ) ; double xBar = x0 + bigSpace + d * bigSpace + d * xStep ; double height = value * yFactor ; Point aPt = new Point ( ( int ) Math . round ( xBar + xStep / 2.0 ) , ( int ) Math . round ( currentHeight - height ) ) ; currentHeight -= height ; Point bPt = previousPoint [ c ] ; if ( bPt == null && numberOfSeries == 1 ) bPt = new Point ( aPt . x - 2 , aPt . y ) ; if ( bPt != null ) { Triplet < String , String , int [ ] > triplet = new Triplet < > ( series , className , new int [ ] { bPt . x , bPt . y , aPt . x , aPt . y } ) ; list . add ( triplet ) ; } previousPoint [ c ] = aPt ; c ++ ; } d ++ ; } list = Basic . reverseList ( list ) ; for ( Triplet < String , String , int [ ] > pair : list ) { String series = pair . get1 ( ) ; String className = pair . get2 ( ) ; int [ ] coords = pair . get3 ( ) ; Color color = getChartColors ( ) . getClassColor ( class2HigherClassMapper . get ( className ) ) ; gc . setColor ( color ) ; int [ ] xs = new int [ ] { coords [ 0 ] , coords [ 2 ] , coords [ 2 ] , coords [ 0 ] } ; int [ ] ys = new int [ ] { coords [ 1 ] , coords [ 3 ] , y0 , y0 } ; gc . fillPolygon ( xs , ys , 4 ) ; gc . setColor ( color . darker ( ) ) ; if ( sgc != null ) sgc . setCurrentItem ( new String [ ] { series , className } ) ; gc . drawLine ( coords [ 0 ] , coords [ 1 ] , coords [ 2 ] , coords [ 3 ] ) ; if ( sgc != null ) sgc . clearCurrentItem ( ) ; } Triplet < String , String , int [ ] > current = null ; for ( Triplet < String , String , int [ ] > next : list ) { if ( current != null ) { String className = current . get2 ( ) ; String series = current . get1 ( ) ; int [ ] coords = current . get3 ( ) ; if ( getChartData ( ) . getChartSelection ( ) . isSelected ( null , className ) ) { gc . setStroke ( HEAVY_STROKE ) ; gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; gc . drawLine ( coords [ 0 ] , coords [ 1 ] , coords [ 2 ] , coords [ 3 ] ) ; coords = next . get3 ( ) ; gc . drawLine ( coords [ 0 ] , coords [ 1 ] , coords [ 2 ] , coords [ 3 ] ) ; gc . setStroke ( NORMAL_STROKE ) ; } else if ( getChartData ( ) . getChartSelection ( ) . isSelected ( series , null ) ) { gc . setStroke ( HEAVY_STROKE ) ; gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; gc . drawOval ( coords [ 2 ] - 1 , coords [ 3 ] - 1 , 2 , 2 ) ; gc . setStroke ( NORMAL_STROKE ) ; } } current = next ; } if ( current != null ) { String className = current . get2 ( ) ; String series = current . get1 ( ) ; int [ ] coords = current . get3 ( ) ; if ( getChartData ( ) . getChartSelection ( ) . isSelected ( null , className ) ) { gc . setStroke ( HEAVY_STROKE ) ; gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; gc . drawLine ( coords [ 0 ] , coords [ 1 ] , coords [ 2 ] , coords [ 3 ] ) ; gc . setStroke ( NORMAL_STROKE ) ; } else if ( getChartData ( ) . getChartSelection ( ) . isSelected ( series , null ) ) { gc . setStroke ( HEAVY_STROKE ) ; gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; gc . drawOval ( coords [ 2 ] - 1 , coords [ 3 ] - 1 , 2 , 2 ) ; gc . setStroke ( NORMAL_STROKE ) ; } } }

Dibuja barras con colores que representan clases.


public static final double combinationsOfNByK  ( int n , int k ) { return gr . demokritos . iit . jinsect . utils . factorial ( n , k ) ; }

Devuelve el número de grupos de miembros de K elegidos de los elementos n.


public VideoHideCatalogSectionQuery ( VkApiClient client , UserActor actor , int sectionId ) { super ( client , "video.hideCatalogSection" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; sectionId ( sectionId ) ; }

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


@ Override public boolean onUnbind  ( Intent intent ) { mOperationsBinder . clearListeners ( ) ; return false ; }

Llamado cuando todos los clientes encuadernados no se unieron.


public boolean isInterfaceSuperinterfaceOf  ( SootClass parent , SootClass possibleChild ) { parent . checkLevel ( SootClass . HIERARCHY ) ; possibleChild . checkLevel ( SootClass . HIERARCHY ) ; return getSuperinterfacesOf ( possibleChild ) . contains ( parent ) ; }

Devuelve VERDADERO si el padre es un superinterface de POSSIBLECHILL.


private Collection < Var > migrateColumnValueAsResource  ( Var instance , String columnName , Object columnValue , String tableName ) { if ( columnValue == null ) { return Collections . emptyList ( ) ; } return Collections . singleton ( var ( ) . id ( id ( instance ) ) . has ( namer . resourceName ( tableName , columnName ) , columnValue ) ) ; }

Migrar un valor de columna como un recurso


public boolean onActivityResult  ( int requestCode , int resultCode , Intent intent ) { CordovaPlugin callback = activityResultCallback ; if ( callback == null && initCallbackService != null ) { savedResult = new ActivityResultHolder ( requestCode , resultCode , intent ) ; if ( pluginManager != null ) { callback = pluginManager . getPlugin ( initCallbackService ) ; if ( callback != null ) { callback . onRestoreStateForActivityResult ( savedPluginState . getBundle ( callback . getServiceName ( ) ) , new ResumeCallback ( callback . getServiceName ( ) , pluginManager ) ) ; } } } activityResultCallback = null ; if ( callback != null ) { Log . d ( TAG , "Sending activity result to plugin" ) ; initCallbackService = null ; savedResult = null ; callback . onActivityResult ( requestCode , resultCode , intent ) ; return true ; } Log . w ( TAG , "Got an activity result, but no plugin was registered to receive it" + ( savedResult != null ? " yet!" : "." ) ) ; return false ; }

Ruta el resultado al complemento en espera.Devuelve Falso si ningún complemento estaba esperando.


public boolean isCompatibleWith  ( @ NotNull ResourceTypeAllowedValues other ) { for ( ResourceType type : other . types ) { if ( isTypeAllowed ( type ) ) { return true ; } } return false ; }

Devuelve VERDADERO si la restricción de tipo de recurso es compatible con la otra restricción de tipo de recurso


public VendorOptionRasterFactory ( Class < ? > panelId , FunctionNameInterface functionManager , RasterSymbolizerDetails parentPanel ) { vendorOptionGeoServerContrastEnhancementNormalizeRed = new VOGeoServerContrastEnhancementNormalizeRed ( panelId , parentPanel ) ; vendorOptionGeoServerContrastEnhancementNormalizeGreen = new VOGeoServerContrastEnhancementNormalizeGreen ( panelId , parentPanel ) ; vendorOptionGeoServerContrastEnhancementNormalizeBlue = new VOGeoServerContrastEnhancementNormalizeBlue ( panelId , parentPanel ) ; vendorOptionGeoServerContrastEnhancementNormalizeGrey = new VOGeoServerContrastEnhancementNormalizeGrey ( panelId , parentPanel ) ; vendorOptionGeoServerContrastEnhancementNormalizeOverall = new VOGeoServerContrastEnhancementNormalizeOverall ( panelId , parentPanel ) ; vendorOptionList . add ( vendorOptionGeoServerContrastEnhancementNormalizeRed ) ; vendorOptionList . add ( vendorOptionGeoServerContrastEnhancementNormalizeGreen ) ; vendorOptionList . add ( vendorOptionGeoServerContrastEnhancementNormalizeBlue ) ; vendorOptionList . add ( vendorOptionGeoServerContrastEnhancementNormalizeGrey ) ; vendorOptionList . add ( vendorOptionGeoServerContrastEnhancementNormalizeOverall ) ; PrefManager . getInstance ( ) . addVendorOptionListener ( this ) ; }

Instantánea una nueva fábrica de texto de opción de proveedor.


protected boolean isParentInSvnIgnore  ( ) throws SVNException  { StatusCacheManager cacheMgr = SVNProviderPlugin . getPlugin ( ) . getStatusCacheManager ( ) ; IResource parent = resource . getParent ( ) ; while ( ( parent != null ) && ! cacheMgr . hasCachedStatus ( parent ) ) { parent = parent . getParent ( ) ; } if ( parent != null ) { LocalResourceStatus status = cacheMgr . getStatusFromCache ( parent ) ; if ( ( status != null ) && ( SVNStatusKind . IGNORED . equals ( status . getTextStatus ( ) ) ) ) { return true ; } } return false ; }

Compruebe si alguno de los recursos de los recursos no tiene el estado de SVN ignorado presente en caché.


@ Override public void endElement  ( String uri , String localName , String qName ) throws SAXException { switch ( qName ) { case "BlastOutput_program" : preamble . add ( qName , getElementText ( ) ) ; break ; case "BlastOutput_query-def" : preamble . add ( qName , getElementText ( ) ) ; break ; case "BlastOutput_query-len" : preamble . add ( qName , getElementText ( ) ) ; break ; case "BlastOutput_db" : preamble . add ( qName , getElementText ( ) ) ; break ; case "Parameters_matrix" : parameters . add ( qName , getElementText ( ) ) ; break ; case "Parameters_expect" : parameters . addDouble ( qName , getElementText ( ) ) ; break ; case "Parameters_gap-open" : parameters . addInt ( qName , getElementText ( ) ) ; break ; case "Parameters_gap-extend" : parameters . addInt ( qName , getElementText ( ) ) ; break ; case "Parameters_filter" : parameters . add ( qName , getElementText ( ) ) ; break ; case "Iteration" : numberOfReads ++ ; MatchesText matchesText = new MatchesText ( ) ; if ( iterationHits . size ( ) == 0 ) { matchesText . setNumberOfMatches ( 0 ) ; matchesText . setText ( iteration . queryDef . getBytes ( ) ) ; matchesText . setLengthOfText ( matchesText . getText ( ) . length ) ; } else { int numberOfMatches = 0 ; matches . clear ( ) ; for ( Hit hit : iterationHits ) { if ( matches . size ( ) < getMaxMatchesPerRead ( ) || hit . hsp . bitScore > matches . last ( ) . bitScore ) { Match match = new Match ( ) ; final HSP hsp = hit . hsp ; match . bitScore = hsp . bitScore ; match . id = numberOfMatches ++ ; int queryStart = ( int ) ( hsp . queryFrame >= 0 ? hsp . queryFrom : hsp . queryTo ) ; int queryEnd = ( int ) ( hsp . queryFrame >= 0 ? hsp . queryTo : hsp . queryFrom ) ; final String hitLabel ; if ( hit . id == null ) hitLabel = hit . def ; else if ( hit . def == null ) hitLabel = hit . id ; else hitLabel = ( hit . def + " " + hit . id ) . replaceAll ( "\\s+" , " " ) ; match . samLine = makeSAM ( iteration . queryDef , hitLabel , hit . len , hsp . bitScore , ( float ) hsp . eValue , ( int ) hsp . score , hsp . identity , hsp . queryFrame , queryStart , queryEnd , ( int ) hsp . hitFrom , ( int ) hsp . hitTo , hsp . qSeq , hsp . hSeq ) ; matches . add ( match ) ; if ( matches . size ( ) > maxMatchesPerRead ) matches . remove ( matches . last ( ) ) ; } } StringBuilder buf = new StringBuilder ( ) ; for ( Match match : matches ) { buf . append ( match . samLine ) . append ( "\n" ) ; } matchesText . setText ( buf . toString ( ) . getBytes ( ) ) ; matchesText . setLengthOfText ( matchesText . getText ( ) . length ) ; matchesText . setNumberOfMatches ( matches . size ( ) ) ; totalMatches += iterationHits . size ( ) ; totalDiscardedMatches += ( iterationHits . size ( ) - matchesText . getNumberOfMatches ( ) ) ; } try { blockQueue . put ( matchesText ) ; } catch ( InterruptedException e ) { throw new SAXException ( "Interrupted" ) ; } break ; case "Iteration_iter-num" : iteration . iterNum = Basic . parseLong ( getElementText ( ) ) ; break ; case "Iteration_query-def" : iteration . queryDef = getElementText ( ) ; break ; case "Iteration_query-len" : iteration . queryLen = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hit_def" : hit . def = getElementText ( ) ; break ; case "Hit_accession" : hit . accession = getElementText ( ) ; break ; case "Hit_id" : hit . id = getElementText ( ) ; break ; case "Hit_len" : hit . len = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hsp" : if ( hit . hsp == null || hsp . bitScore > hit . hsp . bitScore ) hit . hsp = hsp ; break ; case "Hit" : iterationHits . add ( hit ) ; break ; case "Hsp_bit-score" : hsp . bitScore = Basic . parseFloat ( getElementText ( ) ) ; break ; case "Hsp_score" : hsp . score = Basic . parseFloat ( getElementText ( ) ) ; break ; case "Hsp_evalue" : hsp . eValue = Basic . parseDouble ( getElementText ( ) ) ; break ; case "Hsp_query-from" : hsp . queryFrom = Long . parseLong ( getElementText ( ) ) ; break ; case "Hsp_query-to" : hsp . queryTo = Basic . parseLong ( getElementText ( ) ) ; break ; case "Hsp_hit-from" : hsp . hitFrom = Basic . parseLong ( getElementText ( ) ) ; break ; case "Hsp_hit-to" : hsp . hitTo = Basic . parseLong ( getElementText ( ) ) ; break ; case "Hsp_hit-frame" : hsp . hitFrame = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hsp_query-frame" : hsp . queryFrame = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hsp_identity" : hsp . identity = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hsp_positive" : hsp . positive = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hsp_gaps" : hsp . gaps = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hsp_align-len" : hsp . alignLength = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hsp_density" : hsp . density = Basic . parseInt ( getElementText ( ) ) ; break ; case "Hsp_qseq" : hsp . qSeq = getElementText ( ) ; break ; case "Hsp_hseq" : hsp . hSeq = getElementText ( ) ; break ; case "Hsp_midline" : hsp . midLine = getElementText ( ) ; break ; case "Statistics_db-num" : stats . addLong ( qName , getElementText ( ) ) ; break ; case "Statistics_db-len" : stats . addLong ( qName , getElementText ( ) ) ; break ; case "Statistics_hsp-len" : stats . addLong ( qName , getElementText ( ) ) ; break ; case "Statistics_eff-space" : stats . addDouble ( qName , getElementText ( ) ) ; break ; case "Statistics_kappa" : stats . addFloat ( qName , getElementText ( ) ) ; break ; case "Statistics_lambda" : stats . addFloat ( qName , getElementText ( ) ) ; break ; case "Statistics_entropy" : stats . addFloat ( qName , getElementText ( ) ) ; break ; } }


@ Override public void startup  ( ) throws Exception  { Log . d ( Mary . LOG , "Register UnitSelection voices:" ) ; List < String > voiceNames = MaryProperties . getList ( "unitselection.voices.list" ) ; for ( String voiceName : voiceNames ) { long time = System . currentTimeMillis ( ) ; Voice unitSelVoice = new UnitSelectionVoice ( voiceName , this ) ; Log . d ( Mary . LOG , "Voice '" + unitSelVoice + "'" ) ; Voice . registerVoice ( unitSelVoice ) ; long newtime = System . currentTimeMillis ( ) - time ; Log . i ( Mary . LOG , "Loading of voice " + voiceName + " took " + newtime + " milliseconds" ) ; } Log . i ( Mary . LOG , "started." ) ; }

Iniciar el sintetizador de la forma de onda.Esto debe llamarse una vez antes de llamar a Synthesize ().


@ Override public void skippedEntity  ( String name ) throws SAXException { if ( saxParser != null ) { saxParser . skippedEntity ( name ) ; } }

El método de SAX <CÓDIGO> SALIDA DE SALIDA </ CODE>.No hace nada.


public static double [ ] convertVariablesToDimension  ( final double [ ] variables ) { final double a = variables [ 0 ] ; final double b = variables [ 1 ] / 2 ; final double c = variables [ 2 ] ; final double d = variables [ 3 ] / 2 ; final double f = variables [ 4 ] / 2 ; final double g = variables [ 5 ] ; final double centerX = ( c * d - b * f ) / ( b * b - a * c ) ; final double centerY = ( a * f - b * d ) / ( b * b - a * c ) ; final double numerator = 2 * ( a * f * f + c * d * d + g * b * b - 2 * b * d * f - a * c * g ) ; final double lengthAxisA = Math . sqrt ( ( numerator ) / ( ( b * b - a * c ) * ( Math . sqrt ( ( a - c ) * ( a - c ) + 4 * b * b ) - ( a + c ) ) ) ) ; final double lengthAxisB = Math . sqrt ( ( numerator ) / ( ( b * b - a * c ) * ( - Math . sqrt ( ( a - c ) * ( a - c ) + 4 * b * b ) - ( a + c ) ) ) ) ; double phi = 0 ; if ( b == 0 ) { if ( a <= c ) phi = 0 ; else if ( a > c ) phi = Math . PI / 2 ; } else { if ( a < c ) phi = Math . atan ( 2 * b / ( a - c ) ) / 2 ; else if ( a > c ) phi = Math . atan ( 2 * b / ( a - c ) ) / 2 + Math . PI / 2 ; } return new double [ ] { centerX , centerY , lengthAxisA , lengthAxisB , phi } ; }

Convierte la descripción variable de Ellipse a las dimensiones basadas en http://mathworld.wolfram.com/ellipse.html


private static JSONObject queryJsonFromUrl  ( final String latLong ) throws IOException , JSONException { final String language = ConfigNew . getConfig ( ) . getString ( ConfigKey . LANGUAGE ) ; final String apiUrl = "http://maps.googleapis.com/maps/api/geocode/json?latlng=%s&sensor=true&language=%s" ; final String formattedUrl = String . format ( apiUrl , latLong . replace ( " " , "%20" ) , language ) ; try { final URL url = new URL ( formattedUrl ) ; final String apiResponse = FileHelper . readFile ( url . openStream ( ) ) ; return new JSONObject ( apiResponse ) ; } catch ( IOException e ) { System . out . println ( ExceptionMessages . COULD_NOT_QUERY_LOCATION . with ( e ) ) ; return new JSONObject ( ) ; } }

Consulta al JSON para su ubicación desde la API de Google.Utiliza el idioma elegido por el usuario para decirle a Google en qué idioma debe devolverse los nombres de las Ciudad.


protected IndexKey convertStartKeyToNodeEntry  ( byte [ ] startKey ) { ByteBuffer buffer = ByteBuffer . wrap ( startKey ) ; buffer . rewind ( ) ; int dictonaryKeySize = buffer . getInt ( ) ; int nonDictonaryKeySize = buffer . getInt ( ) ; byte [ ] dictionaryKey = new byte [ dictonaryKeySize ] ; buffer . get ( dictionaryKey ) ; byte [ ] nonDictionaryKey = new byte [ nonDictonaryKeySize ] ; buffer . get ( nonDictionaryKey ) ; IndexKey entry = new IndexKey ( dictionaryKey , nonDictionaryKey ) ; return entry ; }

Por debajo del método es convertir la tecla de inicio en la tecla de longitud fija y variable.Formato de datos <LENGHT> <Tecla de longitud fija> <Longitud> <Clave de longitud variable>


public static boolean isDark  ( @ ColorInt int color ) { float [ ] hsl = new float [ 3 ] ; android . support . v4 . graphics . ColorUtils . colorToHSL ( color , hsl ) ; return isDark ( hsl ) ; }

Convertir a HSL y verifique que el valor de la ligereza


private Set < String > createValueSet  ( Matcher query , String havingQuery ) throws BadHavingException { try { return new LinkedHashSet < > ( FilterTokenizer . split ( query . group ( 3 ) . replaceAll ( "\\[" , "" ) . replaceAll ( "\\]" , "" ) . trim ( ) ) ) ; } catch ( IllegalArgumentException e ) { LOG . debug ( HAVING_ERROR . logFormat ( havingQuery , e . getMessage ( ) ) , e ) ; throw new BadHavingException ( HAVING_ERROR . format ( havingQuery , e . getMessage ( ) ) , e ) ; } }

Dada una cadena que representa un conjunto de valores que se utilizarán en la consulta que tiene la cadena en un conjunto.


public ThreadDump ( File file ) { this ( file , null ) ; }

Crea nueva instancia de ThreadDump con los datos almacenados en un archivo.


@ deprecated public boolean isAlias  ( String k ) { return ICUResourceBundleReader . RES_GET_TYPE ( getTableResource ( k ) ) == 3 ; }


public T [ ] extractEquationData  ( final int index , final T [ ] complete ) throws MathIllegalArgumentException { checkIndex ( index ) ; final int begin = start [ index ] ; final int end = start [ index + 1 ] ; if ( complete . length < end ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . DIMENSIONS_MISMATCH , complete . length , end ) ; } final int dimension = end - begin ; final T [ ] equationData = MathArrays . buildArray ( complete [ 0 ] . getField ( ) , dimension ) ; System . arraycopy ( complete , begin , equationData , 0 , dimension ) ; return equationData ; }

Extraer datos de la ecuación de una matriz de estado o derivado completo.


@ Override public final void evaluateRule  ( final Long pRuleId ) { if ( LOGGER . isTraceEnabled ( ) ) { StringBuffer str = new StringBuffer ( "" ) . append ( pRuleId ) . append ( " evaluateRule() called" ) ; LOGGER . trace ( str . toString ( ) ) ; } final Timestamp ruleResultTimestamp = new Timestamp ( System . currentTimeMillis ( ) ) ; if ( ruleTagCache . isWriteLockedByCurrentThread ( pRuleId ) ) { LOGGER . info ( pRuleId + " Attention: I already have a write lock on rule " + pRuleId ) ; } ruleTagCache . acquireWriteLockOnKey ( pRuleId ) ; try { RuleTag rule = ruleTagCache . get ( pRuleId ) ; if ( rule . getRuleExpression ( ) != null ) { final Collection < Long > ruleInputTagIds = rule . getRuleExpression ( ) . getInputTagIds ( ) ; final Map < Long , Object > tags = new Hashtable < Long , Object > ( ruleInputTagIds . size ( ) ) ; Tag tag = null ; Long actualTag = null ; try { for ( Long inputTagId : ruleInputTagIds ) { actualTag = inputTagId ; tag = tagLocationService . get ( inputTagId ) ; tags . put ( inputTagId , tag ) ; } Class < ? > ruleResultClass = getType ( rule . getDataType ( ) ) ; Object value = rule . getRuleExpression ( ) . evaluate ( tags , ruleResultClass ) ; ruleUpdateBuffer . update ( pRuleId , value , "Rule result" , ruleResultTimestamp ) ; } catch ( CacheElementNotFoundException cacheEx ) { LOGGER . warn ( pRuleId + " evaluateRule - Failed to locate tag with id " + actualTag + " in any tag cache (during rule evaluation) - unable to evaluate rule." , cacheEx ) ; ruleUpdateBuffer . invalidate ( pRuleId , TagQualityStatus . UNKNOWN_REASON , "Unable to evaluate rule as cannot find required Tag in cache: " + cacheEx . getMessage ( ) , ruleResultTimestamp ) ; } catch ( RuleEvaluationException re ) { LOGGER . trace ( pRuleId + " evaluateRule - Problem evaluating expresion for rule with Id (" + pRuleId + ") - invalidating rule with quality UNKNOWN_REASON (" + re . getMessage ( ) + ")." ) ; ruleUpdateBuffer . invalidate ( pRuleId , TagQualityStatus . UNKNOWN_REASON , re . getMessage ( ) , ruleResultTimestamp ) ; } catch ( Exception e ) { LOGGER . error ( pRuleId + " evaluateRule - Unexpected Error evaluating expresion of rule with Id (" + pRuleId + ") - invalidating rule with quality UNKNOWN_REASON" , e ) ; ruleUpdateBuffer . invalidate ( pRuleId , TagQualityStatus . UNKNOWN_REASON , e . getMessage ( ) , ruleResultTimestamp ) ; } } else { LOGGER . error ( pRuleId + " evaluateRule - Unable to evaluate rule with Id (" + pRuleId + ") as RuleExpression is null." ) ; } } catch ( CacheElementNotFoundException cacheEx ) { LOGGER . error ( pRuleId + " evaluateRule - Rule with id " + pRuleId + " not found in cache - unable to evaluate it." , cacheEx ) ; } catch ( Exception e ) { LOGGER . error ( "evaluateRule - Unexpected Error caught while retrieving " + pRuleId + " from rule cache." , e ) ; ruleUpdateBuffer . invalidate ( pRuleId , TagQualityStatus . UNKNOWN_REASON , e . getMessage ( ) , ruleResultTimestamp ) ; } finally { ruleTagCache . releaseWriteLockOnKey ( pRuleId ) ; } }

Realiza la evaluación de la regla para una identificación de etiqueta dada.En caso de que la identificación no pertenezca a una regla, se registra un mensaje de advertencia para registrarlo.Tenga en cuenta que la regla siempre usará la marca de tiempo de la última actualización de etiquetas de datos entrantes.


public static SM_SYSTEM_MESSAGE STR_MSG_ACCUSE_COUNT_INFO  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400091 , value0 ) ; }

Actualmente, usted tiene en% 0 informes de caza automática que quedan.


public static double [ ] xVals  ( double [ ] vector ) { if ( vector == null ) return null ; double [ ] x = new double [ vector . length / 2 ] ; int count = 0 ; for ( int i = 0 ; i < vector . length ; i ++ ) { if ( i % 2 != 0 ) x [ count ++ ] = vector [ i ] ; } return x ; }

Esto devuelve los valores X del vector dado.Se supone que estos son los valores pares del vector.


public static Vector3D intersection  ( final Plane plane1 , final Plane plane2 , final Plane plane3 ) { final double a1 = plane1 . w . getX ( ) ; final double b1 = plane1 . w . getY ( ) ; final double c1 = plane1 . w . getZ ( ) ; final double d1 = plane1 . originOffset ; final double a2 = plane2 . w . getX ( ) ; final double b2 = plane2 . w . getY ( ) ; final double c2 = plane2 . w . getZ ( ) ; final double d2 = plane2 . originOffset ; final double a3 = plane3 . w . getX ( ) ; final double b3 = plane3 . w . getY ( ) ; final double c3 = plane3 . w . getZ ( ) ; final double d3 = plane3 . originOffset ; final double a23 = b2 * c3 - b3 * c2 ; final double b23 = c2 * a3 - c3 * a2 ; final double c23 = a2 * b3 - a3 * b2 ; final double determinant = a1 * a23 + b1 * b23 + c1 * c23 ; if ( FastMath . abs ( determinant ) < 1.0e-10 ) { return null ; } final double r = 1.0 / determinant ; return new Vector3D ( ( - a23 * d1 - ( c1 * b3 - c3 * b1 ) * d2 - ( c2 * b1 - c1 * b2 ) * d3 ) * r , ( - b23 * d1 - ( c3 * a1 - c1 * a3 ) * d2 - ( c1 * a2 - c2 * a1 ) * d3 ) * r , ( - c23 * d1 - ( b1 * a3 - b3 * a1 ) * d2 - ( b2 * a1 - b1 * a2 ) * d3 ) * r ) ; }

Obtenga el punto de intersección de tres aviones.


Borrar cualquier opción previamente establecida


public JobRequestFailedException ( String message ) { super ( message ) ; }

Construye una excepción JOBREQUESTFAILEDEXEX con el mensaje dado.


private boolean compareResult  ( Map < String , List < Distributable > > expectedResult , Map < String , List < Distributable > > actualResult ) { expectedResult = sortByListSize ( expectedResult ) ; actualResult = sortByListSize ( actualResult ) ; List < List < Distributable > > expectedList = new LinkedList ( expectedResult . entrySet ( ) ) ; List < List < Distributable > > mapOfNodesList = new LinkedList ( actualResult . entrySet ( ) ) ; boolean isEqual = expectedList . size ( ) == mapOfNodesList . size ( ) ; if ( isEqual ) { for ( int i = 0 ; i < expectedList . size ( ) ; i ++ ) { int size1 = ( ( List ) ( ( Map . Entry ) ( expectedList . get ( i ) ) ) . getValue ( ) ) . size ( ) ; int size2 = ( ( List ) ( ( Map . Entry ) ( mapOfNodesList . get ( i ) ) ) . getValue ( ) ) . size ( ) ; isEqual = size1 == size2 ; if ( ! isEqual ) { break ; } } } return isEqual ; }


protected void sendPacket  ( CsServerPacket msg ) { getConnection ( ) . sendPacket ( msg ) ; }

Envíe nuevo LSSSERVERPACKET a la conexión que es propietario de este paquete.Este método es equivalente a: getConnection (). SendPacket (MSG);


@ Override public void actionPerformed  ( ActionEvent ev ) { executeImmediately ( getSyntax ( ) ) ; }


static Object newInstance  ( String className , ClassLoader cl , boolean doFallback ) throws ConfigurationError { try { Class providerClass = findProviderClass ( className , cl , doFallback ) ; Object instance = providerClass . newInstance ( ) ; if ( DEBUG ) debugPrintln ( "created new instance of " + providerClass + " using ClassLoader: " + cl ) ; return instance ; } catch ( ClassNotFoundException x ) { throw new ConfigurationError ( "Provider " + className + " not found" , x ) ; } catch ( Exception x ) { throw new ConfigurationError ( "Provider " + className + " could not be instantiated: " + x , x ) ; } }

Cree una instancia de una clase usando el cargador de clases especificado


public static void w  ( String tag , String msg , Object ... args ) { if ( sLevel > LEVEL_WARNING ) { return ; } if ( args . length > 0 ) { msg = String . format ( msg , args ) ; } Log . w ( tag , msg ) ; }

Enviar un mensaje de registro de advertencia


public static long addExact  ( final long a , final long b ) throws MathRuntimeException { final long sum = a + b ; if ( ( a ^ b ) >= 0 && ( sum ^ b ) < 0 ) { throw new MathRuntimeException ( LocalizedCoreFormats . OVERFLOW_IN_ADDITION , a , b ) ; } return sum ; }

Añadir dos números, detectar desbordamientos.


public void clear  ( ) { map . clear ( ) ; }

Elimina todos los elementos de este conjunto.


public boolean isInteractive  ( int row ) { return getBoolean ( row , VisualItem . INTERACTIVE ) ; }

Indica si este artículo es interactivo, lo que significa que puede responder a los eventos de entrada del mouse y el teclado.


public String indexName  ( ) { return idxName ; }


void addPaths  ( ViterbiPoint point , ViterbiPath path ) { ViterbiPath nextPath ; for ( ViterbiPath p = path ; p != null ; p = nextPath ) { nextPath = p . next ; addPath ( point , p ) ; } }


public void mapToScreen  ( List < Double > rulerMap ) { if ( ( this . from < rulerMap . get ( 0 ) && this . to < rulerMap . get ( 0 ) ) || ( this . from > rulerMap . get ( rulerMap . size ( ) - 1 ) ) && this . to > rulerMap . get ( rulerMap . size ( ) - 1 ) ) { this . screenFrom = - 1 ; this . screenTo = - 1 ; return ; } if ( this . from <= rulerMap . get ( 0 ) && this . to >= rulerMap . get ( rulerMap . size ( ) - 1 ) ) { this . screenFrom = 0 ; this . screenTo = rulerMap . size ( ) - 1 ; return ; } screenFrom = Utils . getIndexOfclosestValue ( this . from , rulerMap ) ; screenTo = Utils . getIndexOfclosestValue ( this . to , rulerMap ) ; if ( screenFrom == - 1 ) { screenFrom = 0 ; } if ( screenTo == - 1 ) { screenTo = rulerMap . size ( ) - 1 ; } if ( screenFrom == - 1 || screenTo == - 1 ) { System . err . println ( "Unexpected mapping of features to ruler." ) ; System . exit ( 1 ) ; } }

Intervalo de mapas a las coordenadas de la pantalla usando el regla provisto.


@ Deployment public void testBoundaryEvent  ( ) { ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "boundaryEventProcess" ) ; Task task = taskService . createTaskQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ( ) ; assertNotNull ( task ) ; taskService . complete ( task . getId ( ) ) ; assertEquals ( 0L , runtimeService . createProcessInstanceQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . count ( ) ) ; HistoricActivityInstance historicActivityInstance = historyService . createHistoricActivityInstanceQuery ( ) . activityId ( "boundary" ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ( ) ; assertNull ( historicActivityInstance ) ; processInstance = runtimeService . startProcessInstanceByKey ( "boundaryEventProcess" ) ; task = taskService . createTaskQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ( ) ; Execution signalExecution = runtimeService . createExecutionQuery ( ) . signalEventSubscriptionName ( "alert" ) . singleResult ( ) ; runtimeService . signalEventReceived ( "alert" , signalExecution . getId ( ) ) ; assertEquals ( 0L , runtimeService . createProcessInstanceQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . count ( ) ) ; historicActivityInstance = historyService . createHistoricActivityInstanceQuery ( ) . activityId ( "boundary" ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ( ) ; assertNotNull ( historicActivityInstance ) ; assertNotNull ( historicActivityInstance . getStartTime ( ) ) ; assertNotNull ( historicActivityInstance . getEndTime ( ) ) ; }

Prueba para validar la corrección para ACT-1399: Límite-evento y auditoría basada en eventos


void out  ( Operand ... oprs ) { out = oprs ; }

Establece los operandos producidos por este marco.


public WallEditQuery edit  ( UserActor actor , int postId ) { return new WallEditQuery ( getClient ( ) , actor , postId ) ; }

Edeta un poste en una pared de usuario o pared comunitaria.


public void paintAxis  ( Graphics g0 ) { Graphics2D g = ( Graphics2D ) g0 ; Rectangle rec = getVisibleRect ( ) ; g . setColor ( Color . WHITE ) ; g . fillRect ( 0 , 0 , getWidth ( ) , getHeight ( ) ) ; g . setBackground ( Color . WHITE ) ; g . setFont ( axisFont ) ; if ( alignment != null ) { final GapColumnContractor gapColumnContractor = getAlignment ( ) . getGapColumnContractor ( ) ; { g . setColor ( Color . LIGHT_GRAY ) ; SortedSet < Integer > jumpColumns = gapColumnContractor . getJumpPositionsRelativeToLayoutColumns ( ) ; for ( Integer col : jumpColumns ) { if ( cellWidth > 1 ) { g . setColor ( Color . WHITE ) ; g . drawLine ( ( int ) getX ( col ) , - 1 , ( int ) getX ( col ) , getSize ( ) . height ) ; g . setColor ( Color . GRAY ) ; g . drawLine ( ( int ) getX ( col ) - 1 , - 1 , ( int ) getX ( col ) - 1 , getSize ( ) . height ) ; g . drawLine ( ( int ) getX ( col ) + 1 , - 1 , ( int ) getX ( col ) + 1 , getSize ( ) . height ) ; } else { g . drawLine ( ( int ) getX ( col ) , - 1 , ( int ) getX ( col ) , getSize ( ) . height ) ; } } } g . setColor ( Color . BLACK ) ; int minVisibleCol = ( int ) Math . max ( 0 , ( rec . getX ( ) / cellWidth ) ) + gapColumnContractor . getFirstLayoutColumn ( ) ; int maxVisibleCol = ( int ) Math . min ( gapColumnContractor . getLastLayoutColumn ( ) , ( rec . getX ( ) + rec . getWidth ( ) ) / cellWidth ) ; double dashWidth = axisMetrics . getStringBounds ( "-" , g ) . getWidth ( ) ; double maxLabelWidth = axisMetrics . getStringBounds ( "|" + Math . min ( alignment . getLength ( ) , maxVisibleCol ) , g ) . getWidth ( ) ; int step = 1 ; for ( ; step <= 1000000 ; step *= 10 ) { if ( maxLabelWidth < getX ( step ) - getX ( 0 ) ) break ; } Integer [ ] jumpCols = gapColumnContractor . getJumpPositionsRelativeToLayoutColumns ( ) . toArray ( new Integer [ gapColumnContractor . getJumpPositionsRelativeToLayoutColumns ( ) . size ( ) ] ) ; int jc = 0 ; int jumped = 0 ; int offsetDueToInsertedPositions = 0 ; if ( alignment . getInsertionsIntoReference ( ) . size ( ) > 0 ) { for ( int layoutCol = gapColumnContractor . getFirstLayoutColumn ( ) ; layoutCol < minVisibleCol ; layoutCol ++ ) { while ( jc < jumpCols . length && jumpCols [ jc ] < layoutCol ) { jumped += gapColumnContractor . getJumpBeforeLayoutColumn ( jumpCols [ jc ] ) ; jc ++ ; } int trueCol = layoutCol + jumped ; if ( alignment . getInsertionsIntoReference ( ) . contains ( trueCol ) ) offsetDueToInsertedPositions ++ ; } } double lastPos = Float . MIN_VALUE ; for ( int layoutCol = minVisibleCol ; layoutCol <= maxVisibleCol ; layoutCol ++ ) { while ( jc < jumpCols . length && jumpCols [ jc ] < layoutCol ) { jumped += gapColumnContractor . getJumpBeforeLayoutColumn ( jumpCols [ jc ] ) ; jc ++ ; } int trueCol = layoutCol + jumped ; if ( alignment . getInsertionsIntoReference ( ) . contains ( trueCol - 1 ) ) { offsetDueToInsertedPositions ++ ; if ( cellWidth > dashWidth ) g . drawString ( "-" , ( int ) ( getX ( layoutCol - 1 ) + ( cellWidth - dashWidth ) / 2 ) , 11 ) ; } else { trueCol -= offsetDueToInsertedPositions ; if ( trueCol > 0 && ( ( trueCol ) % step ) == 0 ) { double layoutX = getX ( layoutCol - 1 ) - 3 ; if ( lastPos + maxLabelWidth < layoutX ) { g . drawString ( "|" + trueCol , Math . round ( layoutX ) , 11 ) ; lastPos = layoutX ; } } } } } }


public static String determineOriginalFile  ( Context context , Uri uri ) throws IllegalArgumentException { String originalFile = null ; if ( uri != null ) { if ( uri . getScheme ( ) . startsWith ( "content" ) ) { originalFile = getPathFromUri ( context , uri ) ; } if ( uri . toString ( ) . matches ( "https?://\\w+\\.googleusercontent\\.com/.+" ) ) { originalFile = uri . toString ( ) ; } if ( uri . getScheme ( ) . startsWith ( "file" ) ) { originalFile = uri . toString ( ) . substring ( 7 ) ; } if ( isNullOrEmpty ( originalFile ) ) { throw new IllegalArgumentException ( "File path was null" ) ; } } else { throw new IllegalArgumentException ( "Image Uri was null!" ) ; } return originalFile ; }

Recuperar la ruta de archivo local para un URI arbitrario


public static final String unescapeHtml4  ( final String input ) { return UNESCAPE_HTML4 . translate ( input ) ; }

 UnEscapes Una entidad que contiene una cadena se escapa a una cadena que contiene los caracteres reales de Unicode correspondientes a los escapes.Admite las entidades HTML 4.0.

 Por ejemplo, la cadena "& amp; lt; fran & amp; ccedil; ais & amp; gt;"se convertirá en "& lt; fran & ccedil; ais & gt;"

 Si una entidad no está reconocida, se queda sola e insertó verbatim en la cadena de resultados.p.ej."& amp; gt; & amp; zzzz; x" se convertirá en "& gt; & gt; y amp; zzzz; x".


protected void renderMenuFull  ( Appendable writer , Map < String , Object > context , ModelMenu menu , StringBuffer sb ) throws IOException { try { executeMacro ( writer , sb . toString ( ) ) ; } catch ( TemplateException e ) { throw new IOException ( e ) ; } }

SCIPIO: hace que el menú completo en una llamada de macro use los datos recopilados previamente en el búfer.


private void paintRec  ( Graphics2D gc , Node v , List < Node > drawableNodeLabels , boolean enabled ) { Rectangle bbox = node2BoundingBox . get ( v ) ; if ( bbox == null ) bbox = new Rectangle ( ) ; final Rectangle bboxDeviceCoordinates = new Rectangle ( ) ; trans . w2d ( bbox , bboxDeviceCoordinates ) ; if ( drawOnScreen && ! getVisibleRect ( ) . intersects ( bboxDeviceCoordinates ) ) return ; final NodeView nv = getNV ( v ) ; if ( nv . getLabel ( ) != null ) { nv . setLabelSize ( gc ) ; } nv . setEnabled ( enabled ) ; final boolean isSmall = v . getOutDegree ( ) > 0 && ( bboxDeviceCoordinates . getHeight ( ) / ( getTree ( ) . getDegree ( v ) - 1 ) < 4 ) ; if ( isSmall ) { if ( 1 != ( ( BasicStroke ) gc . getStroke ( ) ) . getLineWidth ( ) ) gc . setStroke ( new BasicStroke ( 1 ) ) ; gc . setColor ( Color . DARK_GRAY ) ; gc . fill ( bboxDeviceCoordinates ) ; } else { for ( Edge f = v . getFirstOutEdge ( ) ; f != null ; f = v . getNextOutEdge ( f ) ) { Node w = v . getOpposite ( f ) ; Point2D nextToV = getNV ( w ) . getLocation ( ) ; Point2D nextToW = getNV ( v ) . getLocation ( ) ; if ( nextToV == null || nextToW == null ) continue ; if ( getInternalPoints ( f ) != null ) { if ( getInternalPoints ( f ) . size ( ) != 0 ) { nextToV = getInternalPoints ( f ) . get ( 0 ) ; nextToW = getInternalPoints ( f ) . get ( getInternalPoints ( f ) . size ( ) - 1 ) ; } } final Point pv = ( ! drawLeavesOnly || v . getOutDegree ( ) == 0 ? getNV ( v ) . computeConnectPoint ( nextToV , trans ) : trans . w2d ( getNV ( v ) . getLocation ( ) ) ) ; final Point pw = ( ! drawLeavesOnly || w . getOutDegree ( ) == 0 ? getNV ( w ) . computeConnectPoint ( nextToW , trans ) : trans . w2d ( getNV ( w ) . getLocation ( ) ) ) ; final EdgeView ev = getEV ( f ) ; ev . setEnabled ( enabled ) ; if ( ev . getLineWidth ( ) != ( ( BasicStroke ) gc . getStroke ( ) ) . getLineWidth ( ) ) { gc . setStroke ( new BasicStroke ( ev . getLineWidth ( ) ) ) ; } ev . draw ( gc , pv , pw , trans , getSelected ( f ) ) ; ev . setLabelReferenceLocation ( nextToV , nextToW , trans ) ; if ( ev . getLabel ( ) != null && ev . isLabelVisible ( ) ) { ev . setLabelReferenceLocation ( pv , pw , trans ) ; ev . setLabelSize ( gc ) ; ev . drawLabel ( gc , trans , false ) ; if ( getSelected ( f ) ) ev . drawLabel ( gc , trans , true ) ; } paintRec ( gc , w , drawableNodeLabels , enabled ) ; } } if ( getNV ( v ) . getLineWidth ( ) != ( ( BasicStroke ) gc . getStroke ( ) ) . getLineWidth ( ) ) { gc . setStroke ( new BasicStroke ( getNV ( v ) . getLineWidth ( ) ) ) ; } if ( ! drawLeavesOnly || v . getOutDegree ( ) == 0 ) nodeDrawer . draw ( v , selectedNodes . contains ( v ) ) ; if ( getLabel ( v ) != null && getLabel ( v ) . length ( ) > 0 && ! isSmall ) drawableNodeLabels . add ( v ) ; }


private void addTabId  ( int index , int tabId ) { assert tabId != Tab . INVALID_TAB_ID ; if ( mTabIdList . contains ( tabId ) ) return ; mTabIdList . add ( index , tabId ) ; }

Agrega la ID de la pestaña en el índice dado.


public AttribsExpression putAll  ( AttribsExpression otherExpr ) { String origStr = otherExpr . attribsExpr . getOriginal ( ) ; if ( UtilValidate . isNotEmpty ( origStr ) ) { return new AttribsExpression ( FlexibleStringExpander . getInstance ( concatMapExpr ( attribsExpr . getOriginal ( ) , origStr ) ) ) ; } else { return new AttribsExpression ( attribsExpr ) ; } }

Scipio: fusiona OTROSEXPR en este, produciendo un nuevo.


public static double calcHaMultiplier  ( Boolean vcenterhastate ) { double d = 0 ; if ( vcenterhastate ) { d = 1.125 ; } else { d = 1 ; } return d ; }


protected final void updateAssistState  ( ) { if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . M ) return ; boolean isAssistSupported = isAssistSupported ( ) ; if ( mAssistSupported == null || mAssistSupported != isAssistSupported ) { if ( mSetAssistBlockedMethod == null ) { try { mSetAssistBlockedMethod = View . class . getMethod ( "setAssistBlocked" , boolean . class ) ; } catch ( NoSuchMethodException e ) { return ; } } View rootContent = mActivity . findViewById ( android . R . id . content ) ; try { mSetAssistBlockedMethod . invoke ( rootContent , ! isAssistSupported ) ; } catch ( IllegalAccessException | IllegalArgumentException | InvocationTargetException e ) { return ; } } mAssistSupported = isAssistSupported ; }

Desencadenar una actualización del estado de asistencia.


protected boolean isTopLevelIncludedItem  ( ) { return isTopLevelIncludedItemViaInclude ( ) || isTopLevelIncludedItemViaFallback ( ) ; }

Devuelve VERDADERO si el elemento actual es un elemento de nivel superior incluido.Esto significa que es el niño de un elemento defectuoso, o el elemento de nivel superior en un documento incluido


private void populateSupportedTypes  ( ) { if ( supportedNodeTypeList . isEmpty ( ) ) { supportedNodeTypeList . add ( GeoServerLayerHeadingNode . class ) ; supportedNodeTypeList . add ( GeoServerWorkspaceNode . class ) ; supportedNodeTypeList . add ( GeoServerLayerNode . class ) ; } }


public DataTypeException ( Throwable cause ) { super ( cause ) ; }


public RegexValidator ( String regex ) { this ( regex , true ) ; }

Construye un validador </ i> distingue entre mayúsculas y minúsculas </ i> para una sola expresión regular.


private CarbonDictionarySortInfo createColumnSortInfo  ( CarbonDictionarySortModel [ ] dictionarySortModels ) { int [ ] sortIndex ; int [ ] sortIndexInverted ; Arrays . sort ( dictionarySortModels ) ; sortIndex = new int [ dictionarySortModels . length ] ; sortIndexInverted = new int [ dictionarySortModels . length ] ; for ( int i = 0 ; i < dictionarySortModels . length ; i ++ ) { CarbonDictionarySortModel dictionarySortModel = dictionarySortModels [ i ] ; sortIndex [ i ] = dictionarySortModel . getKey ( ) ; sortIndexInverted [ dictionarySortModel . getKey ( ) - 1 ] = i + 1 ; } dictionarySortModels = null ; List < Integer > sortIndexList = convertToList ( sortIndex ) ; List < Integer > sortIndexInvertedList = convertToList ( sortIndexInverted ) ; return new CarbonDictionarySortInfo ( sortIndexList , sortIndexInvertedList ) ; }

El método prepara los datos sort_index y sort_index_inverted


public static SM_SYSTEM_MESSAGE STR_SKILL_RESISTED_A_TO_B  ( String skilltarget , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201097 , skilltarget , skillcaster , skillname ) ; }

[% SkillTarget] resistió [% Skillcaster] 's [% Habilidad].


private static void recursiveInvalidate  ( View view ) { view . invalidate ( ) ; if ( view instanceof ViewGroup ) { ViewGroup group = ( ViewGroup ) view ; int childCount = group . getChildCount ( ) ; for ( int i = 0 ; i < childCount ; i ++ ) { View child = group . getChildAt ( i ) ; if ( child . getVisibility ( ) == View . VISIBLE ) { recursiveInvalidate ( child ) ; } } } }

Invalida una vista y todos sus descendientes.


public void init  ( OmniboxResultItem suggestionItem , OmniboxSuggestionDelegate suggestionDelegate , int position , boolean useDarkColors ) { ViewCompat . setLayoutDirection ( this , ViewCompat . getLayoutDirection ( mUrlBar ) ) ; mPosition = position ; jumpDrawablesToCurrentState ( ) ; boolean colorsChanged = mUseDarkColors == null || mUseDarkColors != useDarkColors ; if ( suggestionItem . equals ( mSuggestionItem ) && ! colorsChanged ) return ; mUseDarkColors = useDarkColors ; if ( colorsChanged ) { mContentsView . mTextLine1 . setTextColor ( getStandardFontColor ( ) ) ; setRefineIcon ( true ) ; } mSuggestionItem = suggestionItem ; mSuggestion = suggestionItem . getSuggestion ( ) ; mSuggestionDelegate = suggestionDelegate ; mContentsView . resetTextWidths ( ) ; mContentsView . mAnswerImage . setVisibility ( GONE ) ; mContentsView . mAnswerImage . getLayoutParams ( ) . height = 0 ; mContentsView . mAnswerImage . getLayoutParams ( ) . width = 0 ; mContentsView . mAnswerImage . setImageDrawable ( null ) ; mContentsView . mAnswerImageMaxSize = 0 ; mContentsView . mTextLine1 . setTextSize ( FIRST_LINE_TEXT_SIZE_SP ) ; mContentsView . mTextLine2 . setTextSize ( SECOND_LINE_TEXT_SIZE_SP ) ; if ( mSuggestion . hasAnswer ( ) ) { setAnswer ( mSuggestion . getAnswer ( ) ) ; mContentsView . setSuggestionIcon ( SuggestionIconType . MAGNIFIER , colorsChanged ) ; mContentsView . mTextLine2 . setVisibility ( VISIBLE ) ; setRefinable ( true ) ; return ; } boolean sameAsTyped = suggestionItem . getMatchedQuery ( ) . equalsIgnoreCase ( mSuggestion . getDisplayText ( ) ) ; int suggestionType = mSuggestion . getType ( ) ; if ( mSuggestion . isUrlSuggestion ( ) ) { if ( mSuggestion . isStarred ( ) ) { mContentsView . setSuggestionIcon ( SuggestionIconType . BOOKMARK , colorsChanged ) ; } else if ( suggestionType == OmniboxSuggestionType . HISTORY_URL ) { mContentsView . setSuggestionIcon ( SuggestionIconType . HISTORY , colorsChanged ) ; } else { mContentsView . setSuggestionIcon ( SuggestionIconType . GLOBE , colorsChanged ) ; } boolean urlShown = ! TextUtils . isEmpty ( mSuggestion . getUrl ( ) ) ; boolean urlHighlighted = false ; if ( urlShown ) { urlHighlighted = setUrlText ( suggestionItem ) ; } else { mContentsView . mTextLine2 . setVisibility ( INVISIBLE ) ; } setSuggestedQuery ( suggestionItem , true , urlShown , urlHighlighted ) ; setRefinable ( ! sameAsTyped ) ; } else { SuggestionIconType suggestionIcon = SuggestionIconType . MAGNIFIER ; if ( suggestionType == OmniboxSuggestionType . VOICE_SUGGEST ) { suggestionIcon = SuggestionIconType . VOICE ; } else if ( ( suggestionType == OmniboxSuggestionType . SEARCH_SUGGEST_PERSONALIZED ) || ( suggestionType == OmniboxSuggestionType . SEARCH_HISTORY ) ) { suggestionIcon = SuggestionIconType . HISTORY ; } mContentsView . setSuggestionIcon ( suggestionIcon , colorsChanged ) ; setRefinable ( ! sameAsTyped ) ; setSuggestedQuery ( suggestionItem , false , false , false ) ; if ( ( suggestionType == OmniboxSuggestionType . SEARCH_SUGGEST_ENTITY ) || ( suggestionType == OmniboxSuggestionType . SEARCH_SUGGEST_PROFILE ) ) { showDescriptionLine ( SpannableString . valueOf ( mSuggestion . getDescription ( ) ) , getStandardFontColor ( ) ) ; } else { mContentsView . mTextLine2 . setVisibility ( INVISIBLE ) ; } } }

Establece los contenidos y el estado de la vista para la sugerencia dada.


public void close  ( ) throws IOException  { if ( type != null ) { encode ( out , buf , bufPtr ) ; for ( int i = 0 ; i != nl . length ( ) ; i ++ ) { out . write ( nl . charAt ( i ) ) ; } out . write ( '=' ) ; int crcV = crc . getValue ( ) ; buf [ 0 ] = ( ( crcV >> 16 ) & 0xff ) ; buf [ 1 ] = ( ( crcV >> 8 ) & 0xff ) ; buf [ 2 ] = ( crcV & 0xff ) ; encode ( out , buf , 3 ) ; for ( int i = 0 ; i != nl . length ( ) ; i ++ ) { out . write ( nl . charAt ( i ) ) ; } for ( int i = 0 ; i != footerStart . length ( ) ; i ++ ) { out . write ( footerStart . charAt ( i ) ) ; } for ( int i = 0 ; i != type . length ( ) ; i ++ ) { out . write ( type . charAt ( i ) ) ; } for ( int i = 0 ; i != footerTail . length ( ) ; i ++ ) { out . write ( footerTail . charAt ( i ) ) ; } for ( int i = 0 ; i != nl . length ( ) ; i ++ ) { out . write ( nl . charAt ( i ) ) ; } out . flush ( ) ; type = null ; start = true ; } }

<b> nota </ b>: Cerrar () no cierra la corriente subyacente.Por lo tanto, es posible escribir varios objetos utilizando la armadura a una sola corriente.


public IgDiskCache ( File directory , long maxSizeInBytes , int maxCount , Executor serialExecutor ) { assertOnNonUIThread ( ) ; mDirectory = ( directory == null ) ? FAKE_CACHE_DIRECTORY : directory ; mMaxCount = maxCount ; mMaxSizeInBytes = maxSizeInBytes ; mRemoveRetryList = new LinkedList < > ( ) ; mSizeInBytes . set ( 0 ) ; mMissCount = 0 ; mHitCount = 0 ; mJournal = new Journal ( mDirectory , this , serialExecutor ) ; mLruEntries = new LinkedHashMap < > ( 0 , 0.75f , true ) ; LinkedHashMap < String , Entry > cachedEntries = mJournal . retrieveEntriesFromJournal ( ) ; if ( cachedEntries == null ) { mDirectory . mkdirs ( ) ; mJournal . rebuild ( ) ; } else { mLruEntries . putAll ( cachedEntries ) ; for ( Entry entry : mLruEntries . values ( ) ) { mSizeInBytes . getAndAdd ( entry . getLengthInBytes ( ) ) ; } } }


@ RequestMapping ( value = "/metrics" , method = RequestMethod . POST , produces = MediaType . APPLICATION_JSON_VALUE ) @ Timed public ResponseEntity < Metric > createMetric  ( @ RequestBody Metric metric ) throws URISyntaxException { log . debug ( "REST request to save Metric : {}" , metric ) ; if ( metric . getMetricId ( ) != null ) { return ResponseEntity . badRequest ( ) . headers ( HeaderUtil . createFailureAlert ( "metric" , "idexists" , "A new metric cannot already have an ID" ) ) . body ( null ) ; } Metric result = metricRepository . save ( metric ) ; return ResponseEntity . created ( new URI ( "/api/metrics/" + result . getMetricId ( ) ) ) . headers ( HeaderUtil . createEntityCreationAlert ( "metric" , result . getMetricId ( ) . toString ( ) ) ) . body ( result ) ; }


protected void internalTransform  ( Body body , String phaseName , Map < String , String > options ) { boolean changed = true ; BufferedReader reader = null ; peepholeListingStream = PeepholeOptimizer . class . getResourceAsStream ( "peephole.dat" ) ; if ( peepholeListingStream == null ) throw new RuntimeException ( "could not open file peephole.dat!" ) ; reader = new BufferedReader ( new InputStreamReader ( peepholeListingStream ) ) ; String line = null ; List < String > peepholes = new LinkedList < String > ( ) ; try { line = reader . readLine ( ) ; while ( line != null ) { if ( line . length ( ) > 0 ) if ( ! ( line . charAt ( 0 ) == '#' ) ) peepholes . add ( line ) ; line = reader . readLine ( ) ; } } catch ( IOException e ) { throw new RuntimeException ( "IO error occured while reading file:  " + line + System . getProperty ( "line.separator" ) + e ) ; } while ( changed ) { changed = false ; Iterator < String > it = peepholes . iterator ( ) ; while ( it . hasNext ( ) ) { boolean peepholeWorked = true ; String peepholeName = it . next ( ) ; while ( peepholeWorked ) { peepholeWorked = false ; Class < ? > peepholeClass ; if ( ( peepholeClass = peepholeMap . get ( peepholeName ) ) == null ) { try { peepholeClass = Class . forName ( packageName + "." + peepholeName ) ; } catch ( ClassNotFoundException e ) { throw new RuntimeException ( e . toString ( ) ) ; } peepholeMap . put ( peepholeName , peepholeClass ) ; } Peephole p = null ; try { p = ( Peephole ) peepholeClass . newInstance ( ) ; } catch ( IllegalAccessException e ) { throw new RuntimeException ( e . toString ( ) ) ; } catch ( InstantiationException e ) { throw new RuntimeException ( e . toString ( ) ) ; } if ( p . apply ( body ) ) { peepholeWorked = true ; changed = true ; } } } } try { peepholeListingStream . close ( ) ; } catch ( IOException e ) { } }

El método que impulsa las optimizaciones.


static void forceKill  ( String commandUID ) { if ( ! ExecutorUtils . isUnixOS ( ) ) return ; AsyncCommandResult killRes = null ; try { File binDir = new File ( "/bin" ) ; if ( ! binDir . exists ( ) ) return ; final String pkillScript = binDir . getPath ( ) + File . separator + ExecutorContstants . KILL_TEST_SCRIPT ; SimpleCommand killCmd = new SimpleCommand ( "Kill JVM" , pkillScript , commandUID ) ; killRes = Executor . executeAsync ( killCmd , null ) ; killRes . waitFor ( 5 * 1000 ) ; } catch ( InterruptedException e ) { } finally { if ( killRes != null ) killRes . stop ( false ) ; } }

Mata a Javacommand por Kill-9 con Javacommand UID Nota: este método solo relevante para máquinas basadas en Unix.


protected void notifyScrollingListenersAboutStart  ( ) { for ( OnWheelScrollListener listener : scrollingListeners ) { listener . onScrollingStarted ( this ) ; } }

Notifica a los oyentes sobre el inicio de desplazamiento.


public static long count  ( String table , String where , Object [ ] args ) { TimeStamp t = TimeStamp . create ( ) ; StringBuilder sum = new StringBuilder ( ) ; sum . append ( "select count(*) t from " ) . append ( table ) ; if ( where != null ) { sum . append ( " where " ) . append ( where ) ; } Connection c = null ; PreparedStatement p = null ; ResultSet r = null ; try { c = getConnection ( ) ; if ( c == null ) return 0 ; p = c . prepareStatement ( sum . toString ( ) ) ; int order = 1 ; if ( args != null ) { for ( int i = 0 ; i < args . length ; i ++ ) { Object o = args [ i ] ; setParameter ( p , order ++ , o ) ; } } r = p . executeQuery ( ) ; if ( r . next ( ) ) { return r . getInt ( "t" ) ; } } catch ( Exception e ) { if ( log . isErrorEnabled ( ) ) log . error ( sum . toString ( ) + toString ( args ) , e ) ; } finally { close ( r , p , c ) ; if ( t . past ( ) > 2 && sqllog . isDebugEnabled ( ) ) { sqllog . debug ( "cost:" + t . past ( ) + "ms, sql=[" + sum + "]; [" + sum + "]" ) ; } } return 0 ; }


public void collectTags  ( SootClass sc ) { collectTags ( sc , true ) ; }

Función de conveniencia para <código> CollectArgs (SC, VERDADERO) </ CODE>.


public DiskBasedCache ( File rootDirectory , int maxCacheSizeInBytes ) { mRootDirectory = rootDirectory ; mMaxCacheSizeInBytes = maxCacheSizeInBytes ; }

Construye una instancia del DiskBasedCache en el directorio especificado.


private void writeObject  ( ObjectOutputStream out ) throws IOException { out . defaultWriteObject ( ) ; servID . writeBytes ( out ) ; }

Escribe el valor de campo serializable predeterminado para esta instancia, seguido de la ID de servicio del elemento codificada según lo especificado por el método ServiceID.WRITEBYTES.


public RequestContext ( ContainerRequestContext containerRequestContext , boolean readCache ) { this . containerRequestContext = containerRequestContext ; this . readCache = readCache ; this . searchableHeaders = containerRequestContext != null ? Utils . headersToLowerCase ( containerRequestContext . getHeaders ( ) ) : new MultivaluedHashMap < > ( ) ; }

Construir un contexto para una solicitud.


public boolean isCritical  ( ) { return true ; }

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


public synchronized void closeDriver  ( ) { if ( camera != null ) { camera . release ( ) ; camera = null ; } }

Cierra el controlador de la cámara si aún está en uso.


private static int clampX  ( int x , ConstraintWidget base ) { if ( x < base . getX ( ) ) { x = base . getX ( ) ; } else if ( x > base . getRight ( ) ) { x = base . getRight ( ) ; } return x ; }

Abrazadera de los límites del panel base.


@ Override public void justSelected  ( ) { setCachedExpression ( generateExpression ( ) ) ; checkSymbolIsValid ( ) ; }

Método llamado cuando el campo se ha seleccionado de un cuadro combinado y es posible que deba ser inicializado


public PollsDeleteVoteQuery isBoard  ( Boolean value ) { return unsafeParam ( "is_board" , value ) ; }


public static void decodePathSegment  ( List < PathSegment > segments , String segment , boolean decode ) { int colon = segment . indexOf ( ';' ) ; if ( colon != - 1 ) { segments . add ( new PathSegmentImpl ( ( colon == 0 ) ? "" : segment . substring ( 0 , colon ) , decode , decodeMatrix ( segment , decode ) ) ) ; } else { segments . add ( new PathSegmentImpl ( segment , decode ) ) ; } }

Decciembre el segmento de ruta y agréguelo a la lista de segmentos de ruta.


public void schedule  ( String jobName , String poolName , String serviceName , String dataId , long startTime , int frequency , int interval , int count , long endTime , int maxRetry ) throws JobManagerException { schedule ( jobName , poolName , serviceName , dataId , startTime , frequency , interval , count , endTime , maxRetry , ( String ) null ) ; }

Programe un trabajo para comenzar a un tiempo específico con información específica de recurrencia <P> Scipio: Ahora delegando.


private void handleOnNotificationDismissed  ( long id ) { Task [ ] tasksToDismiss = NagboxDbOps . getTasksToDismiss ( mDatabase , id ) ; if ( tasksToDismiss . length == 0 ) { return ; } NagboxDbOps . Transaction transaction = NagboxDbOps . startTransaction ( mDatabase ) ; for ( Task task : tasksToDismiss ) { task . setIsSeen ( true ) ; transaction . updateTaskStatus ( task ) ; } boolean isSuccess = transaction . commit ( ) ; if ( ! isSuccess ) { Log . e ( TAG , "Couldn't unset the 'not seen' flag from tasks" ) ; } else { final ContentResolver contentResolver = getContentResolver ( ) ; for ( Task task : tasksToDismiss ) { contentResolver . notifyChange ( TasksTable . getUriForItem ( task . id ) , null ) ; } } }

Indicar la bandera "no vista" de la tarea con la identificación proporcionada o todas las tareas invisibles (dependiendo de si se desestimó una notificación de resumen o una persona de la pila)


public void start  ( long timeInMillisecond ) { stop ( ) ; fullTime = timeInMillisecond ; elapsedTime = 0f ; playAnimationStart ( ) ; }

Comience el reloj de arena.Este reloj de arena de pozo de pare si se estaba ejecutando.


public GroupsGetSettingsQuery ( VkApiClient client , UserActor actor , int groupId ) { super ( client , "groups.getSettings" , GroupSettings . class ) ; accessToken ( actor . getAccessToken ( ) ) ; groupId ( groupId ) ; }

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


private void layout  ( int width , int height ) { int itemsWidth = width - 2 * PADDING ; itemsLayout . layout ( 0 , 0 , itemsWidth , height ) ; }

Establece el ancho y la altura de los diseños.


public static void d  ( String tag , String msg ) { if ( sLevel > LEVEL_DEBUG ) { return ; } Log . d ( tag , msg ) ; }

Enviar un mensaje de registro de depuración


public MarketReorderAlbumsQuery after  ( Integer value ) { return unsafeParam ( "after" , value ) ; }

ID de una colección para colocar la colección actual después de eso.


public Future execute  ( CompletionCallback < Map < String , Object > > callback ) { if ( callback == null ) throw new IllegalArgumentException ( "Callback cannot be null" ) ; TaskManagerImpl taskManager = new TaskManagerImpl ( this . executor_ , this . tasks_ , callback ) ; this . executor_ . execute ( taskManager ) ; return new Future ( taskManager ) ; }


@ Override public boolean isCellEditable  ( int rowIndex , int columnIndex ) { return ( columnIndex != COL_NUMBER ) ; }

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


public JDKRandomGenerator ( long seed ) { delegate = new Random ( seed ) ; }


private void populateAdvancedInformation  ( IVScanResult ivScanResult ) { double selectedLevel = seekbarProgressToLevel ( expandedLevelSeekbar . getProgress ( ) ) ; Pokemon selectedPokemon = initPokemonSpinnerIfNeeded ( ivScanResult . pokemon ) ; setEstimateCpTextBox ( ivScanResult , selectedLevel , selectedPokemon ) ; setEstimateHPTextBox ( ivScanResult , selectedLevel , selectedPokemon ) ; setPokemonPerfectionPercentageText ( ivScanResult , selectedPokemon ) ; setEstimateCostTextboxes ( ivScanResult , selectedLevel , selectedPokemon ) ; exResLevel . setText ( String . valueOf ( selectedLevel ) ) ; setEstimateLevelTextColor ( selectedLevel ) ; setAndCalculatePokeSpamText ( ivScanResult ) ; }

Establece los cuadros de texto de estimación de crecimiento para corresponder a la evolución de Pokémon y el nivel establecido por el usuario.


@ SuppressWarnings ( { "unchecked" , "cast" } ) public java . util . List < TypeDecl > typeArguments  ( MethodDecl decl ) { Object _parameters = decl ; if ( typeArguments_MethodDecl_values == null ) typeArguments_MethodDecl_values = new java . util . HashMap ( 4 ) ; if ( typeArguments_MethodDecl_values . containsKey ( _parameters ) ) { return ( java . util . List < TypeDecl > ) typeArguments_MethodDecl_values . get ( _parameters ) ; } ASTNode$State state = state ( ) ; int num = state . boundariesCrossed ; boolean isFinal = this . is$Final ( ) ; java . util . List < TypeDecl > typeArguments_MethodDecl_value = typeArguments_compute ( decl ) ; if ( isFinal && num == state ( ) . boundariesCrossed ) typeArguments_MethodDecl_values . put ( _parameters , typeArguments_MethodDecl_value ) ; return typeArguments_MethodDecl_value ; }

Escriba inferencia para los métodos de marcador de posición.


protected void stopWatchTextUnit  ( ) { if ( ! textUnitStopWatch . isRunning ( ) ) { textUnitStopWatch . start ( "start creating text unit" ) ; } if ( ++ numOfTextUnitProcess % 500 == 0 ) { logger . info ( "num of text unit added:  {}" , numOfTextUnitProcess ) ; textUnitStopWatch . stop ( ) ; textUnitStopWatch . start ( "batch " + numOfTextUnitProcess ) ; } }

START / STOP STOP WATER EN LOS LUCTOS PARA EL PROCESO DE LA UNIDAD DE TEXTO


static private boolean _domWriter  ( Node node , PrintStream ps , String prefix ) { if ( node . getNodeType ( ) == Node . TEXT_NODE ) { NodeList nl = node . getChildNodes ( ) ; for ( int i = 0 ; i < nl . getLength ( ) ; i ++ ) { _domWriter ( nl . item ( i ) , ps , prefix ) ; } String nodeValue = node . getNodeValue ( ) . trim ( ) ; if ( nodeValue != null && nodeValue . length ( ) > 0 ) { ps . print ( nodeValue ) ; return true ; } return false ; } if ( node . getNodeType ( ) == Node . COMMENT_NODE ) { ps . println ( ) ; ps . print ( prefix + "<!--" + node . getNodeValue ( ) . trim ( ) + "-->" ) ; return false ; } NodeList nl = node . getChildNodes ( ) ; int numOfChildren = nl . getLength ( ) ; String tagName = getNodeSignature ( node ) ; ps . println ( ) ; ps . print ( prefix + "<" + tagName + ">" ) ; boolean isMemberUrlTag = tagName . equals ( ClusterXML . MEMBER_URL_TAG ) ; boolean valueNode = false ; for ( int i = 0 ; i < numOfChildren ; i ++ ) { Node childNode = nl . item ( i ) ; if ( isMemberUrlTag ) { String memberUrl = childNode . getNodeValue ( ) ; memberUrl = handleInvalidChars ( memberUrl ) ; childNode . setNodeValue ( memberUrl ) ; } boolean returnedValue = _domWriter ( childNode , ps , prefix + "     " ) ; valueNode = valueNode || returnedValue ; } if ( ! valueNode ) { ps . println ( ) ; ps . print ( prefix + "</" + node . getNodeName ( ) + ">" ) ; } else { ps . print ( "</" + node . getNodeName ( ) + ">" ) ; } return false ; }

Recursivo normalize y construye árbol XML DOM.


public TypeViewFilter ( @ NonNull Class < ? extends View > [ ] viewTypes ) { super ( viewTypes ) ; }


private void synchronizeData  ( ArrayList < Object > folderAndFiles , OwnCloudClient client ) throws OperationCancelledException { FileDataStorageManager storageManager = getStorageManager ( ) ; OCFile remoteFolder = FileStorageUtils . fillOCFile ( ( RemoteFile ) folderAndFiles . get ( 0 ) ) ; remoteFolder . setParentId ( mLocalFolder . getParentId ( ) ) ; remoteFolder . setFileId ( mLocalFolder . getFileId ( ) ) ; Log_OC . d ( TAG , "Remote folder " + mLocalFolder . getRemotePath ( ) + " changed - starting update of local data " ) ; List < OCFile > updatedFiles = new Vector < OCFile > ( folderAndFiles . size ( ) - 1 ) ; mFilesForDirectDownload . clear ( ) ; mFilesToSyncContents . clear ( ) ; if ( mCancellationRequested . get ( ) ) { throw new OperationCancelledException ( ) ; } List < OCFile > localFiles = storageManager . getFolderContent ( mLocalFolder , false ) ; Map < String , OCFile > localFilesMap = new HashMap < String , OCFile > ( localFiles . size ( ) ) ; for ( OCFile file : localFiles ) { localFilesMap . put ( file . getRemotePath ( ) , file ) ; } OCFile remoteFile = null , localFile = null , updatedFile = null ; RemoteFile r ; for ( int i = 1 ; i < folderAndFiles . size ( ) ; i ++ ) { r = ( RemoteFile ) folderAndFiles . get ( i ) ; remoteFile = FileStorageUtils . fillOCFile ( r ) ; updatedFile = FileStorageUtils . fillOCFile ( r ) ; updatedFile . setParentId ( mLocalFolder . getFileId ( ) ) ; localFile = localFilesMap . remove ( remoteFile . getRemotePath ( ) ) ; updatedFile . setLastSyncDateForProperties ( mCurrentSyncTime ) ; if ( localFile != null ) { updatedFile . setFileId ( localFile . getFileId ( ) ) ; updatedFile . setFavorite ( localFile . isFavorite ( ) ) ; updatedFile . setLastSyncDateForData ( localFile . getLastSyncDateForData ( ) ) ; updatedFile . setModificationTimestampAtLastSyncForData ( localFile . getModificationTimestampAtLastSyncForData ( ) ) ; updatedFile . setStoragePath ( localFile . getStoragePath ( ) ) ; updatedFile . setEtag ( localFile . getEtag ( ) ) ; if ( updatedFile . isFolder ( ) ) { updatedFile . setFileLength ( localFile . getFileLength ( ) ) ; } else if ( mRemoteFolderChanged && remoteFile . isImage ( ) && remoteFile . getModificationTimestamp ( ) != localFile . getModificationTimestamp ( ) ) { updatedFile . setNeedsUpdateThumbnail ( true ) ; Log . d ( TAG , "Image " + remoteFile . getFileName ( ) + " updated on the server" ) ; } updatedFile . setPublicLink ( localFile . getPublicLink ( ) ) ; updatedFile . setShareViaLink ( localFile . isSharedViaLink ( ) ) ; updatedFile . setShareWithSharee ( localFile . isSharedWithSharee ( ) ) ; updatedFile . setEtagInConflict ( localFile . getEtagInConflict ( ) ) ; } else { updatedFile . setEtag ( "" ) ; } searchForLocalFileInDefaultPath ( updatedFile ) ; if ( remoteFile . isFolder ( ) ) { synchronized ( mCancellationRequested ) { if ( mCancellationRequested . get ( ) ) { throw new OperationCancelledException ( ) ; } startSyncFolderOperation ( remoteFile . getRemotePath ( ) ) ; } } else { SynchronizeFileOperation operation = new SynchronizeFileOperation ( localFile , remoteFile , mAccount , true , mContext ) ; mFilesToSyncContents . add ( operation ) ; } updatedFiles . add ( updatedFile ) ; } storageManager . saveFolder ( remoteFolder , updatedFiles , localFilesMap . values ( ) ) ; }

Sincroniza los datos recuperados del servidor sobre los contenidos de la carpeta de destino con los datos actuales en la base de datos local.Subvenciones que McHildren se actualiza con datos frescos después de la ejecución.


public LogOutputStream ( RandomAccessFile raf ) throws IOException { this . raf = raf ; }

Crea un archivo de salida con el <código> aleatoryApessFile </ Code>


@ Override public EntityReference createEntityReference  ( String name ) throws DOMException { if ( errorChecking && ! isXMLName ( name , xml11Version ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , "INVALID_CHARACTER_ERR" , null ) ; throw new DOMException ( DOMException . INVALID_CHARACTER_ERR , msg ) ; } return new EntityReferenceImpl ( this , name ) ; }

Método de fábrica;Crea una referencia de entidades que tiene este documento como su propietario.


public void addParameter  ( ParameterDeclaration node ) { List < ParameterDeclaration > list = ( parent == null || state == null ) ? getParameterListNoTransform ( ) : getParameterList ( ) ; list . addChild ( node ) ; }

Anexar un elemento a la lista de parámetros.


public IntIterator rows  ( boolean reverse ) { return new RowIterator ( reverse ) ; }

Obtener un iterador sobre las filas de mesa.


public static BigDecimal parseBigDecimalForEntity  ( String bigDecimalString ) throws NumberFormatException { if ( bigDecimalString == null ) { return null ; } bigDecimalString = bigDecimalString . trim ( ) ; bigDecimalString = bigDecimalString . replaceAll ( "," , "" ) ; if ( bigDecimalString . length ( ) < 1 ) { return null ; } return new BigDecimal ( bigDecimalString ) ; }

Devuelva nulls para cadenas vacías, ya que el motor de entidades puede lidiar con nulos.Esto proporcionará espacios en blanco en los campos donde se muestra bigdecimal.En blanco que significa NULL, vs. 0 que significa 0


public void releaseAll  ( ) { for ( ListenerPairing listener : myListeners ) { listener . dispose ( ) ; } myListeners . clear ( ) ; for ( CompositeListener listener : myCompositeListeners ) { listener . dispose ( ) ; } myCompositeListeners . clear ( ) ; }

Libere a todos los oyentes registrados con este administrador.


public void destroy  ( ) { for ( EnhancedBookmarkUIObserver observer : mUIObservers ) { observer . onDestroy ( ) ; } assert mUIObservers . size ( ) == 0 ; if ( mUndoController != null ) { mUndoController . destroy ( ) ; mUndoController = null ; } mEnhancedBookmarksModel . removeObserver ( mBookmarkModelObserver ) ; mEnhancedBookmarksModel . destroy ( ) ; mEnhancedBookmarksModel = null ; mLargeIconBridge . destroy ( ) ; mLargeIconBridge = null ; }

Se destruye y se limpia.Esto debe ser llamado después de hacerlo usando esta clase.


protected List < String > validateConfig  ( Config config ) { if ( config . getMigrations ( ) . isEmpty ( ) ) { return ImmutableList . of ( "At least one migration is required." ) ; } return ImmutableList . of ( ) ; }

Devuelve una lista de mensajes de error de validación, si corresponde, para la configuración dada.


@ Override public void actionPerformed  ( ActionEvent e ) { if ( ACTION_START_RECORDING . equals ( e . getActionCommand ( ) ) ) { if ( mSampler == null ) { mSampler = new Sampler ( ) ; } mSampler . startSampling ( ) ; mRecordButton . setActionCommand ( ACTION_STOP_RECORDING ) ; mRecordButton . setText ( "Stop Recording" ) ; } else if ( ACTION_STOP_RECORDING . equals ( e . getActionCommand ( ) ) ) { mSampler . stopSampling ( ) ; mRecordButton . setActionCommand ( ACTION_START_RECORDING ) ; mRecordButton . setText ( "Record" ) ; setData ( mSampler . getData ( ) ) ; } else if ( ACTION_SAVE_RECORDING . equals ( e . getActionCommand ( ) ) ) { } else if ( ACTION_LOAD_RECORDING . equals ( e . getActionCommand ( ) ) ) { } else if ( ACTION_THREAD_SELECTED . equals ( e . getActionCommand ( ) ) ) { int selected = mComboBox . getSelectedIndex ( ) ; if ( selected >= 0 && selected < mComboBox . getItemCount ( ) ) { String threadName = ( String ) mComboBox . getSelectedItem ( ) ; mtree = forest . get ( threadName ) ; mChart . setHTree ( mtree ) ; double start = mtree . getFirstChild ( ) . getStart ( ) ; double end = mtree . getLastChild ( ) . getEnd ( ) ; mDataRange . setMin ( start ) ; mDataRange . setMax ( end ) ; mSelectionRange . setMin ( start ) ; mSelectionRange . setMax ( end ) ; LongDataSeries series = new LongDataSeries ( ) ; RangedContinuousSeries rangedSeries = new RangedContinuousSeries ( "Threads" , mDataRange , new Range ( 0.0 , 200.0 ) , series ) ; Random r = new Random ( System . currentTimeMillis ( ) ) ; for ( int i = 0 ; i < 100 ; i ++ ) { series . add ( ( long ) ( start + ( end - start ) / 100 * i ) , ( long ) r . nextInt ( 100 ) ) ; } mLineChart . addLine ( rangedSeries ) ; mScrollBar . setValues ( 0 , mChart . getHeight ( ) , 0 , mChart . getMaximumHeight ( ) ) ; } } }


@ Override public void applyDimensionBehaviour  ( ) { wrapContent ( ) ; }


AnnotationView viewForAnnotation  ( Annotation annotation ) { return this . annotationToAnnotationViewMap . get ( annotation ) ; }

Método de ayuda para el usuario para que puedan acceder al mapa.


public XSModel toXSModel  ( ) { return toXSModel ( Constants . SCHEMA_VERSION_1_0 ) ; }

Devuelva un <código> XSMODEL </ CODE> que representa a los componentes en las gramáticas de esquema en esta implementación de la piscina.


@ Override protected XMLDocumentScanner createDocumentScanner  ( ) { fNamespaceScanner = new XMLNSDocumentScannerImpl ( ) ; return fNamespaceScanner ; }

Cree un escáner de documentos: este escáner realiza un ajuste del espacio de nombres


public boolean isRmiProtocol  ( ) { return StringUtils . equalsIgnoreCase ( getProtocol ( ) , RMI_PROTOCOL ) ; }

Devuelve VERDADERO si el protocolo es RMI, falso de lo contrario.


public StandardDocumentComparator ( double dGraphImportance ) { GraphImportance = dGraphImportance ; }

Crea una nueva instancia de Mandardcomparator, dada la importancia de la similitud del gráfico N-GRAM en el cálculo de la similitud general.


public static double distance1  ( Vector3D v1 , Vector3D v2 ) { return v1 . distance1 ( v2 ) ; }

Calcule la distancia entre dos vectores de acuerdo con la norma L <SUB> 1 </ SUB>.<p> Llamar a este método es equivalente a llamar: <Code> v1.subtract (v2) .getnorm1 () </ código> Excepto que no se construye un vector intermedio </ p>


public boolean isSkipRoot  ( ) { if ( skipRoot == null ) { return false ; } else { return skipRoot ; } }

Obtiene el valor de la propiedad Skiproot.


Client ( Socket socket , String name , String clientIpAddress , Date accessTime )  { this . dAccessTime = accessTime ; this . ticTacToc = new ClientGameInformation ( Settings . sGameStringStyleTicTacToc ) ; this . catchMe = new ClientGameInformation ( Settings . sGameStringStyleCatchMe ) ; this . meteor = new ClientGameInformation ( Settings . sGameStringStyleMeteorGame ) ; this . pangPang = new ClientGameInformation ( Settings . sGameStringStylePangPang ) ; this . sEnteredRoom = null ; this . clientName = name ; this . socket = socket ; this . nDestoryMeteor = Settings . ZEROINIT ; this . clientIpAddress = clientIpAddress ; this . queryDataSet = FXCollections . observableArrayList ( ) ; this . setGameStartSet ( false ) ; this . setPlayToken ( false ) ; this . setRename ( false ) ; this . clientGameTag = Settings . ERRORCODE ; this . rnd = new Random ( ) ; this . nCatchmePlayCount = Settings . nCatchMeMAXClickCount ; executorServiceSending = Executors . newSingleThreadExecutor ( ) ; receive ( ) ; checkTheTime ( ) ; }


@ Override public void revertToDefaultValue  ( ) { populateField ( defaultValue ) ; }


public static int calculateSampleSize  ( int srcWidth , int srcHeight , int dstWidth , int dstHeight ) { final float srcAspect = ( float ) srcWidth / ( float ) srcHeight ; final float dstAspect = ( float ) dstWidth / ( float ) dstHeight ; if ( srcAspect > dstAspect ) { return srcWidth / dstWidth ; } else { return srcHeight / dstHeight ; } }

Averigüe qué proporción podemos cargar nuestra imagen en la memoria mientras aún es más grande que nuestro ancho y altura deseados


protected AbstractArea ( ZoneName zoneName , int worldId , float minZ , float maxZ ) { if ( minZ > maxZ ) { throw new IllegalArgumentException ( "minZ(" + minZ + ") > maxZ(" + maxZ + ")" ) ; } this . minZ = minZ ; this . maxZ = maxZ ; this . zoneName = zoneName ; this . worldId = worldId ; }


public static SM_SYSTEM_MESSAGE STR_MSG_HOUSING_OBJECT_USE  ( int objectNameId ) { return new SM_SYSTEM_MESSAGE ( 1401257 , calculateNameId ( objectNameId ) ) ; }


public VideoDeleteCommentQuery ( VkApiClient client , UserActor actor , int commentId ) { super ( client , "video.deleteComment" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; commentId ( commentId ) ; }

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


public static SM_SYSTEM_MESSAGE STR_MSG_DAY_CANNOT_SEND_MAIL  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400946 , value0 ) ; }

Has llegado al límite de adjuntos de correo diario de% 0 Kinah, por lo que la Kinah no puede ser enviada.


public static final SM_SYSTEM_MESSAGE STR_ITEM_CANCELED  ( DescriptionId id ) { return new SM_SYSTEM_MESSAGE ( 1300427 , id ) ; }


public Matrix arrayRightDivide  ( Matrix B ) { checkMatrixDimensions ( B ) ; Matrix X = new Matrix ( m , n ) ; double [ ] [ ] C = X . getArray ( ) ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { C [ i ] [ j ] = A [ i ] [ j ] / B . A [ i ] [ j ] ; } } return X ; }

División derecha del elemento por elemento, C = A./B


public void resetPolicy  ( ) { mPreferences . putString ( PREF_LAST_RESPONSE , Integer . toString ( Policy . RETRY ) ) ; setRetryUntil ( DEFAULT_RETRY_UNTIL ) ; setMaxRetries ( DEFAULT_MAX_RETRIES ) ; setRetryCount ( Long . parseLong ( DEFAULT_RETRY_COUNT ) ) ; setValidityTimestamp ( DEFAULT_VALIDITY_TIMESTAMP ) ; mPreferences . commit ( ) ; }

Llamamos a esto para garantizar que obtenimos una nueva política del servidor.Esto se debe utilizar si la URL no es válida.


protected AbstractPolynomialSolver ( final double relativeAccuracy , final double absoluteAccuracy , final double functionValueAccuracy ) { super ( relativeAccuracy , absoluteAccuracy , functionValueAccuracy ) ; }

Construir un solucionador con las precisiones dadas.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { ClusterViewer viewer = getViewer ( ) ; np . matchIgnoreCase ( "select=" ) ; String target = np . getWordMatchesIgnoringCase ( "all none invert" ) ; if ( target . equalsIgnoreCase ( "all" ) ) viewer . selectAll ( true ) ; else if ( target . equalsIgnoreCase ( "invert" ) ) viewer . selectInverted ( ) ; else viewer . selectAll ( false ) ; np . matchIgnoreCase ( ";" ) ; }


public static long copyFile  ( File input , OutputStream output ) throws IOException { final FileInputStream fis = new FileInputStream ( input ) ; try { return IOUtils . copyLarge ( fis , output ) ; } finally { fis . close ( ) ; } }

Copiar bytes de un archivo <código> </ código> a un <código> SURODSTREAM </ CODE>.<p> Este método almacena la entrada internamente, por lo que no es necesario usar un <código> tamponputStream </ Code>.</ p>


public static byte [ ] toByteArray  ( Writable ... writables ) { final DataOutputBuffer out = new DataOutputBuffer ( ) ; try { for ( Writable w : writables ) { w . write ( out ) ; } out . close ( ) ; } catch ( IOException e ) { throw new RuntimeException ( "Fail to convert writables to a byte array" , e ) ; } return out . getData ( ) ; }

Convertir escritos a una matriz de bytes


public Bundler putAll  ( Bundle bundle ) { this . bundle . putAll ( bundle ) ; return this ; }

Inserta todas las asignaciones del paquete dado en este paquete.


public void updateView  ( String what ) { isUpToDate = false ; commandManager . updateEnableState ( ) ; isUpToDate = true ; }

Pregunte la vista que se rescanza.Este es el método envuelto en un objeto corredor y se coloca en la cola de eventos de swing para evitar modificaciones concurrentes.


@ Override public void requestCollections  ( Context c , int page , boolean refresh ) { if ( ! model . isRefreshing ( ) && ! model . isLoading ( ) ) { if ( refresh ) { model . setRefreshing ( true ) ; } else { model . setLoading ( true ) ; } page = refresh ? 1 : page + 1 ; listener = new OnRequestCollectionsListener ( c , page , refresh ) ; model . getService ( ) . requestUserCollections ( ( User ) model . getRequestKey ( ) , page , Mysplash . DEFAULT_PER_PAGE , listener ) ; } }


public final synchronized String resolvePublic  ( String publicId , String systemId ) throws IOException { if ( fCatalogsChanged ) { parseCatalogs ( ) ; fCatalogsChanged = false ; } return ( fCatalog != null ) ? fCatalog . resolvePublic ( publicId , systemId ) : null ; }

Devuelve la asignación de URI en el catálogo para el identificador externo dado o <código> NULL  si no existe una asignación.Los identificadores públicos se normalizan antes de la comparación.


static public String doubleToString  ( double d ) { if ( Double . isInfinite ( d ) || Double . isNaN ( d ) ) { return "null" ; } String s = Double . toString ( d ) ; if ( s . indexOf ( '.' ) > 0 && s . indexOf ( 'e' ) < 0 && s . indexOf ( 'E' ) < 0 ) { while ( s . endsWith ( "0" ) ) { s = s . substring ( 0 , s . length ( ) - 1 ) ; } if ( s . endsWith ( "." ) ) { s = s . substring ( 0 , s . length ( ) - 1 ) ; } } return s ; }

Producir una cadena de un doble.La cadena "null" se devolverá si el número no está finito.


public InvalidDescriptionException ( final String message ) { super ( message ) ; }

Construye una nueva excepción InvalidDescriptionException con el mensaje dado


public Author toEntity  ( AuthorDTO dto ) { return toEntity ( dto , 1 ) ; }

Convierte a la DTO pasada a un autor.Conveniente para la consulta por ejemplo.


public static void moveFile  ( File srcFile , File destFile ) throws IOException { if ( srcFile == null ) { throw new NullPointerException ( "Source must not be null" ) ; } if ( destFile == null ) { throw new NullPointerException ( "Destination must not be null" ) ; } if ( ! srcFile . exists ( ) ) { throw new FileNotFoundException ( "Source '" + srcFile + "' does not exist" ) ; } if ( srcFile . isDirectory ( ) ) { throw new IOException ( "Source '" + srcFile + "' is a directory" ) ; } if ( destFile . exists ( ) ) { throw new FileExistsException ( "Destination '" + destFile + "' already exists" ) ; } if ( destFile . isDirectory ( ) ) { throw new IOException ( "Destination '" + destFile + "' is a directory" ) ; } boolean rename = srcFile . renameTo ( destFile ) ; if ( ! rename ) { copyFile ( srcFile , destFile ) ; if ( ! srcFile . delete ( ) ) { FileUtils . deleteQuietly ( destFile ) ; throw new IOException ( "Failed to delete original file '" + srcFile + "' after copy to '" + destFile + "'" ) ; } } }

Mueve un archivo.<P /> Cuando el archivo de destino está en otro sistema de archivos, haga una "Copia y eliminación".


protected Object entryInitialFlow  ( ) { return emptySet . clone ( ) ; }


protected Observable < PreResponse > handlePreResponseWithError  ( PreResponse preResponse , UriInfo uriInfo , Optional < PaginationParameters > paginationParameters ) { ResponseContext responseContext = preResponse . getResponseContext ( ) ; if ( responseContext . containsKey ( ResponseContextKeys . STATUS . getName ( ) ) ) { ResponseException responseException = new ResponseException ( ( Integer ) responseContext . get ( ResponseContextKeys . STATUS . getName ( ) ) , ( String ) responseContext . get ( ResponseContextKeys . ERROR_MESSAGE . getName ( ) ) , ( String ) responseContext . get ( ResponseContextKeys . ERROR_MESSAGE . getName ( ) ) , null , null , writer ) ; return Observable . error ( responseException ) ; } return paginationParameters . map ( null ) . map ( null ) . map ( null ) . orElse ( Observable . just ( preResponse ) ) ; }

Compruebe si la PRRESPONSE contenga un error y, si lo hace, devuelva una envoltura observable El error más devuelva una envoltura observable de la PRResponse como está.


public V put  ( short key , V value ) { int index = insertionIndex ( key ) ; return doPut ( key , value , index ) ; }

Inserta un par de claves / valor en el mapa.


public static int calculateMagicalResistRate  ( Creature attacker , Creature attacked , int accMod ) { if ( attacked . getObserveController ( ) . checkAttackStatus ( AttackStatus . RESIST ) ) { return 1000 ; } int attackerLevel = attacker . getLevel ( ) ; int targetLevel = attacked . getLevel ( ) ; int resistRate = attacked . getGameStats ( ) . getMResist ( ) . getCurrent ( ) - attacker . getGameStats ( ) . getMainHandMAccuracy ( ) . getCurrent ( ) - attacker . getGameStats ( ) . getStat ( StatEnum . PVP_MAGICAL_HIT_ACCURACY , 0 ) . getCurrent ( ) - accMod ; if ( ( targetLevel - attackerLevel ) > 2 ) { resistRate += ( targetLevel - attackerLevel - 2 ) * 100 ; } if ( resistRate <= 0 ) { resistRate = 1 ; } if ( resistRate > 500 ) { resistRate = 500 ; } return resistRate ; }


public void addBodyDecl  ( BodyDecl node ) { List < BodyDecl > list = ( parent == null || state == null ) ? getBodyDeclListNoTransform ( ) : getBodyDeclList ( ) ; list . addChild ( node ) ; }


private void optimizeTasksLocked  ( ) { ArrayList < ActivityManager . RecentTaskInfo > recentTask = new ArrayList < > ( mAM . getRecentTasks ( Integer . MAX_VALUE , ActivityManager . RECENT_WITH_EXCLUDED | ActivityManager . RECENT_IGNORE_UNAVAILABLE ) ) ; int N = mHistory . size ( ) ; while ( N -- > 0 ) { TaskRecord task = mHistory . valueAt ( N ) ; ListIterator < ActivityManager . RecentTaskInfo > iterator = recentTask . listIterator ( ) ; boolean taskAlive = false ; while ( iterator . hasNext ( ) ) { ActivityManager . RecentTaskInfo info = iterator . next ( ) ; if ( info . id == task . taskId ) { taskAlive = true ; iterator . remove ( ) ; break ; } } if ( ! taskAlive ) { mHistory . removeAt ( N ) ; } } }

La aplicación comenzó en VA se puede eliminar en la pantalla de resumen, luego se invocará AMS.REMOVETASK, se liberará toda la estructura de datos sobre la tarea en AMS, mientras que el proceso del cliente sigue vivo.Así que también elimina los datos relacionados en VA.Una nueva recordación de tareas será recreada en "OnactivityCreated".


private static void resolveSelfAssignmentExpression  ( SelfAssignmentExpression objSubjectExpression , @ Nullable Function objScope , PhpIndex objIndex , HashSet < String > objTypesSet ) { storeAsTypeWithSignaturesImport ( objSubjectExpression . getType ( ) . toString ( ) , objScope , objIndex , objTypesSet ) ; }

Resolverá las asignaciones de autosiciones


public static String generateKey  ( String imageUri , ImageSize targetSize ) { return new StringBuilder ( imageUri ) . append ( URI_AND_SIZE_SEPARATOR ) . append ( targetSize . getWidth ( ) ) . append ( WIDTH_AND_HEIGHT_SEPARATOR ) . append ( targetSize . getHeight ( ) ) . toString ( ) ; }

Genera clave para la memoria caché de memoria para la imagen entrante (tamaño URI +). <br /> Patrón para la tecla de caché - <B> [ImageURI] _ [Ancho] x [altura] </ b>.


public static void main  ( String [ ] args ) { Locale chs = new Locale ( "zh" , "CN" ) ; for ( int i = 1 ; i < 152 ; i ++ ) { try { System . out . println ( String . format ( chs , "Pokedex# %d is %s in %s" , i , PokeDictionary . translateName ( PokeDictionary . getDisplayName ( i , Locale . ENGLISH ) , chs ) , chs . getDisplayName ( chs ) ) ) ; } catch ( MissingResourceException e ) { Log . e ( "Main" , "Unable to find Pokemon name with given Pokedex: " , e ) ; } } }

Muestra los 151 nombres de Pokémon para todos los locales compatibles


private boolean checkMirrorEnabled  ( ) { boolean isMirrorEnabled = false ; if ( _spaceURL != null ) { isMirrorEnabled = Boolean . parseBoolean ( _spaceURL . getProperty ( SpaceURL . MIRROR , Mirror . MIRROR_SERVICE_ENABLED_DEFAULT ) ) ; } Element mirrorService = getFirstMatchElement ( m_rootDoc . getDocumentElement ( ) , MIRROR_SERVICE_TAG ) ; if ( isMirrorEnabled && mirrorService == null ) { throw new IllegalArgumentException ( new ClusterConfigurationException ( "Mirror service is set in the Space URL, " + "but the cluster schema used does not support a mirror service." ) ) ; } if ( mirrorService != null ) { isMirrorEnabled |= JSpaceUtilities . parseBooleanTag ( ENABLED_TAG , getNodeValueIfExists ( mirrorService , ENABLED_TAG ) ) ; } return isMirrorEnabled ; }

Cheques Si se necesita un servicio de espejo y se configura correctamente.


public boolean using  ( ) { return mUsing ; }


public boolean isNested  ( ) { return ( depth ( ) > 1 ) ; }

Comprueba si la plantilla se anula la consulta druida.


public static double trimToRange  ( double untrimmedValue , double min , double max ) { return Math . max ( min , Math . min ( max , untrimmedValue ) ) ; }

Recorte el valor dado para que esté en el intervalo cerrado [MIN, MAX].


@ Override public void resetDocumentLocator  ( String publicid , String systemid ) { thePublicid = publicid ; theSystemid = systemid ; theLastLine = theLastColumn = theCurrentLine = theCurrentColumn = 0 ; }

Restablecer el localizador de documentos, suministrando sistemas y publicidad.


public static void main  ( String sArgs [ ] ) { DocumentNGramGraph g1 = new DocumentNGramGraph ( ) ; g1 . setDataString ( "This is a serious test..." ) ; DocumentNGramGraph g2 = new DocumentNGramGraph ( 1 , 3 , 3 ) ; g2 . setDataString ( "This is a test..." ) ; DocumentNGramGraph g3 = new DocumentNGramGraph ( 1 , 3 , 3 ) ; g3 . setDataString ( "This is serious for a test." ) ; NGramGraphEuclidianComparator c = new NGramGraphEuclidianComparator ( ) ; System . err . println ( "Value Similarity of g1, g2 to g3:" ) ; System . err . println ( c . getSimilarityBetween ( g1 , g3 ) . ValueSimilarity ) ; System . err . println ( c . getSimilarityBetween ( g2 , g3 ) . ValueSimilarity ) ; System . err . println ( "Euclidian Similarity of g1, g2 to g3:" ) ; System . err . println ( c . getEuclidianSimilarityBetween ( g1 , g3 , false ) . getOverallSimilarity ( ) ) ; System . err . println ( c . getEuclidianSimilarityBetween ( g2 , g3 , false ) . getOverallSimilarity ( ) ) ; System . err . println ( "Euclidian Distance of g1, g2 to g3:" ) ; System . err . println ( c . getEuclidianSimilarityBetween ( g1 , g3 , false ) . asDistance ( ) ) ; System . err . println ( c . getEuclidianSimilarityBetween ( g2 , g3 , false ) . asDistance ( ) ) ; System . err . println ( "Self-Euclidian Similarity of g1:" ) ; System . err . println ( c . getEuclidianSimilarityBetween ( g1 , g1 , false ) . getOverallSimilarity ( ) ) ; System . err . println ( c . getEuclidianSimilarityBetween ( g1 , g1 , false ) . asDistance ( ) ) ; }

Método de utilidad utilizado para fines de prueba.


static boolean contains  ( Object [ ] arr , int i , Object obj ) { while ( -- i >= 0 ) { if ( obj . equals ( arr [ i ] ) ) { return true ; } } return false ; }

Devuelve VERDADERO si el objeto no nulo es igual a cualquiera de los elementos de la matriz con un índice menor que i.


public boolean isApplicable  ( ) { return getViewer ( ) . getTabbedIndex ( ) == ClusterViewer . PCoA_TAB_INDEX ; }

¿El comando es actualmente aplicable?Utilizado para establecer habilitar el estado de comando


private void load  ( ByteBuffer bb ) throws BufferUnderflowException , MaryConfigurationException  { int numIdx = bb . getInt ( ) ; idxInterval = bb . getInt ( ) ; if ( idxInterval <= 0 ) { throw new MaryConfigurationException ( "read negative index interval -- file seems corrupt" ) ; } bytePtrs = new long [ numIdx ] ; timePtrs = new long [ numIdx ] ; for ( int i = 0 ; i < numIdx ; i ++ ) { bytePtrs [ i ] = bb . getLong ( ) ; timePtrs [ i ] = bb . getLong ( ) ; if ( i > 0 ) { if ( bytePtrs [ i ] < bytePtrs [ i - 1 ] || timePtrs [ i ] < timePtrs [ i - 1 ] ) { throw new MaryConfigurationException ( "File seems corrupt: Pointer positions in index fields are not strictly monotonously rising" ) ; } } } bb . getLong ( ) ; bb . getLong ( ) ; }

Método que carga un índice de un búfer de bytes.


@ SuppressWarnings ( { "unchecked" , "cast" } ) public ResourceDeclaration fullCopy  ( ) { ResourceDeclaration tree = ( ResourceDeclaration ) 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.


private final void activateObjects  ( ) { for ( VisibleObject visObject : objects . values ( ) ) { if ( visObject instanceof Creature ) { Creature creature = ( Creature ) visObject ; creature . getAi2 ( ) . onGeneralEvent ( AIEventType . ACTIVATE ) ; } } }

Enviar evento Activar a todos los objetos con AI2


@ Override public String toString  ( ) { return "Segmenter" ; }

Devuelve el simple nombre de esta clase.


public Configured ( Configuration conf ) { setConf ( conf ) ; }


public static String toGbk  ( String str ) { try { return new String ( str . getBytes ( "utf-8" ) , "gbk" ) ; } catch ( UnsupportedEncodingException e ) { LogUtils . warn ( e . getMessage ( ) ) ; return str ; } }


protected void onHostViewInitialized  ( T host ) { }


public static void showCode  ( Instruction inst , int startinst , cp_info constant_pool [ ] ) { int i ; Instruction j = inst ; String pref ; i = startinst ; while ( j != null ) { if ( i > 999 ) pref = "" ; else if ( i > 99 ) pref = " " ; else if ( i > 9 ) pref = "  " ; else pref = "   " ; G . v ( ) . out . print ( pref + i + ": " ) ; G . v ( ) . out . println ( j . toString ( constant_pool ) ) ; i = j . nextOffset ( i ) ; j = j . next ; } }

Muestra el código (en forma de instrucciones) para la lista de instrucciones dada.