private void toggleTutorials  ( ) { myExpanded = ! myExpanded ; getLog ( ) . debug ( "Toggled service summary view to expand state: " + myExpanded ) ; myArrow . setIcon ( myExpanded ? AllIcons . Nodes . TreeDownArrow : AllIcons . Nodes . TreeRightArrow ) ; myTutorialsList . setVisible ( myExpanded ) ; }

Alterna la visibilidad de la lista de tutoriales asociada con el servicio dado.


@ VisibleForTesting protected void cancelAlarmOnSystem  ( Context context , PendingIntent operation ) { AlarmManager alarmManager = ( AlarmManager ) context . getSystemService ( Context . ALARM_SERVICE ) ; alarmManager . cancel ( operation ) ; }

Cancele una alarma previamente establecida en el sistema.Este método puede ser anulado en las pruebas.


public void drawChartTransposed  ( Graphics2D gc ) { SelectionGraphics < String [ ] > sgc = ( gc instanceof SelectionGraphics ? ( SelectionGraphics < String [ ] > ) gc : null ) ; gc . setFont ( getFont ( ChartViewer . FontKeys . XAxisFont . toString ( ) ) ) ; final int y0 = getHeight ( ) - bottomMargin ; final int y1 = topMargin ; final String [ ] series = getChartData ( ) . getSeriesNames ( ) . toArray ( new String [ getChartData ( ) . getNumberOfSeries ( ) ] ) ; final double topY ; final double [ ] percentFactor ; if ( scalingType == ChartViewer . ScalingType . PERCENT ) { final String [ ] seriesIncludingDisabled = getChartData ( ) . getSeriesNamesIncludingDisabled ( ) ; percentFactor = computePercentFactorPerSampleForTransposedChart ( ( DefaultChartData ) getChartData ( ) , seriesIncludingDisabled ) ; topY = computeMaxClassValueUsingPercentFactorPerSeries ( ( DefaultChartData ) getChartData ( ) , seriesIncludingDisabled , percentFactor ) ; } else if ( scalingType == ChartViewer . ScalingType . LOG ) { topY = computeMaxYAxisValueLogScale ( getMaxValue ( ) ) ; percentFactor = null ; } else if ( scalingType == ChartViewer . ScalingType . SQRT ) { topY = Math . sqrt ( getMaxValue ( ) ) ; percentFactor = null ; } else { topY = 1.1 * getMaxValue ( ) ; percentFactor = null ; } final double yFactor = ( y0 - y1 ) / topY ; final int x0 = leftMargin ; final int x1 = getWidth ( ) - rightMargin ; if ( x0 >= x1 ) return ; final int numberOfDataSets = getChartData ( ) . getNumberOfSeries ( ) ; final int numberOfClasses = getChartData ( ) . getNumberOfClasses ( ) ; double xStep = ( x1 - x0 ) / ( numberOfClasses * ( numberOfDataSets + ( isGapBetweenBars ( ) ? 1 : 0 ) ) ) ; final double bigSpace = Math . max ( 2.0 , Math . min ( 10.0 , xStep ) ) ; xStep = ( x1 - x0 - ( isGapBetweenBars ( ) ? bigSpace * ( numberOfClasses ) : 0 ) ) / ( double ) ( numberOfClasses * numberOfDataSets ) ; int c = 0 ; for ( String className : getChartData ( ) . getClassNames ( ) ) { if ( isShowXAxis ( ) ) { final double xLabel = leftMargin + ( isGapBetweenBars ( ) ? ( c + 1 ) * bigSpace : 0 ) + ( ( c + 0.5 ) * numberOfDataSets ) * xStep ; Point2D apt = new Point2D . Double ( xLabel , getHeight ( ) - bottomMargin + 10 ) ; final Dimension labelSize = Basic . getStringSize ( gc , className , 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 ( null , className ) ) { 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 [ ] { null , className } ) ; drawString ( gc , className , apt . getX ( ) , apt . getY ( ) , classLabelAngle ) ; if ( sgc != null ) sgc . clearCurrentItem ( ) ; } int d = 0 ; for ( int i = 0 ; i < series . length ; i ++ ) { final String seriesName = series [ i ] ; double value = getChartData ( ) . getValueAsDouble ( seriesName , className ) ; switch ( scalingType ) { case PERCENT : { value *= percentFactor [ i ] ; break ; } case LOG : { if ( value == 1 ) value = Math . log10 ( 2 ) / 2 ; else if ( value > 0 ) value = Math . log10 ( value ) ; break ; } case SQRT : { if ( value > 0 ) value = Math . sqrt ( value ) ; break ; } } final double xBar = leftMargin + ( isGapBetweenBars ( ) ? ( c + 1 ) * bigSpace : 0 ) + ( c * numberOfDataSets + d ) * xStep ; final double height = Math . max ( 0 , value * yFactor ) ; final Rectangle2D rect = new Rectangle ( ( int ) Math . round ( xBar ) , ( int ) Math . round ( y0 - height ) , Math . max ( 1 , ( int ) Math . round ( xStep ) ) , ( int ) Math . round ( height ) ) ; final Color color = getChartColors ( ) . getSampleColor ( seriesName ) ; gc . setColor ( color ) ; if ( sgc != null ) sgc . setCurrentItem ( new String [ ] { seriesName , className } ) ; gc . fill ( rect ) ; if ( sgc != null ) sgc . clearCurrentItem ( ) ; final boolean isSelected = getChartData ( ) . getChartSelection ( ) . isSelected ( seriesName , className ) ; if ( isSelected ) { gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; gc . setStroke ( HEAVY_STROKE ) ; gc . draw ( rect ) ; gc . setStroke ( NORMAL_STROKE ) ; } else { gc . setColor ( color . darker ( ) ) ; gc . draw ( rect ) ; } if ( showValues || isSelected ) { String label = "" + ( int ) getChartData ( ) . getValueAsDouble ( seriesName , className ) ; valuesList . add ( new DrawableValue ( label , ( int ) ( rect . getX ( ) + rect . getWidth ( ) / 2 ) , ( int ) ( rect . getY ( ) - 2 ) , isSelected ) ) ; } d ++ ; } c ++ ; } if ( valuesList . size ( ) > 0 ) { gc . setFont ( getFont ( ChartViewer . FontKeys . ValuesFont . toString ( ) ) ) ; DrawableValue . drawValues ( gc , valuesList , true , false ) ; valuesList . clear ( ) ; } if ( sgc == null && lastDown != null ) { gc . setColor ( Color . green ) ; gc . draw ( lastDown ) ; } }

Dibuja barras en las que los colores están por conjunto de datos.


public static void flushWriter  ( Writer wr ) { if ( wr != null ) { try { wr . flush ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } }


private File createCaptureFile  ( int encodingType , String fileName ) { if ( fileName . isEmpty ( ) ) { fileName = ".Pic" ; } if ( encodingType == JPEG ) { fileName = fileName + ".jpg" ; } else if ( encodingType == PNG ) { fileName = fileName + ".png" ; } else { throw new IllegalArgumentException ( "Invalid Encoding Type: " + encodingType ) ; } return new File ( getTempDirectoryPath ( ) , fileName ) ; }

Cree un archivo en el directorio temporal de aplicaciones según la codificación suministrada.


private HttpEntityEnclosingRequestBase addEntityToRequestBase  ( HttpEntityEnclosingRequestBase requestBase , HttpEntity entity ) { if ( entity != null ) { requestBase . setEntity ( entity ) ; } return requestBase ; }

Aplicable solo a los métodos HTTPRequest que se extienden a HttpentityEnclingRequestBase, que, por ejemplo, no eliminan


public static DataFrame dataFrameForRecords  ( JavaRDD < GenericRecord > records , Schema schema , SQLContext sqlc ) { JavaRDD < Row > rows = rowsForRecords ( records ) ; StructType structType = structTypeForSchema ( schema ) ; DataFrame dataFrame = sqlc . createDataFrame ( rows , structType ) ; return dataFrame ; }

El proceso de datos equivalente para el RDD dado de los registros AVRO.


public static boolean canInviteToAlliance  ( Player player , Player target ) { for ( Restrictions restrictions : RESTRICTIONS [ RestrictionMode . canInviteToAlliance . ordinal ( ) ] ) { if ( ! restrictions . canInviteToAlliance ( player , target ) ) { return false ; } } return true ; }

Esta función se crea para activar / deshabilitar la invitación a la alianza.


public void loadProcessConfiguration  ( ) { Document xmlConfiguration ; ProcessConfigurationResponse processConfigurationResponse = null ; log . trace ( "Configuration process started" ) ; boolean localConfiguration = false ; if ( environment . containsProperty ( Options . LOCAL_CONFIG_FILE ) ) { localConfiguration = true ; String fileSystemLocation = environment . getProperty ( Options . LOCAL_CONFIG_FILE ) ; log . info ( "Loading configuration from file: {}" , fileSystemLocation ) ; xmlConfiguration = this . processConfigurationLoader . fromFiletoDOC ( fileSystemLocation ) ; } else { log . info ( "Loading configuration from server" ) ; processConfigurationResponse = this . processConfigurationLoader . getProcessConfiguration ( ) ; if ( processConfigurationResponse . getConfigurationXML ( ) . equals ( ProcessConfigurationResponse . CONF_REJECTED ) ) { sendDisconnectionNotification ( ) ; throw new RuntimeException ( "CONF_REJECTED received" ) ; } xmlConfiguration = this . processConfigurationLoader . fromXMLtoDOC ( processConfigurationResponse . getConfigurationXML ( ) ) ; } if ( xmlConfiguration == null ) { sendDisconnectionNotification ( ) ; throw new RuntimeException ( "Could not parse XML configuration" ) ; } if ( environment . containsProperty ( Options . REMOTE_CONFIG_FILE ) ) { if ( ! localConfiguration ) { saveConfiguration ( xmlConfiguration ) ; } else { log . info ( "Local configuration will not be saved. It is already in local disk" ) ; } } log . debug ( "Loading DAQ configuration properties from XML document..." ) ; try { ProcessConfiguration configuration = ProcessConfigurationHolder . getInstance ( ) ; configuration = this . processConfigurationLoader . createProcessConfiguration ( configuration . getProcessName ( ) , configuration . getprocessPIK ( ) , xmlConfiguration , localConfiguration ) ; ProcessConfigurationHolder . setInstance ( configuration ) ; log . debug ( "Process configuration successfully loaded" ) ; } catch ( ConfUnknownTypeException ex ) { sendDisconnectionNotification ( ) ; throw new RuntimeException ( "UNKNOWN configuration received" ) ; } catch ( Exception ex ) { sendDisconnectionNotification ( ) ; throw new RuntimeException ( "Exception caught while configuring the DAQ. Check the configuration XML" , ex ) ; } }


private void validateModeConditions  ( Filter filter ) { expect ( filter . getFilterConditions ( ) . stream ( ) . filter ( HAS_ANY_MODE ) . findFirst ( ) . isPresent ( ) , equalTo ( false ) ) . verify ( INCORRECT_FILTER_PARAMETERS , "Filters for 'mode' aren't applicable for project's launches." ) ; }

Validar Si el filtro no contiene condiciones relacionadas "MODO".


public boolean isCyclic  ( ) { return isCyclic ; }

Pruebas si la rueda es cíclica.Eso significa antes del 1er artículo se muestra el último


@ Override public boolean isToTop  ( ) { return toTop ; }


@ Override public String toString  ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( getClass ( ) . getSimpleName ( ) ) ; sb . append ( " [" ) ; sb . append ( "Hash = " ) . append ( hashCode ( ) ) ; sb . append ( ", sessionId=" ) . append ( sessionId ) ; sb . append ( ", account=" ) . append ( account ) ; sb . append ( ", ip=" ) . append ( ip ) ; sb . append ( ", startTime=" ) . append ( startTime ) ; sb . append ( "]" ) ; return sb . toString ( ) ; }

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


@ Override public boolean shouldOverrideUrlLoading  ( WebView view , String url ) { return CommonRefreshWebViewActivity . this . shouldOverrideUrlLoading ( view , url ) ; }

Indique la aplicación anfitriona la oportunidad de asumir el control cuando una nueva URL está a punto de ser cargada en la WebView actual.Si no se proporciona webViewClient, por defecto, WebView le pedirá a Activity Manager que elija el controlador adecuado para la URL.Si se proporciona webViewClient, devuelva verdadero significa que la aplicación host maneja la URL, mientras que la devolución falsa significa que el webview actual maneja la URL.Este método no se requiere para solicitudes utilizando el "Método" POST ".


public void cleanupTableSetForScan  ( String id ) { String path = getPathForScan ( id ) ; DistributedTableSerializer . cleanup ( _curator , path ) ; }

Borra todos los artefactos creados por la TICABSET durante la ejecución para el ID de escaneo proporcionado.Este método debe llamarse en algún momento después de que se complete el escaneo.


static ByteBuffer ioResourceToByteBuffer  ( String resource , int bufferSize ) throws IOException { ByteBuffer buffer ; Path path = Paths . get ( resource ) ; if ( Files . isReadable ( path ) ) { try ( SeekableByteChannel fc = Files . newByteChannel ( path ) ) { buffer = BufferUtils . createByteBuffer ( ( int ) fc . size ( ) + 1 ) ; while ( fc . read ( buffer ) != - 1 ) ; } } else { try ( InputStream source = IOUtil . class . getClassLoader ( ) . getResourceAsStream ( resource ) ; ReadableByteChannel rbc = Channels . newChannel ( source ) ) { buffer = createByteBuffer ( bufferSize ) ; while ( true ) { int bytes = rbc . read ( buffer ) ; if ( bytes == - 1 ) break ; if ( buffer . remaining ( ) == 0 ) buffer = resizeBuffer ( buffer , buffer . capacity ( ) * 2 ) ; } } } buffer . flip ( ) ; return buffer ; }

Lee el recurso especificado y devuelve los datos en bruto como un bytebuffer.


public SnippetObject key  ( Map . Entry < Object , Object > e ) { return new SnippetObject ( longify ( e . getKey ( ) ) , myPath . key ( ) , mySnippets ) ; }

Construye una llave de una entrada de mapa (este objeto es el mapa).


public static < T > Set < T > difference  ( Collection < ? extends T > s1 , Collection < ? extends T > s2 ) { Set < T > s3 = new HashSet < T > ( s1 ) ; s3 . removeAll ( s2 ) ; return s3 ; }


protected Dfp ( final DfpField field , int x ) { this ( field , ( long ) x ) ; }


void handleSelectionEvent  ( int eventType , float posXPix , float posYPix ) { boolean shouldHandleSelection = false ; switch ( eventType ) { case SelectionEventType . SELECTION_HANDLES_SHOWN : mWasTapGestureDetected = false ; mSelectionType = SelectionType . LONG_PRESS ; shouldHandleSelection = true ; unscheduleInvalidTapNotification ( ) ; break ; case SelectionEventType . SELECTION_HANDLES_CLEARED : mHandler . handleSelectionDismissal ( ) ; resetAllStates ( ) ; break ; case SelectionEventType . SELECTION_HANDLE_DRAG_STOPPED : shouldHandleSelection = mShouldHandleSelectionModification ; break ; case SelectionEventType . SELECTION_ESTABLISHED : mIsSelectionEstablished = true ; break ; case SelectionEventType . SELECTION_DISSOLVED : mIsSelectionEstablished = false ; break ; default : } if ( shouldHandleSelection ) { ContentViewCore baseContentView = getBaseContentView ( ) ; if ( baseContentView != null ) { String selection = baseContentView . getSelectedText ( ) ; if ( selection != null ) { mX = posXPix ; mY = posYPix ; mSelectedText = selection ; handleSelection ( selection , SelectionType . LONG_PRESS ) ; } } } }

Maneja una notificación de que se realizó un evento de selección.


@ Override public String toString  ( ) { return super . toString ( ) + "[sumDirectoryContents=" + sumDirectoryContents + "]" ; }

Representación de cadena de este comparador de archivos.


public static < T > T  runRenderAction ( @ NotNull Callable < T > callable ) throws Exception { try { if ( ourTimeoutExceptionCounter . get ( ) > 3 ) { ourRenderingExecutor . submit ( null ) . get ( 50 , TimeUnit . MILLISECONDS ) ; } T result = ourRenderingExecutor . submit ( callable ) . get ( DEFAULT_RENDER_THREAD_TIMEOUT_MS , TimeUnit . MILLISECONDS ) ; ourTimeoutExceptionCounter . set ( 0 ) ; return result ; } catch ( TimeoutException e ) { ourTimeoutExceptionCounter . incrementAndGet ( ) ; Thread renderingThread = ourRenderingThread . get ( ) ; TimeoutException timeoutException = new TimeoutException ( "Preview timed out while rendering the layout.\n" + "This typically happens when there is an infinite loop or unbounded recursion in one of the custom views." ) ; if ( renderingThread != null ) { timeoutException . setStackTrace ( renderingThread . getStackTrace ( ) ) ; } throw timeoutException ; } }

Ejecuta una acción que requiere el bloqueo de renderizado.Layoutlib no es seguro, por lo que cualquier acción de renderización debe llamarse utilizando este método.


@ Override public void onCreate  ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; vibrator = ( Vibrator ) getSystemService ( Context . VIBRATOR_SERVICE ) ; setContentView ( R . layout . common_ui ) ; RajaVrView gvrView = ( RajaVrView ) findViewById ( R . id . gvr_view ) ; gvrView . setEGLConfigChooser ( 8 , 8 , 8 , 8 , 16 , 8 ) ; gvrView . setRenderer ( new DemoVRRenderer ( this ) ) ; gvrView . setTransitionViewEnabled ( true ) ; gvrView . setOnCardboardBackButtonListener ( null ) ; setGvrView ( gvrView ) ; gvrAudioEngine = new GvrAudioEngine ( this , GvrAudioEngine . RenderingMode . BINAURAL_HIGH_QUALITY ) ; }

Establece la vista a nuestra GVRView e inicializa las matrices de transformación que usaremos para hacer nuestra escena.


public void parse  ( String string ) { if ( string == null ) { throw new NullPointerException ( "string is null" ) ; } int bufferSize = Math . max ( MIN_BUFFER_SIZE , Math . min ( DEFAULT_BUFFER_SIZE , string . length ( ) ) ) ; try { parse ( new StringReader ( string ) , bufferSize ) ; } catch ( IOException exception ) { throw new RuntimeException ( exception ) ; } }

Analiza la cadena de entrada dada.La entrada debe contener un valor JSON válido, opcionalmente acolchado con espacios en blanco.


public int logout  ( ) { return Helper . update ( getId ( ) , V . create ( "sid" , X . EMPTY ) . set ( "updated" , System . currentTimeMillis ( ) ) , User . class ) ; }

Registre la información de cierre de sesión en la base de datos para el usuario.


private void populateSegmentList  ( int index ) { segmentListModel . clear ( ) ; int segmentIndex = 0 ; for ( @ SuppressWarnings ( "unused" ) WKTSegmentList pointList : wktGeometry . getSegmentList ( index ) ) { segmentListModel . addElement ( wktGeometry . getSegmentName ( segmentIndex ) ) ; segmentIndex ++ ; } if ( ! segmentListModel . isEmpty ( ) ) { segmentList . setSelectedIndex ( 0 ) ; } }


public String constructFullClasspath  ( ) { String cp = super . constructFullClasspath ( ) ; cp += File . pathSeparator + soot . options . Options . v ( ) . soot_classpath ( ) ; return cp ; }

Aneja la capacidad de clase de hollín a la conexión de clase predeterminada del sistema.


protected void bindTextToView  ( CharSequence text , TextView view ) { if ( view == null ) { return ; } if ( text != null ) { view . setText ( text ) ; view . setVisibility ( View . VISIBLE ) ; } else { view . setVisibility ( View . GONE ) ; } }

Se une el texto a la vista de texto dada.Si el texto era nulo, oculta la vista de texto.


private String fFormatString  ( double x ) { boolean noDigits = false ; char [ ] ca6 , ca7 ; if ( Double . isInfinite ( x ) ) { if ( x == Double . POSITIVE_INFINITY ) { if ( leadingSign ) ca6 = "+Inf" . toCharArray ( ) ; else if ( leadingSpace ) ca6 = " Inf" . toCharArray ( ) ; else ca6 = "Inf" . toCharArray ( ) ; } else ca6 = "-Inf" . toCharArray ( ) ; noDigits = true ; } else if ( Double . isNaN ( x ) ) { if ( leadingSign ) ca6 = "+NaN" . toCharArray ( ) ; else if ( leadingSpace ) ca6 = " NaN" . toCharArray ( ) ; else ca6 = "NaN" . toCharArray ( ) ; noDigits = true ; } else ca6 = fFormatDigits ( x ) ; ca7 = applyFloatPadding ( ca6 , false ) ; return new String ( ca7 ) ; }

Una rutina intermedia en la forma de crear una cadena de formato F.El método decide si el valor doble de entrada es un infinito, no-a-número, o un doble finito y formatea cada tipo de entrada adecuadamente.


public static void o  ( Z1 z ) { o ( z , Parameters . OutputFieldWidth , Parameters . OutputFracPlaces ) ; }

Imprime un Z1 en formato predeterminado.


private void openCounterDataInputStream  ( ) throws DataFallbackException  { if ( dInput == null ) { if ( LOG . isDebugEnabled ( ) ) LOG . debug ( "openDataInputStream() ; Opening the reader for the " + counterFile . getName ( ) + " file" ) ; try { dInput = new BufferedReader ( new FileReader ( counterFile ) ) ; } catch ( IOException e ) { throw new DataFallbackException ( e . getMessage ( ) ) ; } } }

Crea un flujo para leer desde el archivo contador.


public static TypeRef of  ( Type primitiveType ) { Preconditions . checkArgument ( primitiveType != Type . TYPE_MESSAGE && primitiveType != Type . TYPE_ENUM ) ; return interner . intern ( new TypeRef ( primitiveType , Cardinality . OPTIONAL , null , null ) ) ; }

Crea una referencia a un tipo primitivo, con la cardinalidad predeterminada opcional.


private String genGetColumnMethod  ( Class < ? > fieldType ) { String typeName ; if ( fieldType . isPrimitive ( ) ) { typeName = BaseUtility . capitalize ( fieldType . getName ( ) ) ; } else { typeName = fieldType . getSimpleName ( ) ; } String methodName = "get" + typeName ; if ( "getBoolean" . equals ( methodName ) ) { methodName = "getInt" ; } else if ( "getChar" . equals ( methodName ) || "getCharacter" . equals ( methodName ) ) { methodName = "getString" ; } else if ( "getDate" . equals ( methodName ) ) { methodName = "getLong" ; } else if ( "getInteger" . equals ( methodName ) ) { methodName = "getInt" ; } else if ( "getbyte[]" . equalsIgnoreCase ( methodName ) ) { methodName = "getBlob" ; } return methodName ; }

Genera el método GetType para el cursor basado en el campo.Hay un par de condiciones inusuales.Si el tipo de campo es booleano, genera el método getint.Si el tipo de campo es char, genera método GETSTRAING.Si el tipo de campo es la fecha, genera método Getlong.Si el tipo de archivo es entero, genere método GEINT.Si el tipo de campo es bytes, genera el método GetBloB.


public static INDArray [ ] dup  ( INDArray [ ] history ) { INDArray [ ] dupHistory = new INDArray [ history . length ] ; for ( int i = 0 ; i < history . length ; i ++ ) { dupHistory [ i ] = history [ i ] . dup ( ) ; } return dupHistory ; }


protected boolean compare2  ( String first , String second , boolean startsWith ) { Index index1 = new Index ( first . length ( ) ) ; Index index2 = new Index ( second . length ( ) ) ; Sound sound1 ; Sound sound2 ; do { if ( index1 . hasEnded ( ) ) { if ( ! index2 . hasEnded ( ) ) { return false ; } return true ; } if ( index2 . hasEnded ( ) ) { return startsWith ; } sound1 = this . getNextSound ( first , index1 , startsWith ) ; sound2 = this . getNextSound ( second , index2 , startsWith ) ; } while ( sound1 == null || sound2 == null || sound1 . equals ( sound2 ) ) ; return false ; }

Compara las dos cadenas dadas y determina si suenan lo mismo.


@ Override public Filter createFilter  ( ) { return new ContainsExtended ( ) ; }


public static int exportReadName2Accession  ( MainViewer viewer , File file , char separator , ProgressListener progressListener ) throws IOException { int totalLines = 0 ; try { final MultiTaggedAccessions multiTaggedAccessions = new MultiTaggedAccessions ( true , "gb|" , "ref|" ) ; try ( BufferedWriter w = new BufferedWriter ( new FileWriter ( file ) ) ) { final Document doc = viewer . getDir ( ) . getDocument ( ) ; final IConnector connector = doc . getConnector ( ) ; final IClassificationBlock classificationBlock = connector . getClassificationBlock ( ClassificationType . Taxonomy . toString ( ) ) ; final java . util . Collection < Integer > taxonIds = viewer . getSelectedIds ( ) ; progressListener . setSubtask ( "Read ids to Accession ids" ) ; progressListener . setMaximum ( taxonIds . size ( ) ) ; progressListener . setProgress ( 0 ) ; for ( int taxonId : taxonIds ) { Set < Integer > allBelow ; Node v = viewer . getTaxId2Node ( taxonId ) ; if ( v . getOutDegree ( ) == 0 ) allBelow = TaxonomyData . getTree ( ) . getAllDescendants ( taxonId ) ; else { allBelow = new HashSet < > ( ) ; allBelow . add ( taxonId ) ; } for ( int id : allBelow ) { if ( classificationBlock . getSum ( id ) > 0 ) { try ( IReadBlockIterator it = connector . getReadsIterator ( ClassificationType . Taxonomy . toString ( ) , id , doc . getMinScore ( ) , doc . getMaxExpected ( ) , true , true ) ) { while ( it . hasNext ( ) ) { IReadBlock readBlock = it . next ( ) ; w . write ( readBlock . getReadName ( ) + separator ) ; for ( int i = 0 ; i < readBlock . getNumberOfAvailableMatchBlocks ( ) ; i ++ ) { IMatchBlock matchBlock = readBlock . getMatchBlock ( i ) ; if ( matchBlock . getBitScore ( ) >= doc . getMinScore ( ) && matchBlock . getExpected ( ) <= doc . getMaxExpected ( ) && matchBlock . getPercentIdentity ( ) >= doc . getMinPercentIdentity ( ) ) { final String accessionId = multiTaggedAccessions . getFirst ( matchBlock . getTextFirstWord ( ) ) ; if ( accessionId != null && accessionId . length ( ) > 0 ) { w . write ( " " + accessionId ) ; } } } w . write ( "\n" ) ; totalLines ++ ; } } progressListener . checkForCancel ( ) ; } } progressListener . incrementProgress ( ) ; } } } catch ( CanceledException ex ) { System . err . println ( "USER CANCELED" ) ; } return totalLines ; }


@ Override public Filter createFilter  ( List < Expression > parameterList ) { BeforeImpl filter = null ; if ( ( parameterList == null ) || ( parameterList . size ( ) != 2 ) ) { filter = new BeforeExtended ( ) ; } else { filter = new BeforeExtended ( parameterList . get ( 0 ) , parameterList . get ( 1 ) ) ; } return filter ; }


public boolean isIgnore  ( ) { return ignore ; }


@ Override public void startEffect  ( Effect effect ) { Creature effected = effect . getEffected ( ) ; if ( effected instanceof Player ) { effected . setTarget ( null ) ; PacketSendUtility . sendPacket ( ( Player ) effected , new SM_TARGET_SELECTED ( null ) ) ; PacketSendUtility . broadcastPacket ( effected , new SM_TARGET_UPDATE ( ( Player ) effected ) ) ; } }

Para la habilidad Shimmerbomb - 3236, 3237, 3238, si el efectuado es el objetivo del enemista, debe ser deseleccionado, también algunas otras habilidades de burla hacen lo mismo, pero cambia el objetivo al efector.


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

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


public void addTypeParameter  ( TypeVariable node ) { List < TypeVariable > list = ( parent == null || state == null ) ? getTypeParameterListNoTransform ( ) : getTypeParameterList ( ) ; list . addChild ( node ) ; }

Anexar un elemento a la lista Typepepameter.


public DefaultRetryPolicy ( ) { this  ( DEFAULT_TIMEOUT_MS , DEFAULT_MAX_RETRIES , DEFAULT_BACKOFF_MULT ) ; }

Construye una nueva política de reintento utilizando los tiempos de espera predeterminados.


public Object cheese  ( String body , @ Header ( "name" ) String name ) { return "Hello " + name + ". I got payload `" + body + "` and I am on host: " + System . getenv ( "HOSTNAME" ) ; }


@ Override public boolean equals  ( Object o ) { return o == this ; }


public static void toggleKeyboradState  ( Context context , EditText edit ) { edit . setFocusable ( true ) ; edit . setFocusableInTouchMode ( true ) ; edit . requestFocus ( ) ; InputMethodManager inputManager = ( InputMethodManager ) context . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; inputManager . toggleSoftInput ( InputMethodManager . SHOW_FORCED , 0 ) ; }


@ Override public boolean equals  ( Object obj ) { if ( ! ( obj instanceof ProxyComparator ) ) { return false ; } IJSpace objProxy = ( ( ProxyComparator ) obj ) . getProxy ( ) ; IJSpace thisProxy = getProxy ( ) ; if ( thisProxy == null || objProxy == null ) { return false ; } if ( ( ( ISpaceProxy ) objProxy ) . isClustered ( ) ) { return ( thisProxy == objProxy ) ; } return thisProxy . equals ( objProxy ) ; }

Anulaciones iguales () Método de objeto.


public Set < String > toFilenameSet  ( int iSubset ) { HashSet s = new HashSet ( ) ; if ( ( iSubset & FROM_TRAINING_SET ) > 0 ) for ( Object elem : getTrainingSet ( ) ) { CategorizedFileEntry cfeCur = ( CategorizedFileEntry ) elem ; s . add ( cfeCur . getFileName ( ) ) ; } if ( ( iSubset & FROM_TEST_SET ) > 0 ) for ( Object elem : getTestSet ( ) ) { CategorizedFileEntry cfeCur = ( CategorizedFileEntry ) elem ; s . add ( cfeCur . getFileName ( ) ) ; } return s ; }

Obtenga una lista de cadenas de todos los nombres de archivos en el conjunto o sus subconjuntos de capacitación / prueba.


public Builder maxZoom  ( Number maxZoom ) { this . maxZoom = maxZoom ; return this ; }

El máximo zoom posible para usar.</BR> Predeterminado NULL


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

Crea una nueva instancia de la clase ZwaveclockCommandClassClass.


public void print  ( ) { int i ; System . out . println ( "group count: " + groups . length + ", distinct server count: " + servers . length + ", keep_alive=" + this . keep_alive ) ; for ( i = 0 ; i < servers . length ; i ++ ) { System . out . println ( "server" + ( i + 1 ) + ". " + servers [ i ] . address . getAddress ( ) . getHostAddress ( ) + ":" + servers [ i ] . address . getPort ( ) ) ; } for ( i = 0 ; i < groups . length ; i ++ ) { System . out . println ( "group " + i + " server count: " + groups [ i ] . length ) ; for ( int k = 0 ; k < groups [ i ] . length ; k ++ ) { System . out . println ( "server" + ( k + 1 ) + ". " + groups [ i ] [ k ] . address . getAddress ( ) . getHostAddress ( ) + ":" + groups [ i ] [ k ] . address . getPort ( ) ) ; } } }

Información de grupo de impresión (para depuración)


public int addItem  ( int index , ShoppingCartItem item ) throws CartItemModifyException { if ( isReadOnlyCart ( ) ) { throw new CartItemModifyException ( "Cart items cannot be changed" ) ; } if ( ! cartLines . contains ( item ) ) { GenericValue product = item . getProduct ( ) ; if ( product != null && isSalesOrder ( ) ) { GenericValue billingAddress = this . getBillingAddress ( ) ; if ( billingAddress != null ) { if ( ! ProductWorker . isBillableToAddress ( product , billingAddress ) ) { throw new CartItemModifyException ( "The billing address is not compatible with ProductGeos rules of this product." ) ; } } } cartLines . add ( index , item ) ; return index ; } else { return this . getItemIndex ( item ) ; } }

Agregue un artículo al carrito de compras.


public void addTypeDecl  ( TypeDecl node ) { List < TypeDecl > list = ( parent == null || state == null ) ? getTypeDeclListNoTransform ( ) : getTypeDeclList ( ) ; list . addChild ( node ) ; }


public Builder addColumnTime  ( String columnName , DateTimeZone timeZone , Long minValidValue , Long maxValidValue ) { addColumn ( new TimeMetaData ( columnName , timeZone , minValidValue , maxValidValue ) ) ; return this ; }

Agregue una columna de tiempo con las restricciones especificadas <B> NOTA </ B>: las columnas de tiempo están representadas por valores largos (época milisegundos).Para los valores de tiempo en formatos legibles humanos, use columnas de cadena + StringTotimeTransform


public static Flowable < Integer > characters  ( CharSequence string ) { return RxJavaPlugins . onAssembly ( new FlowableCharSequence ( string ) ) ; }

Señala a cada carácter de la cardada de cadena dada como enteros.


public boolean isCollapsed  ( ) { return expandableSelectorAnimator . isCollapsed ( ) ; }

Devuelve VERDADERO si la vista se derrumba y falsa si se expande la vista.


public InputSource resolveEntity  ( String publicId , String systemId ) throws SAXException , IOException { hasDTD = false ; String dtd = UtilProperties . getSplitPropertyValue ( UtilURL . fromResource ( "localdtds.properties" ) , publicId ) ; if ( UtilValidate . isNotEmpty ( dtd ) ) { if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "[UtilXml.LocalResolver.resolveEntity] resolving DTD with publicId [" + publicId + "], systemId [" + systemId + "] and the dtd file is [" + dtd + "]" , module ) ; try { URL dtdURL = UtilURL . fromResource ( dtd ) ; if ( dtdURL == null ) { throw new GeneralException ( "Local DTD not found - " + dtd ) ; } InputStream dtdStream = dtdURL . openStream ( ) ; InputSource inputSource = new InputSource ( dtdStream ) ; inputSource . setPublicId ( publicId ) ; hasDTD = true ; if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "[UtilXml.LocalResolver.resolveEntity] got LOCAL DTD input source with publicId [" + publicId + "] and the dtd file is [" + dtd + "]" , module ) ; return inputSource ; } catch ( Exception e ) { Debug . logWarning ( e , module ) ; } } else { int lastSlash = systemId . lastIndexOf ( "/" ) ; String filename = null ; if ( lastSlash == - 1 ) { filename = systemId ; } else { filename = systemId . substring ( lastSlash + 1 ) ; } URL resourceUrl = UtilURL . fromResource ( filename ) ; if ( resourceUrl != null ) { InputStream resStream = resourceUrl . openStream ( ) ; InputSource inputSource = new InputSource ( resStream ) ; if ( UtilValidate . isNotEmpty ( publicId ) ) { inputSource . setPublicId ( publicId ) ; } hasDTD = true ; if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "[UtilXml.LocalResolver.resolveEntity] got LOCAL DTD/Schema input source with publicId [" + publicId + "] and the file/resource is [" + filename + "]" , module ) ; return inputSource ; } else { Debug . logWarning ( "[UtilXml.LocalResolver.resolveEntity] could not find LOCAL DTD/Schema with publicId [" + publicId + "] and the file/resource is [" + filename + "]" , module ) ; return null ; } } return defaultResolver . resolveEntity ( publicId , systemId ) ; }

Devuelve DTD PURSSOURCE.Si se encontró DTD en el mapa de DTD y se creó que la bandera HASDTD se creó en True.


private Result [ ] compareMedianToPercentilslimits  ( double [ ] median , int [ ] [ ] p5_95 ) throws CanceledException { assert ( median . length == p5_95 . length ) ; int n = median . length ; Result [ ] result = new Result [ n ] ; for ( int j = 0 ; j < n ; j ++ ) { result [ j ] = new Result ( ) ; } progressListener . setSubtask ( "Comparing medians to percentile limits" ) ; progressListener . setMaximum ( n ) ; progressListener . setProgress ( 0 ) ; for ( int i = 0 ; i < n ; i ++ ) { int p05 = p5_95 [ i ] [ 0 ] ; int p95 = p5_95 [ i ] [ 1 ] ; int p50 = p5_95 [ i ] [ 2 ] ; int lengthOfInterval = p95 - p05 ; double scale ; if ( lengthOfInterval == 0 ) { scale = median [ i ] - p50 ; result [ i ] . setGenNum ( i + 1 ) ; result [ i ] . setScale ( scale ) ; result [ i ] . setRemark ( "Can't compare (zero in both samples)" ) ; } else { scale = ( median [ i ] - ( double ) ( p50 ) ) / ( double ) ( p95 - p05 ) ; if ( optionWarningOnBoundary ) { if ( Math . abs ( scale ) < 0.90 ) { result [ i ] . setGenNum ( i + 1 ) ; result [ i ] . setScale ( scale ) ; result [ i ] . setRemark ( "Similar" ) ; } else if ( Math . abs ( scale ) > 1.10 ) { result [ i ] . setGenNum ( i + 1 ) ; result [ i ] . setScale ( scale ) ; result [ i ] . setRemark ( "Not similar" ) ; } else { result [ i ] . setGenNum ( i + 1 ) ; result [ i ] . setScale ( scale ) ; result [ i ] . setRemark ( "Can't be classified" ) ; } } else { if ( Math . abs ( scale ) < 1 ) { result [ i ] . setGenNum ( i + 1 ) ; result [ i ] . setScale ( scale ) ; result [ i ] . setRemark ( "Similar" ) ; } else { result [ i ] . setGenNum ( i + 1 ) ; result [ i ] . setScale ( scale ) ; result [ i ] . setRemark ( "Not similar" ) ; } } } progressListener . setProgress ( i ) ; } return result ; }

Compara los valores medianos con los intervalos P5_95.


private static void paintConstraint  ( NlGraphics graphics , ConstraintType type , NlComponent sourceNode , Rectangle sourceBounds , NlComponent targetNode , Rectangle targetBounds , @ Nullable Set < DependencyGraph . Constraint > allConstraints , boolean highlightTargetEdge , TextDirection textDirection ) { SegmentType sourceSegmentTypeX = type . sourceSegmentTypeX ; SegmentType sourceSegmentTypeY = type . sourceSegmentTypeY ; SegmentType targetSegmentTypeX = type . targetSegmentTypeX ; SegmentType targetSegmentTypeY = type . targetSegmentTypeY ; if ( sourceSegmentTypeX == SegmentType . CENTER_VERTICAL && targetSegmentTypeX == SegmentType . CENTER_VERTICAL ) { paintHorizontalCenterConstraint ( graphics , sourceBounds , targetBounds ) ; return ; } if ( sourceSegmentTypeY == SegmentType . CENTER_HORIZONTAL && targetSegmentTypeY == SegmentType . CENTER_HORIZONTAL ) { paintVerticalCenterConstraint ( graphics , sourceBounds , targetBounds ) ; return ; } if ( allConstraints != null && ( type == ConstraintType . LAYOUT_ABOVE || type == ConstraintType . LAYOUT_BELOW || type == ConstraintType . LAYOUT_LEFT_OF || type == ConstraintType . LAYOUT_RIGHT_OF ) ) { if ( paintCornerConstraint ( graphics , type , sourceNode , sourceBounds , targetNode , targetBounds , allConstraints , textDirection ) ) { return ; } } if ( sourceSegmentTypeX == SegmentType . UNKNOWN ) { paintVerticalConstraint ( graphics , type , sourceNode , sourceBounds , targetNode , targetBounds , highlightTargetEdge ) ; return ; } if ( sourceSegmentTypeY == SegmentType . UNKNOWN ) { paintHorizontalConstraint ( graphics , type , sourceNode , sourceBounds , targetNode , targetBounds , highlightTargetEdge , textDirection ) ; return ; } assert false ; }

Pinta una restricción del tipo dado desde el nodo de origen dado, al nodo de destino dado, con los límites especificados.


public void requestIsFailedNode  ( int nodeId ) { enqueue ( new IsFailedNodeMessageClass ( ) . doRequest ( nodeId ) ) ; }

Solicite si el nodo está marcado actualmente como el controlador falló.


private float crossCheckVertical  ( int startI , int centerJ , int maxCount , int originalStateCountTotal ) { BitMatrix image = this . image ; int maxI = image . getHeight ( ) ; int [ ] stateCount = crossCheckStateCount ; stateCount [ 0 ] = 0 ; stateCount [ 1 ] = 0 ; stateCount [ 2 ] = 0 ; int i = startI ; while ( i >= 0 && image . get ( centerJ , i ) && stateCount [ 1 ] <= maxCount ) { stateCount [ 1 ] ++ ; i -- ; } if ( i < 0 || stateCount [ 1 ] > maxCount ) { return Float . NaN ; } while ( i >= 0 && ! image . get ( centerJ , i ) && stateCount [ 0 ] <= maxCount ) { stateCount [ 0 ] ++ ; i -- ; } if ( stateCount [ 0 ] > maxCount ) { return Float . NaN ; } i = startI + 1 ; while ( i < maxI && image . get ( centerJ , i ) && stateCount [ 1 ] <= maxCount ) { stateCount [ 1 ] ++ ; i ++ ; } if ( i == maxI || stateCount [ 1 ] > maxCount ) { return Float . NaN ; } while ( i < maxI && ! image . get ( centerJ , i ) && stateCount [ 2 ] <= maxCount ) { stateCount [ 2 ] ++ ; i ++ ; } if ( stateCount [ 2 ] > maxCount ) { return Float . NaN ; } int stateCountTotal = stateCount [ 0 ] + stateCount [ 1 ] + stateCount [ 2 ] ; if ( 5 * Math . abs ( stateCountTotal - originalStateCountTotal ) >= 2 * originalStateCountTotal ) { return Float . NaN ; } return foundPatternCross ( stateCount ) ? centerFromEnd ( stateCount , i ) : Float . NaN ; }

Después de una exploración horizontal, encuentra un patrón de alineación potencial, este método "comprueba cruzando" escaneando verticalmente a través del centro del posible patrón de alineación para ver si se detecta la misma proporción.


public TimedLaunchConstrainer ( Duration minimumDelay ) { this . minDelay = minimumDelay ; this . lastPermanentRecoveryLaunchMs = new AtomicLong ( 0 ) ; }

Cree un nuevo restricionador con el retardo mínimo requerido dado entre las operaciones de recuperación permanentes (destructivas).


public PhotosObject ( Activity a , int photosType ) { this . adapter = new PhotoAdapter ( a , new ArrayList < Photo > ( ) ) ; adapter . setOwn ( true ) ; this . service = PhotoService . getService ( ) ; this . photosType = photosType ; this . photosOrder = PhotoApi . ORDER_BY_LATEST ; this . photosPage = 0 ; this . refreshing = false ; this . loading = false ; this . over = false ; }


public List < GenericValue > makeAllOrderContactMechs  ( ) { List < GenericValue > allOrderContactMechs = new LinkedList < GenericValue > ( ) ; Map < String , String > contactMechIds = this . getOrderContactMechIds ( ) ; if ( contactMechIds != null ) { for ( Map . Entry < String , String > entry : contactMechIds . entrySet ( ) ) { GenericValue orderContactMech = getDelegator ( ) . makeValue ( "OrderContactMech" ) ; orderContactMech . set ( "contactMechPurposeTypeId" , entry . getKey ( ) ) ; orderContactMech . set ( "contactMechId" , entry . getValue ( ) ) ; allOrderContactMechs . add ( orderContactMech ) ; } } return allOrderContactMechs ; }

Haga una lista de PedidosContactmechs de la compras de carrocería y los campos comerciales


protected void afterMove  ( ) { getContentManager ( ) . registerLanguage ( new SLCodec ( ) , FIPANames . ContentLanguage . FIPA_SL0 ) ; getContentManager ( ) . registerOntology ( MobilityOntology . getInstance ( ) ) ; }

Este método se ejecuta tan pronto como el agente llega al nuevo destino.Registra los requisitos previos de la comunicación.


public static void preload  ( Class < ? > clazz ) { getString ( clazz , null ) ; }


public final boolean addAll  ( final PointsToSetInternal other , final PointsToSetInternal exclude ) { if ( other instanceof HashPointsToSet && exclude == null && ( pag . getTypeManager ( ) . getFastHierarchy ( ) == null || type == null || type . equals ( other . type ) ) ) { return s . addAll ( ( ( HashPointsToSet ) other ) . s ) ; } else { return super . addAll ( other , exclude ) ; } }

Agrega contenidos de otro en este conjunto, devuelve verdadero si este conjunto cambió.


private Object handleRuleWithInvalidTags  ( final Map < Long , Object > pInputParams ) throws RuleEvaluationException { final Object result = tryToIgnoreInvalidTags ( pInputParams ) ; if ( isResultInvalid ( result ) ) { throw new RuleEvaluationException ( "Cannot evaluate rule: Invalid tags found!" ) ; } return result ; }

RuleExpressiones que contienen etiquetas no válidas usan un analizador diferente para la evaluación.


public SoftReferenceSymbolTableConfiguration ( SymbolTable symbolTable , XMLGrammarPool grammarPool , XMLComponentManager parentSettings ) { super ( symbolTable , grammarPool , parentSettings ) ; }

Construye una configuración de analizador utilizando la tabla de símbolos especificados, la agrupación gramática y la configuración de los padres.<p />


@ Override public void close  ( ) { try { if ( connection != null ) { connection . close ( ) ; } } catch ( SQLException e ) { e . printStackTrace ( ) ; } }


public boolean containsColumn  ( String columnName ) { for ( int i = 0 ; i < columnModels . size ( ) ; i ++ ) { ColumnModel columnModel = columnModels . get ( i ) ; if ( columnName . equalsIgnoreCase ( columnModel . getColumnName ( ) ) ) { return true ; } } return false ; }

Juzgar el modelo de mesa tiene una columna de este tipo o no.


@ Provides @ Singleton @ CassandraClusters Collection < String > provideCassandraClusterNames  ( BlobStoreConfiguration configuration ) { Set < String > clusters = Sets . newLinkedHashSet ( ) ; for ( CassandraConfiguration config : configuration . getCassandraClusters ( ) . values ( ) ) { clusters . add ( config . getCluster ( ) ) ; } return clusters ; }


public boolean isInCache  ( String imageLocation ) { return imageCache . containsKey ( imageLocation ) ; }

Indica si la ubicación de la cadena dada corresponde a una imagen que se almacena actualmente en la memoria caché de esta imagen.


public void close  ( ) { if ( rp != null ) rp . close ( ) ; if ( fhp != null ) closeHeader ( ) ; }


public List < Constant > vals  ( ) { return vals ; }

Devuelve una lista de valores para los campos especificados.Hay una correspondencia única entre esta lista de valores y la lista de campos.


@ Override public Result decode  ( BinaryBitmap image ) throws NotFoundException , ChecksumException , FormatException { return decode ( image , null ) ; }

Localiza y decodifica un código de matriz de datos en una imagen.


public NewsfeedSearchQuery ( VkApiClient client , UserActor actor ) { super ( client , "newsfeed.search" , SearchResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


public RegistrarPermission ( String name ) { super ( name ) ; }

Crea una instancia con el nombre de destino especificado.


public static ProbeItemDescriptor discreteBarItem  ( String name , String description , ItemValueFormatter formatter , double dataFactor , long minValue , long maxValue , boolean outlined , boolean filled , int width , boolean fixedWidth ) { if ( ! outlined && ! filled ) throw new IllegalArgumentException ( "Either outlined or filled must be set" ) ; return discreteItem ( name , description , formatter , dataFactor , minValue , maxValue , DEFAULT_LINE_WIDTH , outlined ? DEFAULT_COLOR : null , filled ? DEFAULT_COLOR : null , width , fixedWidth , false , ! filled ) ; }

Crea el descriptor para un elemento discreto representado por barras verticales, con datos de datos personalizados.


public ExchangeItem ( int itemObjId , long itemCount , Item item ) { this . itemObjId = itemObjId ; this . itemCount = itemCount ; this . item = item ; this . itemDesc = item . getItemTemplate ( ) . getNameId ( ) ; }

Utilizado cuando el elemento de intercambio! = Artículo original


private void ensureDependenciesResolved  ( ) { getDelegate ( loader ) ; }

Asegura que las clases dependan de este proveedor de políticas se resuelvan.Esto es para evitar la resolución perezosa de dichas clases durante el funcionamiento del proveedor, lo que puede resultar en un punto muerto descrito por el error 4911907.


private Set < Double > extractValues  ( Matcher query , String havingQuery ) throws BadHavingException { Set < String > stringValues = createValueSet ( query , havingQuery ) ; Function < String , Double > toNumber = null ; try { return stringValues . stream ( ) . map ( toNumber ) . collect ( Collectors . toCollection ( null ) ) ; } catch ( NumberFormatException e ) { LOG . debug ( HAVING_NON_NUMERIC . format ( e . getMessage ( ) ) ) ; throw new BadHavingException ( HAVING_NON_NUMERIC . format ( e . getMessage ( ) ) ) ; } }

Extrae los valores que se utilizarán en la consulta de la consulta.


public StringMatcher . Position find  ( String text , int start , int end ) { if ( fPattern == null || text == null ) throw new IllegalArgumentException ( ) ; int tlen = text . length ( ) ; if ( start < 0 ) start = 0 ; if ( end > tlen ) end = tlen ; if ( end < 0 || start >= end ) return null ; if ( fLength == 0 ) return new Position ( start , start ) ; if ( fIgnoreWildCards ) { int x = posIn ( text , start , end ) ; if ( x < 0 ) return null ; return new Position ( x , x + fLength ) ; } int segCount = fSegments . length ; if ( segCount == 0 ) return new Position ( start , end ) ; int curPos = start ; int matchStart = - 1 ; int i ; for ( i = 0 ; i < segCount && curPos < end ; ++ i ) { String current = fSegments [ i ] ; int nextMatch = regExpPosIn ( text , curPos , end , current ) ; if ( nextMatch < 0 ) return null ; if ( i == 0 ) matchStart = nextMatch ; curPos = nextMatch + current . length ( ) ; } if ( i < segCount ) return null ; return new Position ( matchStart , curPos ) ; }

Encuentre la primera aparición del patrón entre <código> Inicio </ código) (incluido) y <Code> Fin </ Code> (Exclusivo).


private String cannonicalPage  ( String url ) { String cannonical = "" ; if ( url . startsWith ( HTTP_PROTOCOL ) ) { url = url . substring ( HTTP_PROTOCOL . length ( ) ) ; } else if ( url . startsWith ( HTTPS_PROTOCOL ) ) { url = url . substring ( HTTPS_PROTOCOL . length ( ) ) ; } int urlLength = url . length ( ) ; for ( int i = 0 ; i < urlLength ; i ++ ) { if ( url . charAt ( i ) != '/' ) cannonical += url . charAt ( i ) ; else break ; } return cannonical ; }


@ Override public void touchNavigatorIcon  ( Activity a ) { DrawerLayout drawer = ( DrawerLayout ) a . findViewById ( R . id . activity_main_drawerLayout ) ; drawer . openDrawer ( GravityCompat . START ) ; }


static protected boolean hasVowel  ( String [ ] phones , int index ) { for ( int i = index ; i < phones . length ; i ++ ) { if ( isVowel ( phones [ i ] ) ) { return true ; } } return false ; }

Determina si hay una vocal en el resto de la matriz, comenzando en el índice dado.


private void recycleView  ( View view , int index ) { int count = wheel . getViewAdapter ( ) . getItemsCount ( ) ; if ( ( index < 0 || index >= count ) && ! wheel . isCyclic ( ) ) { emptyItems = addView ( view , emptyItems ) ; } else { while ( index < 0 ) { index = count + index ; } index %= count ; items = addView ( view , items ) ; } }

Agrega vista al caché.Determina el tipo de vista (vista del elemento o vacío) por índice.


public void addSoundEvent  ( State event , int resId ) { mSoundMap . put ( event , resId ) ; }

Establezca los sonidos que se reproducen cuando ocurre un evento de tracción.Usted especifica qué sonido se reproduce para qué eventos llamando a este método varias veces para cada evento.<p /> Si ya ha establecido un sonido para un evento determinado, y agregue otro sonido para ese evento, solo se reproducirá el nuevo sonido.


public void print  ( int w , int d ) { print ( new PrintWriter ( System . out , true ) , w , d ) ; }

Imprime la matriz a STDOUT.Línea los elementos en columnas con un formato de estilo 'FW.D' similar a FORTRAN.


public MultiwayPoolBuilder < K , R > concurrencyLevel  ( int concurrencyLevel ) { checkState ( this . concurrencyLevel == UNSET_INT , "concurrency level was already set to %s" , this . concurrencyLevel ) ; checkArgument ( concurrencyLevel > 0 ) ; this . concurrencyLevel = concurrencyLevel ; return this ; }

Guías la concurrencia permitida entre las operaciones de actualización.Se utiliza como un indicio para el tamaño interno.<p> por defecto a 4.


public boolean contains  ( T obj ) { lock . lock ( ) ; try { if ( _objectsMap != null ) { return _objectsMap . containsKey ( obj ) ; } return contains_impl ( obj ) ; } finally { lock . unlock ( ) ; } }


final public boolean has  ( String name ) { return context != null && context . containsKey ( name ) ; }

Cheques Si tiene el nombre en el modelo para la respuesta.


public static SM_SYSTEM_MESSAGE STR_WATINGTIME  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300740 , value0 ) ; }

Tiempo de espera de la resurrección:% 0 seg.


public static QueryInfo deserializeInfo  ( JsonObject queryInfoJson ) throws JsonParseException { long infoVersion = queryInfoJson . get ( "queryInfoVersion" ) . getAsLong ( ) ; if ( infoVersion != QueryInfo . queryInfoSerialVersionUID ) { throw new JsonParseException ( "Attempt to deserialize unsupported query info version. Supported: " + QueryInfo . queryInfoSerialVersionUID + "; Received: " + infoVersion ) ; } QuerySchema querySchema ; if ( queryInfoJson . get ( "qSchema" ) . isJsonNull ( ) ) { querySchema = null ; } else { querySchema = deserializeSchema ( queryInfoJson . get ( "qSchema" ) . getAsJsonObject ( ) ) ; } QueryInfo info = new QueryInfo ( UUID . fromString ( queryInfoJson . get ( "identifier" ) . getAsString ( ) ) , queryInfoJson . get ( "numSelectors" ) . getAsInt ( ) , queryInfoJson . get ( "hashBitSize" ) . getAsInt ( ) , queryInfoJson . get ( "hashKey" ) . getAsString ( ) , queryInfoJson . get ( "dataPartitionBitSize" ) . getAsInt ( ) , queryInfoJson . get ( "queryType" ) . getAsString ( ) , queryInfoJson . get ( "useExpLookupTable" ) . getAsBoolean ( ) , queryInfoJson . get ( "embedSelector" ) . getAsBoolean ( ) , queryInfoJson . get ( "useHDFSExpLookupTable" ) . getAsBoolean ( ) , queryInfoJson . get ( "numBitsPerDataElement" ) . getAsInt ( ) , querySchema ) ; return info ; }


@ Override public void validate  ( String content , ValidationContext context ) throws InvalidDatatypeValueException { if ( context . useNamespaces ( ) ) { if ( ! XMLChar . isValidNCName ( content ) ) { throw new InvalidDatatypeValueException ( "IDREFInvalidWithNamespaces" , new Object [ ] { content } ) ; } } else { if ( ! XMLChar . isValidName ( content ) ) { throw new InvalidDatatypeValueException ( "IDREFInvalid" , new Object [ ] { content } ) ; } } context . addIdRef ( content ) ; }

Comprueba que la cadena "Contenido" es válida Valor IDREF.Si es válido, se lanza una excepción de validación de tipos de datos.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_ConvertHeal_INTERVAL_ME_TO_B  ( int num0 , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200497 , num0 , skilltarget , skillname ) ; }

Restauró% Num0 de HP [% SkillTarget] usando [% SkillName].


public PhotosReportQuery ( VkApiClient client , UserActor actor , int ownerId , int photoId ) { super ( client , "photos.report" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; ownerId ( ownerId ) ; photoId ( photoId ) ; }


public void translate  ( final float [ ] transformedPts , Matrix outputMatrix ) { outputMatrix . reset ( ) ; outputMatrix . set ( mMatrixTouch ) ; final float x = transformedPts [ 0 ] - offsetLeft ( ) ; final float y = transformedPts [ 1 ] - offsetTop ( ) ; outputMatrix . postTranslate ( - x , - y ) ; }

Post-traduce a los puntos especificados.La matriz de salida permite el almacenamiento en caché.


private boolean handleSingleTapUp  ( MotionEvent e ) { setEventTarget ( mSearchPanel . isCoordinateInsideContent ( e . getX ( ) * mPxToDp , e . getY ( ) * mPxToDp ) ? EventTarget . SEARCH_CONTENT_VIEW : EventTarget . SEARCH_PANEL ) ; return false ; }

Maneja el evento del grifo, determinando el objetivo del evento.


public void startDocument  ( ) throws SAXException  { writeText4Links ( ) ; reset ( ) ; if ( ! ( "yes" . equals ( outputProperties . getProperty ( OMIT_XML_DECLARATION , "no" ) ) ) ) { write ( "<?xml" ) ; if ( version == null ) { write ( " version=\"1.0\"" ) ; } else { write ( " version=\"" ) ; write ( version ) ; write ( "\"" ) ; } if ( outputEncoding != null && outputEncoding != "" ) { write ( " encoding=\"" ) ; write ( outputEncoding ) ; write ( "\"" ) ; } if ( standalone == null ) { write ( " standalone=\"yes\"?>\n" ) ; } else { write ( " standalone=\"" ) ; write ( standalone ) ; write ( "\"" ) ; } } super . startDocument ( ) ; }

Escriba la Declaración XML al comienzo del documento.<P> Pase el evento en la cadena de filtro para su posterior procesamiento.


private void processDataTags  ( final Element equipmentUnit , final EquipmentConfiguration equipmentConfiguration ) { Element dataTagsBlock = ( Element ) equipmentUnit . getElementsByTagName ( DATA_TAGS_ELEMENT ) . item ( 0 ) ; NodeList dataTags = dataTagsBlock . getElementsByTagName ( DATA_TAG_ELEMENT ) ; log . debug ( "\t" + dataTags . getLength ( ) + " DataTags found for current equipment" ) ; SourceDataTag sourceDataTag = null ; for ( int i = 0 ; i < dataTags . getLength ( ) ; i ++ ) { sourceDataTag = SourceDataTag . fromConfigXML ( ( Element ) dataTags . item ( i ) ) ; log . debug ( "\tCreating SourceDataTag object for id " + sourceDataTag . getId ( ) + ".." ) ; if ( sourceDataTag . getAddress ( ) . getTimeDeadband ( ) > 0 ) { sourceDataTag . getAddress ( ) . setStaticTimedeadband ( true ) ; } if ( sourceDataTag . getId ( ) . longValue ( ) == equipmentConfiguration . getAliveTagId ( ) ) { if ( sourceDataTag . getAddress ( ) . getPriority ( ) != DataTagAddress . PRIORITY_HIGH ) { log . warn ( "\tPriority on equipment alive tag " + sourceDataTag . getId ( ) + " is wrongly configured! Adjusting priority to HIGH (7)" ) ; sourceDataTag . getAddress ( ) . setPriority ( DataTagAddress . PRIORITY_HIGH ) ; } if ( ! sourceDataTag . isControl ( ) ) { log . warn ( "\tEquipment alive tag " + sourceDataTag . getId ( ) + " is not configured as control tag! Please correct this in the configuration." ) ; } } equipmentConfiguration . getDataTags ( ) . put ( sourceDataTag . getId ( ) , sourceDataTag ) ; } }

Procesa todas las etiquetas de datos de este elemento DOM de configuración de equipos y los agrega al objeto de configuración del equipo.


public Stream < RangeWithCount > stream  ( ) { return buckets_ . stream ( ) . map ( null ) ; }

Devuelve un mapa de rango - & gt;Recuento de eventos.Los elementos de la corriente son una copia mutable de los datos internos.


protected void doIteration  ( final SimplexTableau tableau ) throws MathIllegalStateException { incrementIterationCount ( ) ; Integer pivotCol = getPivotColumn ( tableau ) ; Integer pivotRow = getPivotRow ( tableau , pivotCol ) ; if ( pivotRow == null ) { throw new MathIllegalStateException ( LocalizedOptimFormats . UNBOUNDED_SOLUTION ) ; } tableau . performRowOperations ( pivotCol , pivotRow ) ; }

Ejecuta una iteración del método simplex en el modelo dado.


public Object clone  ( ) { return new ParameterRef ( paramType , n ) ; }

Cree un nuevo objeto ParameterF con el mismo paramtipo y número.


private void fillBuffer  ( ) throws CharacterCodingException  { this . bbuf . compact ( ) ; CoderResult result = this . encoder . encode ( this . cbuf , this . bbuf , true ) ; if ( result . isError ( ) ) { result . throwException ( ) ; } this . bbuf . flip ( ) ; }

Llena el búfer de salida de byte del búfer de entrada de entrada.


@ Deprecated public EventSessionConfig ( Properties props ) { loadFromProps ( props ) ; }

Crea eventaessionconfig y comienza su configuración de las propiedades dadas.Use el nombre de las propiedades como teclas para las propiedades dadas.


public CmpExpr newCmpExpr  ( Value op1 , Value op2 ) { return new GCmpExpr ( op1 , op2 ) ; }

Construye un trozo de gramática CMPExpr (EXPR, EXPR).


void initFromCameraParameters  ( Camera camera ) { Camera . Parameters parameters = camera . getParameters ( ) ; previewFormat = parameters . getPreviewFormat ( ) ; previewFormatString = parameters . get ( "preview-format" ) ; Log . d ( TAG , "Default preview format: " + previewFormat + '/' + previewFormatString ) ; WindowManager manager = ( WindowManager ) context . getSystemService ( Context . WINDOW_SERVICE ) ; Display display = manager . getDefaultDisplay ( ) ; screenResolution = new Point ( display . getWidth ( ) , display . getHeight ( ) ) ; Log . d ( TAG , "Screen resolution: " + screenResolution ) ; Point screenResolutionForCamera = new Point ( ) ; screenResolutionForCamera . x = screenResolution . x ; screenResolutionForCamera . y = screenResolution . y ; if ( screenResolution . x < screenResolution . y ) { screenResolutionForCamera . x = screenResolution . y ; screenResolutionForCamera . y = screenResolution . x ; } Log . i ( "#########" , "screenX:" + screenResolutionForCamera . x + "   screenY:" + screenResolutionForCamera . y ) ; cameraResolution = getCameraResolution ( parameters , screenResolutionForCamera ) ; Log . d ( TAG , "Camera resolution: " + screenResolution ) ; }

Lee, una vez, valores de la cámara que necesitan la aplicación.


public boolean isSuccessCode  ( ) { int aux = code - 200 ; return aux >= 0 && aux < 100 ; }

Devuelve VERDADERO si el código de la respuesta está en el rango de códigos de éxito (2 **).


public void assignNullSerializer  ( JsonSerializer < Object > nullSer ) { if ( _nullSerializer != null && _nullSerializer != nullSer ) { throw new IllegalStateException ( "Can not override null serializer" ) ; } _nullSerializer = nullSer ; }

Método llamado para asignar el serializador de valor nulo para la propiedad


public Rotation revert  ( ) { return new Rotation ( - q0 , q1 , q2 , q3 , false ) ; }

Revertir una rotación.Construye una rotación que invierte el efecto de otra rotación.Esto significa que si R (U) = V, luego, R.Revald (V) = u.La instancia no se cambia.


public void copyFiles  ( Collection < OCFile > files , OCFile targetFolder ) { for ( OCFile file : files ) { Intent service = new Intent ( mFileActivity , OperationsService . class ) ; service . setAction ( OperationsService . ACTION_COPY_FILE ) ; service . putExtra ( OperationsService . EXTRA_NEW_PARENT_PATH , targetFolder . getRemotePath ( ) ) ; service . putExtra ( OperationsService . EXTRA_REMOTE_PATH , file . getRemotePath ( ) ) ; service . putExtra ( OperationsService . EXTRA_ACCOUNT , mFileActivity . getAccount ( ) ) ; mWaitingForOpId = mFileActivity . getOperationsServiceBinder ( ) . queueNewOperation ( service ) ; } mFileActivity . showLoadingDialog ( mFileActivity . getString ( R . string . wait_a_moment ) ) ; }

Iniciar operaciones para copiar uno o varios archivos


public RequestHandle head  ( String url , ResponseHandlerInterface responseHandler ) { return head ( null , url , null , responseHandler ) ; }

Realice una solicitud de cabeza HTTP, sin parámetros.


public static boolean isHttpStatusCode  ( Throwable throwable , int statusCode ) { return throwable instanceof HttpException && ( ( HttpException ) throwable ) . code ( ) == statusCode ; }

Devuelve VERDADERO si el lanzamiento es una instancia de retrofiterror con un código de estado HTTP es igual a uno dado.


public static long copyLarge  ( InputStream input , OutputStream output , byte [ ] buffer ) throws IOException { long count = 0 ; int n = 0 ; while ( EOF != ( n = input . read ( buffer ) ) ) { output . write ( buffer , 0 , n ) ; count += n ; } return count ; }

Copie bytes de un gran (más de 2 GB) <CÓDIGO> ENTRADA </ CÓDIGO> a un <código> SURODSTREAM </ CODE>.<P /> Este método utiliza el búfer proporcionado, por lo que no es necesario usar un <código> tamponputStream </ Code>.<p />


public static void copyProperties  ( Object from , Object to ) throws Exception { copyPropertiesExclude ( from , to , null ) ; }

Usando la reflexión para realizar el objeto para copiar.


protected int do_modify_file  ( String group_name , String appender_filename , long file_offset , long modify_size , UploadCallback callback ) throws IOException , MyException { byte [ ] header ; boolean bNewConnection ; Socket storageSocket ; byte [ ] hexLenBytes ; byte [ ] appenderFilenameBytes ; int offset ; long body_len ; if ( ( group_name == null || group_name . length ( ) == 0 ) || ( appender_filename == null || appender_filename . length ( ) == 0 ) ) { this . errno = ProtoCommon . ERR_NO_EINVAL ; return this . errno ; } bNewConnection = this . newUpdatableStorageConnection ( group_name , appender_filename ) ; try { storageSocket = this . storageServer . getSocket ( ) ; appenderFilenameBytes = appender_filename . getBytes ( ClientGlobal . g_charset ) ; body_len = 3 * ProtoCommon . FDFS_PROTO_PKG_LEN_SIZE + appenderFilenameBytes . length + modify_size ; header = ProtoCommon . packHeader ( ProtoCommon . STORAGE_PROTO_CMD_MODIFY_FILE , body_len , ( byte ) 0 ) ; byte [ ] wholePkg = new byte [ ( int ) ( header . length + body_len - modify_size ) ] ; System . arraycopy ( header , 0 , wholePkg , 0 , header . length ) ; offset = header . length ; hexLenBytes = ProtoCommon . long2buff ( appender_filename . length ( ) ) ; System . arraycopy ( hexLenBytes , 0 , wholePkg , offset , hexLenBytes . length ) ; offset += hexLenBytes . length ; hexLenBytes = ProtoCommon . long2buff ( file_offset ) ; System . arraycopy ( hexLenBytes , 0 , wholePkg , offset , hexLenBytes . length ) ; offset += hexLenBytes . length ; hexLenBytes = ProtoCommon . long2buff ( modify_size ) ; System . arraycopy ( hexLenBytes , 0 , wholePkg , offset , hexLenBytes . length ) ; offset += hexLenBytes . length ; OutputStream out = storageSocket . getOutputStream ( ) ; System . arraycopy ( appenderFilenameBytes , 0 , wholePkg , offset , appenderFilenameBytes . length ) ; offset += appenderFilenameBytes . length ; out . write ( wholePkg ) ; if ( ( this . errno = ( byte ) callback . send ( out ) ) != 0 ) { return this . errno ; } ProtoCommon . RecvPackageInfo pkgInfo = ProtoCommon . recvPackage ( storageSocket . getInputStream ( ) , ProtoCommon . STORAGE_PROTO_CMD_RESP , 0 ) ; this . errno = pkgInfo . errno ; if ( pkgInfo . errno != 0 ) { return this . errno ; } return 0 ; } catch ( IOException ex ) { if ( ! bNewConnection ) { try { this . storageServer . close ( ) ; } catch ( IOException ex1 ) { ex1 . printStackTrace ( ) ; } finally { this . storageServer = null ; } } throw ex ; } finally { if ( bNewConnection ) { try { this . storageServer . close ( ) ; } catch ( IOException ex1 ) { ex1 . printStackTrace ( ) ; } finally { this . storageServer = null ; } } } }

Modificar el archivo de apartado al servidor de almacenamiento


public JSONObject increment  ( String key ) throws JSONException  { Object value = this . opt ( key ) ; if ( value == null ) { this . put ( key , 1 ) ; } else if ( value instanceof Integer ) { this . put ( key , ( Integer ) value + 1 ) ; } else if ( value instanceof Long ) { this . put ( key , ( Long ) value + 1 ) ; } else if ( value instanceof Double ) { this . put ( key , ( Double ) value + 1 ) ; } else if ( value instanceof Float ) { this . put ( key , ( Float ) value + 1 ) ; } else { throw new JSONException ( "Unable to increment [" + quote ( key ) + "]." ) ; } return this ; }

Incrementa una propiedad de un jsonobject.Si no hay tal propiedad, cree uno con un valor de 1. Si hay una propiedad de este tipo, y si es un número entero, largo, doble o flotante, luego agregue uno a él.


public ExplainScan ( Scan s , Schema schema , String explain ) { this . result = "\n" + explain ; this . schema = schema ; s . beforeFirst ( ) ; while ( s . next ( ) ) numRecs ++ ; s . close ( ) ; this . result = result + "\nActual #recs: " + numRecs ; }

Crea una exploración de explicación que tiene la consulta subyacente especificada.


public static void reset  ( ) { fuelCaches = new HashMap < EntityPlayerMP , Integer > ( ) ; }

Restablecer cachés <br> Necesario para asegurarse de que el jugador comience con un alijo de combustible fresco.


private void beforeValue  ( ) throws JSONException  { if ( stack . isEmpty ( ) ) { return ; } Scope context = peek ( ) ; if ( context == Scope . EMPTY_ARRAY ) { replaceTop ( Scope . NONEMPTY_ARRAY ) ; newline ( ) ; } else if ( context == Scope . NONEMPTY_ARRAY ) { out . append ( ',' ) ; newline ( ) ; } else if ( context == Scope . DANGLING_KEY ) { out . append ( indent == null ? ":" : ": " ) ; replaceTop ( Scope . NONEMPTY_OBJECT ) ; } else if ( context != Scope . NULL ) { throw new JSONException ( "Nesting problem" ) ; } }

Inserta cualquier separador y espacio en blanco necesario antes de un valor literal, una matriz en línea o un objeto en línea.También ajusta la pila para esperar un soporte de cierre u otro elemento.


private static double cosQ  ( double xa , double xb ) { final double pi2a = 1.5707963267948966 ; final double pi2b = 6.123233995736766E-17 ; final double a = pi2a - xa ; double b = - ( a - pi2a + xa ) ; b += pi2b - xb ; return sinQ ( a , b ) ; }

Calcule coseno en el primer cuadrante al restar la entrada de PI / 2 y luego llamar a SINQ.Esto es más preciso, ya que los enfoques de entrada PI / 2.


public static String parseCharset  ( Map < String , String > headers ) { return parseCharset ( headers , HTTP . DEFAULT_CONTENT_CHARSET ) ; }

Devuelve el accidente especificado en el tipo de contenido de este encabezado, o el valor predeterminado HTTP (ISO-8859-1) si no se puede encontrar ninguno.


public NativeImageLoader ( int height , int width , int channels , boolean centerCropIfNeeded ) { this ( height , width , channels ) ; this . centerCropIfNeeded = centerCropIfNeeded ; }

Instanciar una imagen con la altura y el ancho dado.


public boolean isAbsoluteValueDeadband  ( final Number currentValue , final Number newValue , final float valueDeadband ) { this . equipmentLogger . trace ( "entering isAbsoluteValueDeadband().." ) ; boolean isAbsoluteValueDeadband = currentValue != null && newValue != null && Math . abs ( currentValue . doubleValue ( ) - newValue . doubleValue ( ) ) < valueDeadband ; this . equipmentLogger . trace ( "leaving isAbsoluteValueDeadband().. Result: " + isAbsoluteValueDeadband ) ; return isAbsoluteValueDeadband ; }

Devuelve VERDADERO si la diferencia de los números proporcionados es más pequeña que la banda muerta del valor.


public void or  ( Criteria criteria ) { oredCriteria . add ( criteria ) ; }

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


@ Override public void onClick  ( View v ) { LogUtil . e ( "position = " + position ) ; new BossZoomHelper ( ( Activity ) context , bossJumpView , 400 ) ; }

Llamado cuando se ha hecho clic en una vista.


public JSONObject put  ( String key , Object value ) throws JSONException { if ( key == null ) { throw new JSONException ( "Null key." ) ; } if ( value != null ) { testValidity ( value ) ; this . map . put ( key , value ) ; } else { remove ( key ) ; } return this ; }

Ponga un par de claves / valor en el JSONOBJECT.Si el valor es nulo, entonces la tecla se eliminará del JSONOBJECT si está presente.


public DocumentNGramDistroGraph [ ] intersectAndDeltaDistroGraph  ( DocumentNGramDistroGraph dgOtherGraph ) { DocumentNGramDistroGraph dgUnion = ( DocumentNGramDistroGraph ) clone ( ) ; dgUnion . mergeDistroGraph ( dgOtherGraph ) ; DocumentNGramDistroGraph [ ] res = new DocumentNGramDistroGraph [ 2 ] ; DocumentNGramDistroGraph dgIntersection = intersectDistroGraph ( dgOtherGraph ) ; res [ 0 ] = dgIntersection ; for ( int iCurLvl = MinSize ; iCurLvl <= MaxSize ; iCurLvl ++ ) { UniqueVertexGraph gUnion = dgUnion . getGraphLevelByNGramSize ( iCurLvl ) ; UniqueVertexGraph gIntersection = dgIntersection . getGraphLevelByNGramSize ( iCurLvl ) ; EdgeCachedLocator eclLocator = new EdgeCachedLocator ( 10 ) ; if ( gIntersection == null ) continue ; java . util . Iterator iIter = gIntersection . getEdgeSet ( ) . iterator ( ) ; while ( iIter . hasNext ( ) ) { WeightedEdge weCurItem = ( WeightedEdge ) iIter . next ( ) ; Edge eEdge = eclLocator . locateDirectedEdgeInGraph ( gUnion , weCurItem . getVertexA ( ) , weCurItem . getVertexB ( ) ) ; if ( eEdge != null ) try { gUnion . removeEdge ( eEdge ) ; dgUnion . getEdgesToDistros ( ) . remove ( eEdge ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } } } res [ 1 ] = dgUnion ; return res ; }

Devuelve tanto la intersección como la diferencia (inversa del gráfico de intersección) entre el gráfico actual y una gráfica dada.


public static Complex valueOf  ( double realPart , double imaginaryPart ) { if ( Double . isNaN ( realPart ) || Double . isNaN ( imaginaryPart ) ) { return NaN ; } return new Complex ( realPart , imaginaryPart ) ; }

Crea un número complejo dado las partes reales e imaginarias.


public void loadMeganSummaryFile  ( ) throws IOException  { BufferedReader reader = new BufferedReader ( new InputStreamReader ( Basic . getInputStreamPossiblyZIPorGZIP ( getMeganFile ( ) . getFileName ( ) ) ) ) ; getDataTable ( ) . read ( reader , false ) ; getSampleAttributeTable ( ) . read ( reader , getSampleNames ( ) , true ) ; reader . close ( ) ; String parameters = getDataTable ( ) . getParameters ( ) ; if ( parameters != null ) { parseParameterString ( parameters ) ; } getActiveViewers ( ) . clear ( ) ; getActiveViewers ( ) . addAll ( getDataTable ( ) . getClassification2Class2Counts ( ) . keySet ( ) ) ; loadColorTableFromDataTable ( ) ; }

Cargue el archivo de resumen del conjunto Megan


public static boolean createNewLockFile  ( String filePath , FileType fileType ) throws IOException { filePath = filePath . replace ( "\\" , "/" ) ; switch ( fileType ) { case HDFS : case VIEWFS : Path path = new Path ( filePath ) ; FileSystem fs = path . getFileSystem ( configuration ) ; if ( fs . createNewFile ( path ) ) { fs . deleteOnExit ( path ) ; return true ; } return false ; case LOCAL : default : File file = new File ( filePath ) ; return file . createNewFile ( ) ; } }

Para crear un nuevo archivo de bloqueo y, si se crea con éxito, entonces, en caso de apagado abrupto, se cerrará el flujo a ese archivo.


private void appendVal  ( Constant val ) { myPage . setVal ( currentPos , val ) ; currentPos += Page . size ( val ) ; }

Agrega el valor especificado a la página en la posición indicada por CurrentPOS.Luego incrementa los Currents Currents por el tamaño del valor.


public static double [ ] lpc2lsfInHz  ( double [ ] oneMinusA , int samplingRate ) { return lpc2lsfInHz ( oneMinusA , samplingRate , 4 ) ; }

Convierta los coeficientes de filtro a los coeficientes de LSP.


public void addLanguage  ( Language language ) { addLanguage ( language . getId ( ) ) ; }

Agrega un límite de idioma a la consulta.


public void useless_testMatricesValues2  ( ) { RealMatrix uRef = MatrixUtils . createRealMatrix ( new double [ ] [ ] { { 0.0 / 5.0 , 3.0 / 5.0 , 0.0 / 5.0 } , { - 4.0 / 5.0 , 0.0 / 5.0 , - 3.0 / 5.0 } , { 0.0 / 5.0 , 4.0 / 5.0 , 0.0 / 5.0 } , { - 3.0 / 5.0 , 0.0 / 5.0 , 4.0 / 5.0 } } ) ; RealMatrix sRef = MatrixUtils . createRealMatrix ( new double [ ] [ ] { { 4.0 , 0.0 , 0.0 } , { 0.0 , 3.0 , 0.0 } , { 0.0 , 0.0 , 2.0 } } ) ; RealMatrix vRef = MatrixUtils . createRealMatrix ( new double [ ] [ ] { { 80.0 / 125.0 , - 60.0 / 125.0 , 75.0 / 125.0 } , { 24.0 / 125.0 , 107.0 / 125.0 , 60.0 / 125.0 } , { - 93.0 / 125.0 , - 24.0 / 125.0 , 80.0 / 125.0 } } ) ; SingularValueDecomposition svd = new SingularValueDecomposition ( MatrixUtils . createRealMatrix ( testNonSquare ) ) ; RealMatrix u = svd . getU ( ) ; Assert . assertEquals ( 0 , u . subtract ( uRef ) . getNorm ( ) , normTolerance ) ; RealMatrix s = svd . getS ( ) ; Assert . assertEquals ( 0 , s . subtract ( sRef ) . getNorm ( ) , normTolerance ) ; RealMatrix v = svd . getV ( ) ; Assert . assertEquals ( 0 , v . subtract ( vRef ) . getNorm ( ) , normTolerance ) ; Assert . assertTrue ( u == svd . getU ( ) ) ; Assert . assertTrue ( s == svd . getS ( ) ) ; Assert . assertTrue ( v == svd . getV ( ) ) ; }


public Shape ellipse  ( double x , double y , double width , double height ) { m_ellipse . setFrame ( x , y , width , height ) ; return m_ellipse ; }

Devuelve una elipse de las dimensiones dadas.


@ Override public OrientedPoint copySelf  ( ) { return this ; }

Copia la instancia.<p> Dado que las instancias son inmutables, este método devuelve directamente la instancia. </ p>


public MineWindow ( ) { initialize  ( ) ; }


@ VisibleForTesting public ResultCard ( int expirationMonth , int expirationYear , String pan , String cvn ) { mExpirationMonth = expirationMonth ; mExpirationYear = expirationYear ; mPan = pan ; mCvn = cvn ; }


private boolean isAssetUpdateNeeded  ( Asset asset , String newAssetContent ) { boolean assetProcessingNeeded = false ; if ( ! asset . getContentMd5 ( ) . equals ( DigestUtils . md5Hex ( newAssetContent ) ) ) { logger . debug ( "Content has changed, processing needed" ) ; assetProcessingNeeded = true ; } else if ( asset . getLastSuccessfulAssetExtraction ( ) == null ) { logger . debug ( "No asset extraction, processing needed" ) ; assetProcessingNeeded = true ; } else if ( ! asset . getContentMd5 ( ) . equals ( asset . getLastSuccessfulAssetExtraction ( ) . getContentMd5 ( ) ) ) { logger . debug ( "The last successful extraction is older than the last asset version, processing needed" ) ; assetProcessingNeeded = true ; } return assetProcessingNeeded ; }

Indica si un activo necesita ser actualizado.<P> Primero compara el contenido de activos con el nuevo contenido.Si los contenidos son la misma verificación de que la última extracción exitosa corresponde a la última versión del activo.Si no, significa que ocurre un problema antes y que independientemente del contenido sea el mismo, el activo debe actualizarse y reprocesarse.


public String delVar  ( String variable ) { return delVar ( namespace , variable ) ; }

Elimine el valor de una variable en el espacio de nombres actual.


public boolean hasObservers  ( ) { return observers . get ( ) . length != 0 ; }

Devuelve VERDADERO si este complejo tiene observadores.


public boolean isApplicable  ( ) { return true ; }

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


public int compare  ( Object [ ] rowA , Object [ ] rowB ) { int diff = 0 ; for ( int i = 0 ; i < dimensionCount ; i ++ ) { int dimFieldA = RemoveDictionaryUtil . getDimension ( i , rowA ) ; int dimFieldB = RemoveDictionaryUtil . getDimension ( i , rowB ) ; diff = dimFieldA - dimFieldB ; if ( diff != 0 ) { return diff ; } } return diff ; }

Se utilizará por debajo del método para comparar dos claves sustitutas.


public ActionList ( Visualization vis , long duration ) { super ( vis , duration ) ; }

Crea una nueva lista de actiones que procesa la visualización dada y tiene la duración especificada y un paso de paso predeterminado de 20 milisegundos.


public synchronized long size  ( ) { return size ; }

Devuelve el número de bytes que se están utilizando actualmente para almacenar los valores en este caché.Esto puede ser mayor que el tamaño máximo si está pendiente una eliminación de fondo.


private void formatPeriods  ( Collection < ValidationResult > results , I18nFormat format ) { if ( format != null ) { for ( ValidationResult result : results ) { if ( result != null && result . getPeriod ( ) != null ) { result . getPeriod ( ) . setName ( format . formatPeriod ( result . getPeriod ( ) ) ) ; } } } }

Formatos y conjuntos Nombre en el período de cada resultado.


public TopicSubscriber createDurableSubscriber  ( Topic topic , String name , String messageSelector , boolean noLocal ) throws JMSException { ensureOpen ( ) ; throw new JMSException ( "This version of JMS does not support durable subscribers." ) ; }


public DOMFactory ( final String defaultNamespace ) { this . setDefaultNamespace ( defaultNamespace ) ; documentBuilderFactory = DocumentBuilderFactory . newInstance ( ) ; }

Crea un nuevo domador con el espacio de nombres predeterminado proporcionado.


public LeastSquaresBuilder start  ( final RealVector newStart ) { this . start = newStart ; return this ; }


public boolean isExperimentEnabled  ( String experiment ) { return experiments . contains ( experiment ) ; }

Comprueba si se habilita un experimento dado.


@ RequestMapping ( value = "/" , method = PUT , produces = APPLICATION_JSON_VALUE ) public ResponseEntity < AuthorDTO > update  ( @ RequestBody AuthorDTO authorDTO ) throws URISyntaxException { log . debug ( "Update AuthorDTO : {}" , authorDTO ) ; if ( ! authorDTO . isIdSet ( ) ) { return create ( authorDTO ) ; } AuthorDTO result = authorDTOService . save ( authorDTO ) ; return ResponseEntity . ok ( ) . body ( result ) ; }


public RenderTransformationDialog ( GeoServerConnectionManagerInterface geoServerConnectionManager ) { super ( Controller . getInstance ( ) . getFrame ( ) , Localisation . getString ( RenderTransformationDialog . class , "RenderTransformationDialog.title" ) , true ) ; this . geoServerConnectionManager = geoServerConnectionManager ; if ( expressionPanel == null ) { expressionPanel = ExpressionPanelFactory . getExpressionPanel ( "v2" ) ; } createUI ( ) ; Dimension preferredSize = new Dimension ( 600 , 400 ) ; setSize ( preferredSize ) ; Controller . getInstance ( ) . centreDialog ( this ) ; }

Instantánea un nuevo diálogo de transformación de render.


protected long calculateDuration  ( LeasedResource resource , long requestedDuration ) { if ( requestedDuration == Lease . FOREVER ) requestedDuration = Long . MAX_VALUE ; else if ( requestedDuration == Lease . ANY ) requestedDuration = defaultLength ; else if ( requestedDuration < 0 ) throw new IllegalArgumentException ( "Negative lease duration " + "requested" ) ; return Math . min ( requestedDuration , maximum ) ; }

Devuelve la duración de esta política está dispuesta a otorgar por el recurso aprobado en este momento.La duración realmente otorgada será más corta si la duración se extiende, pase el final de la época.Debe devolver un número positivo.<p> NOTA La duración devuelta por este método será más corta que la duración final otorgada si la duración solicitada se extiende más allá del vencimiento actual, y la devolución de la duración por este método es antes de la expiración actual.


private static void encodeBinary  ( byte [ ] bytes , int startpos , int count , int startmode , StringBuilder sb ) { if ( count == 1 && startmode == TEXT_COMPACTION ) { sb . append ( ( char ) SHIFT_TO_BYTE ) ; } else { if ( ( count % 6 ) == 0 ) { sb . append ( ( char ) LATCH_TO_BYTE ) ; } else { sb . append ( ( char ) LATCH_TO_BYTE_PADDED ) ; } } int idx = startpos ; if ( count >= 6 ) { char [ ] chars = new char [ 5 ] ; while ( ( startpos + count - idx ) >= 6 ) { long t = 0 ; for ( int i = 0 ; i < 6 ; i ++ ) { t <<= 8 ; t += bytes [ idx + i ] & 0xff ; } for ( int i = 0 ; i < 5 ; i ++ ) { chars [ i ] = ( char ) ( t % 900 ) ; t /= 900 ; } for ( int i = chars . length - 1 ; i >= 0 ; i -- ) { sb . append ( chars [ i ] ) ; } idx += 6 ; } } for ( int i = idx ; i < startpos + count ; i ++ ) { int ch = bytes [ i ] & 0xff ; sb . append ( ( char ) ch ) ; } }

Codificar partes del mensaje usando la compactación byte como se describe en ISO / IEC 15438: 2001 (E), Capítulo 4.4.3.Los caracteres Unicode se convertirán en binario utilizando el códigos CP437.


private void buildRowsPerPagePanel  ( ) { rowsPerPagePanel . setInitialClasses ( TableCssName . ROWS_PER_PAGE_PANEL ) ; rowsPerPagePanel . setGrid ( "s12 m4 l3" ) ; rowsPerPagePanel . add ( listRowsPerPage ) ; rowsPerPagePanel . add ( rowsPerPageLabel ) ; add ( rowsPerPagePanel ) ; }

Construye las filas por panel de páginas: donde puede configurar el rango de recuento de filas en ListBox


public boolean isLastRegistrar  ( String protocol ) { if ( _objMap . isEmpty ( ) ) return true ; List < Entry > entryValue = new ArrayList < Entry > ( _objMap . values ( ) ) ; for ( Iterator < Entry > iter = entryValue . iterator ( ) ; iter . hasNext ( ) ; ) { Entry e = iter . next ( ) ; if ( e . _protocol . equals ( protocol ) ) return false ; } return true ; }

Si el protocolo no está ocupado por ningún otro objeto en este registro, se devuelve el <código> verdadero </ código>;De lo contrario, hay al menos un registro de protocolo que se está utilizando.


@ SuppressWarnings ( "rawtypes" ) public boolean contextsByCallChain  ( Edge [ ] callEdgeChain , Local l , PtSensVisitor visitor ) { SootMethod firstMethod = callEdgeChain [ 0 ] . src ( ) ; int firstMethodID = geomPts . getIDFromSootMethod ( firstMethod ) ; if ( firstMethodID == - 1 ) return false ; LocalVarNode vn = geomPts . findLocalVarNode ( l ) ; if ( vn == null ) { return false ; } IVarAbstraction pn = geomPts . findInternalNode ( vn ) ; if ( pn == null ) { return false ; } pn = pn . getRepresentative ( ) ; if ( ! pn . hasPTResult ( ) ) return false ; SootMethod sm = vn . getMethod ( ) ; if ( geomPts . getIDFromSootMethod ( sm ) == - 1 ) return false ; visitor . prepare ( ) ; long L = 1 ; for ( int i = 0 ; i < callEdgeChain . length ; ++ i ) { Edge sootEdge = callEdgeChain [ i ] ; CgEdge ctxt = geomPts . getInternalEdgeFromSootEdge ( sootEdge ) ; if ( ctxt == null || ctxt . is_obsoleted == true ) return false ; int caller = geomPts . getIDFromSootMethod ( sootEdge . src ( ) ) ; long block_size = max_context_size_block [ rep_cg [ caller ] ] ; long in_block_offset = ( L - 1 ) % block_size ; L = ctxt . map_offset + in_block_offset ; } long ctxtLength = max_context_size_block [ rep_cg [ firstMethodID ] ] ; long R = L + ctxtLength ; pn . get_all_context_sensitive_objects ( L , R , visitor ) ; visitor . finish ( ) ; return visitor . numOfDiffObjects ( ) != 0 ; }

Consulta de K-CFA estándar para ARBITRARY K.


private void readObject  ( final java . io . ObjectInputStream s ) throws java . io . IOException , ClassNotFoundException  { s . defaultReadObject ( ) ; initialize ( ) ; HeadIndex < K , V > h = head ; Node < K , V > basepred = h . node ; ArrayList < Index < K , V > > preds = new ArrayList < Index < K , V > > ( ) ; for ( int i = 0 ; i <= h . level ; ++ i ) preds . add ( null ) ; Index < K , V > q = h ; for ( int i = h . level ; i > 0 ; -- i ) { preds . set ( i , q ) ; q = q . down ; } for ( ; ; ) { Object k = s . readObject ( ) ; if ( k == null ) break ; Object v = s . readObject ( ) ; if ( v == null ) throw new NullPointerException ( ) ; K key = ( K ) k ; V val = ( V ) v ; int j = randomLevel ( ) ; if ( j > h . level ) j = h . level + 1 ; Node < K , V > z = new Node < K , V > ( key , val , null ) ; basepred . next = z ; basepred = z ; if ( j > 0 ) { Index < K , V > idx = null ; for ( int i = 1 ; i <= j ; ++ i ) { idx = new Index < K , V > ( z , idx , null ) ; if ( i > h . level ) h = new HeadIndex < K , V > ( h . node , h , idx , i ) ; if ( i < preds . size ( ) ) { preds . get ( i ) . right = idx ; preds . set ( i , idx ) ; } else preds . add ( idx ) ; } } } head = h ; }


private static int addAllTabs  ( Stack stack , StackTab [ ] outList , int index ) { StackTab [ ] stackTabs = stack . getTabs ( ) ; if ( stackTabs != null ) { for ( int i = 0 ; i < stackTabs . length ; ++ i ) { outList [ index ++ ] = stackTabs [ i ] ; } } return index ; }

Extrae las pestañas de una pila y agreguelas a una lista.


public final void closeFallbackOutputStream  ( ) throws DataFallbackException  { if ( output != null ) { if ( LOG . isDebugEnabled ( ) ) LOG . debug ( "Closing the file writer for the file " + dataFile . getName ( ) ) ; try { output . close ( ) ; } catch ( IOException e ) { throw new DataFallbackException ( e . getMessage ( ) ) ; } finally { output = null ; } } }


public Call put  ( String url , Map < String , String > params , Callback callback ) { Request request = new Builder ( ) . url ( url ) . put ( bodyFromMap ( params ) ) . build ( ) ; Call call = client . newCall ( request ) ; call . enqueue ( callback ) ; return call ; }


public SortedSet < String > fields  ( ) { if ( myFieldSet == null ) myFieldSet = new TreeSet < String > ( fields . keySet ( ) ) ; return myFieldSet ; }

Devuelve un conjunto ordenado que contiene los nombres de los campos en este esquema, ordenados por su pedido natural.


public FieldRefNode makeGlobalFieldRefNode  ( Object baseValue , Type baseType , SparkField field ) { VarNode base = makeGlobalVarNode ( baseValue , baseType ) ; return makeFieldRefNode ( base , field ) ; }

Encuentra o crea el campo FieldRefNode para el campo Baseevalue y campo de la variable base, de tipo de tipo.


public WikiDimensions ( ) { this . dimensionConfigs = Collections . unmodifiableSet ( Arrays . stream ( WikiApiDimensionName . values ( ) ) . map ( null ) . collect ( Collectors . toSet ( ) ) ) ; wikiApiDimensionNameToConfig = dimensionConfigs . stream ( ) . collect ( StreamUtils . toLinkedMap ( null , Function . identity ( ) ) ) ; }

Construir las configuraciones de dimensión.


public static Map < String , Object > addToSolrIndex  ( DispatchContext dctx , Map < String , Object > context ) throws GenericEntityException { HttpSolrClient client = null ; Map < String , Object > result ; String productId = ( String ) context . get ( "productId" ) ; Boolean treatConnectErrorNonFatal = ( Boolean ) context . get ( "treatConnectErrorNonFatal" ) ; try { Debug . logInfo ( "Solr: Generating and indexing document for productId '" + productId + "'" , module ) ; if ( UtilValidate . isNotEmpty ( context . get ( "core" ) ) ) client = new HttpSolrClient ( SolrUtil . solrUrl + "/" + context . get ( "core" ) ) ; else client = new HttpSolrClient ( SolrUtil . solrFullUrl ) ; SolrInputDocument doc1 = SolrUtil . generateSolrDocument ( context ) ; Collection < SolrInputDocument > docs = new ArrayList < SolrInputDocument > ( ) ; if ( Debug . verboseOn ( ) ) { Debug . logVerbose ( "Solr: Indexing document: " + doc1 . toString ( ) , module ) ; } docs . add ( doc1 ) ; client . add ( docs ) ; client . commit ( ) ; final String statusStr = "Document for productId " + productId + " added to solr index" ; Debug . logInfo ( "Solr: " + statusStr , module ) ; result = ServiceUtil . returnSuccess ( statusStr ) ; } catch ( MalformedURLException e ) { Debug . logError ( e , e . getMessage ( ) , module ) ; result = ServiceUtil . returnError ( e . toString ( ) ) ; result . put ( "errorType" , "urlError" ) ; } catch ( SolrServerException e ) { if ( e . getCause ( ) != null && e . getCause ( ) instanceof ConnectException ) { final String statusStr = "Failure connecting to solr server to commit productId " + context . get ( "productId" ) + "; product not updated" ; if ( Boolean . TRUE . equals ( treatConnectErrorNonFatal ) ) { Debug . logWarning ( e , "Solr: " + statusStr , module ) ; result = ServiceUtil . returnFailure ( statusStr ) ; } else { Debug . logError ( e , "Solr: " + statusStr , module ) ; result = ServiceUtil . returnError ( statusStr ) ; } result . put ( "errorType" , "connectError" ) ; } else { Debug . logError ( e , e . getMessage ( ) , module ) ; result = ServiceUtil . returnError ( e . toString ( ) ) ; result . put ( "errorType" , "solrServerError" ) ; } } catch ( IOException e ) { Debug . logError ( e , e . getMessage ( ) , module ) ; result = ServiceUtil . returnError ( e . toString ( ) ) ; result . put ( "errorType" , "ioError" ) ; } finally { try { if ( UtilValidate . isNotEmpty ( client ) ) client . close ( ) ; } catch ( IOException e ) { result = ServiceUtil . returnError ( e . toString ( ) ) ; result . put ( "errorType" , "ioError" ) ; } } return result ; }


public void writeColumn  ( String value ) throws IllegalArgumentException , IOException  { if ( value == null ) { if ( ! this . nullableColumns [ this . currentColumn ] ) { throw new IllegalArgumentException ( "Bulk load will fail as a null value cannot be assigned to column '" + this . columns [ this . currentColumn ] + "'" ) ; } } else { this . dataFileWriter . write ( value ) ; } if ( this . currentColumn < ( this . columns . length - 1 ) ) { this . dataFileWriter . write ( FIELD_TERMINATOR ) ; } this . currentColumn ++ ; }

Escribe una sola columna.Después de que todas las columnas en una sola fila se han escrito, llame a Endrow ()


public static TransferTagImpl createTransferTag  ( final TagWithAlarms tagWithAlarms , boolean aliveTag ) { Tag tag = tagWithAlarms . getTag ( ) ; TransferTagImpl transferTag = null ; if ( tag != null ) { transferTag = new TransferTagImpl ( tag . getId ( ) , tag . getValue ( ) , tag . getValueDescription ( ) , ( DataTagQualityImpl ) tag . getDataTagQuality ( ) , getTagMode ( tag ) , tag . getTimestamp ( ) , tag instanceof DataTag ? ( ( DataTag ) tag ) . getDaqTimestamp ( ) : null , tag . getCacheTimestamp ( ) , tag . getDescription ( ) , tag . getName ( ) , tag . getTopic ( ) ) ; String dataType = isKnownClass ( tag . getDataType ( ) ) ? getType ( tag . getDataType ( ) ) . getName ( ) : tag . getDataType ( ) ; transferTag . setValueClassName ( dataType ) ; addAlarmValues ( transferTag , tagWithAlarms . getAlarms ( ) ) ; transferTag . setSimulated ( tag . isSimulated ( ) ) ; transferTag . setUnit ( tag . getUnit ( ) ) ; transferTag . addEquipmentIds ( tag . getEquipmentIds ( ) ) ; transferTag . addSubEquipmentIds ( tag . getSubEquipmentIds ( ) ) ; transferTag . addProcessIds ( tag . getProcessIds ( ) ) ; if ( tag . getMetadata ( ) != null ) { transferTag . setMetadata ( tag . getMetadata ( ) . getMetadata ( ) ) ; } if ( tag instanceof RuleTag ) { transferTag . defineRuleExpression ( ( ( RuleTag ) tag ) . getRuleExpression ( ) ) ; } else if ( tag instanceof ControlTag ) { transferTag . setControlTagFlag ( true ) ; transferTag . setAliveTagFlag ( aliveTag ) ; } } return transferTag ; }

Crea un objeto <código> transfertagimpl </ code> para los parámetros dados


public static final Ellipse scale  ( Ellipse ellipse , double scale ) { if ( ellipse == null ) throw new NullPointerException ( Messages . getString ( "geometry.nullShape" ) ) ; if ( scale <= 0 ) throw new IllegalArgumentException ( Messages . getString ( "geometry.invalidScale" ) ) ; return new Ellipse ( ellipse . getWidth ( ) * scale , ellipse . getHeight ( ) * scale ) ; }

Devuelve una versión escalada de la elipse dada.


public String localName  ( ) { return theType . localName ( ) ; }

Devuelva el nombre local del tipo del elemento.Método de conveniencia.


public Map < String , String > retrieveTagProcessMetadata  ( Tag tag ) { long equipmentId = DEFAULT_ID ; long subEquipmentId = DEFAULT_ID ; long processId = DEFAULT_ID ; boolean subEquipmentIsPresent = ! CollectionUtils . isEmpty ( tag . getSubEquipmentIds ( ) ) ; boolean EquipmentIsPresent = ! CollectionUtils . isEmpty ( tag . getEquipmentIds ( ) ) ; boolean processIsPresent = ! CollectionUtils . isEmpty ( tag . getProcessIds ( ) ) ; if ( subEquipmentIsPresent ) { subEquipmentId = tag . getSubEquipmentIds ( ) . iterator ( ) . next ( ) ; equipmentId = searchEquipmentInSubEquipmentCache ( subEquipmentId ) ; processId = searchProcessIdInEquipmentCache ( equipmentId ) ; return extractMetadata ( processId , equipmentId , subEquipmentId ) ; } if ( EquipmentIsPresent ) { equipmentId = tag . getEquipmentIds ( ) . iterator ( ) . next ( ) ; processId = searchProcessIdInEquipmentCache ( equipmentId ) ; return extractMetadata ( processId , equipmentId , subEquipmentId ) ; } if ( processIsPresent ) { processId = tag . getProcessIds ( ) . iterator ( ) . next ( ) ; return extractMetadata ( processId , equipmentId , subEquipmentId ) ; } log . debug ( "no Process, Equipment or SubEquipment found for tag #{}" , tag . getId ( ) ) ; return Collections . emptyMap ( ) ; }

Recupere el nombre de proceso [, Nombre de equipo, Subquipcion Nombre] para una etiqueta dada.Según la jerarquía.


public void computeAxis  ( float yMin , float yMax ) { if ( mViewPortHandler . contentWidth ( ) > 10 && ! mViewPortHandler . isFullyZoomedOutY ( ) ) { PointD p1 = mTrans . getValuesByTouchPoint ( mViewPortHandler . contentLeft ( ) , mViewPortHandler . contentTop ( ) ) ; PointD p2 = mTrans . getValuesByTouchPoint ( mViewPortHandler . contentLeft ( ) , mViewPortHandler . contentBottom ( ) ) ; if ( ! mYAxis . isInverted ( ) ) { yMin = ( float ) p2 . y ; yMax = ( float ) p1 . y ; } else { yMin = ( float ) p1 . y ; yMax = ( float ) p2 . y ; } } computeAxisValues ( yMin , yMax ) ; }


protected void paint3DRectLighting  ( Graphics2D g2 , int x , int y , int width , int height ) { g2 . setColor ( Color . white ) ; g2 . drawLine ( x + 1 , y + 1 , x + 1 , y + height - 1 ) ; g2 . drawLine ( x + 1 , y + 1 , x + width - 1 , y + 1 ) ; g2 . setColor ( Color . gray ) ; g2 . drawLine ( x + 1 , y + height - 1 , x + width - 1 , y + height - 1 ) ; g2 . drawLine ( x + width - 1 , y + 1 , x + width - 1 , y + height - 1 ) ; g2 . setColor ( Color . darkGray ) ; g2 . drawLine ( x , y + height , x + width , y + height ) ; g2 . drawLine ( x + width , y , x + width , y + height ) ; }

Agrega efectos de iluminación 3D tipo Windows2k


public static int pixelToDp  ( Context c , int px ) { return ( int ) ( px / c . getResources ( ) . getDisplayMetrics ( ) . density ) ; }


private static boolean isInVerticalTargetZone  ( float x , float y , float handleX , float handleYStart , float handleYEnd , float targetRadius ) { return ( Math . abs ( x - handleX ) <= targetRadius && y > handleYStart && y < handleYEnd ) ; }

Determina si la coordenada especificada está en la zona táctil de destino para un mango de barra vertical.


public AdsCreateClientsQuery createClients  ( UserActor actor , int accountId , String data ) { return new AdsCreateClientsQuery ( getClient ( ) , actor , accountId , data ) ; }

Crea clientes de una agencia de publicidad.


public final void clearFileContents  ( ) throws DataFallbackException  { if ( ! dataFile . delete ( ) ) { LOG . error ( "clearFileContents() - The original file could not be deleted" ) ; throw new DataFallbackException ( "The file " + dataFile . getAbsolutePath ( ) + " could not be deleted" ) ; } else { LOG . info ( "clearFileContents() - The " + dataFile . getAbsolutePath ( ) + " has been deleted" ) ; try { if ( dataFile . createNewFile ( ) ) { if ( LOG . isDebugEnabled ( ) ) LOG . debug ( "clearFileContents() - The " + dataFile . getAbsolutePath ( ) + " has been created" ) ; } } catch ( IOException e ) { LOG . error ( "clearFileContents() : Error while creating the fallback file " + e . getMessage ( ) ) ; } initializeCounterFile ( ) ; } }

Elimina los contenidos del archivo de registro de Fallback al eliminar el archivo y crearlo nuevamente y también actualiza el mostrador almacenado en la contrapelación


protected User createUserAndInjectSecurityContext  ( boolean allAuth , String ... auths ) { return createUserAndInjectSecurityContext ( null , allAuth , auths ) ; }

Crea un usuario e inyecta en el contexto de seguridad con el nombre de usuario "Nombre de usuario".Requiere <código> IdentificifeObjectManager </ code> y <code> Servidor de usuario </ código> para inyectarse en la prueba.


public KeyAlreadySetException ( ) { super ( ) ; }

Construye un <código> KEYYALREADYSETEXception </ Code> sin mensaje de detalle.


@ Override public void addTab  ( Tab tab , int index , TabLaunchType type ) { try { TraceEvent . begin ( "TabModelImpl.addTab" ) ; for ( TabModelObserver obs : mObservers ) obs . willAddTab ( tab , type ) ; boolean selectTab = mOrderController . willOpenInForeground ( type , isIncognito ( ) ) ; index = mOrderController . determineInsertionIndex ( type , index , tab ) ; assert index <= mTabs . size ( ) ; assert tab . isIncognito ( ) == isIncognito ( ) ; commitAllTabClosures ( ) ; if ( index < 0 || index > mTabs . size ( ) ) { mTabs . add ( tab ) ; } else { mTabs . add ( index , tab ) ; if ( index <= mIndex ) { mIndex ++ ; } } if ( ! isCurrentModel ( ) ) { mIndex = Math . max ( mIndex , 0 ) ; } mRewoundList . resetRewoundState ( ) ; int newIndex = indexOf ( tab ) ; tabAddedToModel ( tab ) ; for ( TabModelObserver obs : mObservers ) obs . didAddTab ( tab , type ) ; if ( selectTab ) { mModelDelegate . selectModel ( isIncognito ( ) ) ; setIndex ( newIndex , TabModel . TabSelectionType . FROM_NEW ) ; } } finally { TraceEvent . end ( "TabModelImpl.addTab" ) ; } }

Inicializa la pestaña recién creada, lo agrega al controlador y envía notificaciones de creación de creación.


public int readLine  ( byte b [ ] , int off , int len ) throws IOException { int result , left = totalExpected - totalRead ; if ( left <= 0 ) { return - 1 ; } else { result = ( ( javax . servlet . ServletInputStream ) in ) . readLine ( b , off , Math . min ( left , len ) ) ; } if ( result > 0 ) { totalRead += result ; } return result ; }

Implementar la limitación de longitud en la parte superior del método <código> readline </ code> del envoltorio <code> servletutputstream </ code>.


public String encodeSLD  ( StyledLayerDescriptor sld ) { StringWriter out = new StringWriter ( ) ; if ( sld != null ) { try { Ysld . encode ( sld , out ) ; } catch ( IOException e ) { ConsoleManager . getInstance ( ) . exception ( this , e ) ; } } return out . toString ( ) ; }


public static ModelIndex create  ( ModelEntity modelEntity , String description , String name , List < Field > fields , boolean unique ) { if ( description == null ) { description = "" ; } if ( name == null ) { name = "" ; } if ( fields == null ) { fields = Collections . emptyList ( ) ; } else { fields = Collections . unmodifiableList ( fields ) ; } return new ModelIndex ( modelEntity , description , name , fields , unique ) ; }

Devuelve una nueva instancia de <código> modelindex </ code>, inicializado con los valores especificados.