protected void processThermostatSetpointReport  ( SerialMessage serialMessage , int offset , int endpoint ) throws ZWaveSerialMessageException { int setpointTypeCode = serialMessage . getMessagePayloadByte ( offset + 1 ) ; int scale = ( serialMessage . getMessagePayloadByte ( offset + 2 ) >> 3 ) & 0x03 ; try { BigDecimal value = extractValue ( serialMessage . getMessagePayload ( ) , offset + 2 ) ; logger . debug ( "NODE {}: Thermostat Setpoint report Scale = {}" , this . getNode ( ) . getNodeId ( ) , scale ) ; logger . debug ( "NODE {}: Thermostat Setpoint Value = {}" , this . getNode ( ) . getNodeId ( ) , value ) ; SetpointType setpointType = SetpointType . getSetpointType ( setpointTypeCode ) ; if ( setpointType == null ) { logger . error ( "NODE {}: Unknown Setpoint Type = {}, ignoring report." , this . getNode ( ) . getNodeId ( ) , setpointTypeCode ) ; return ; } Setpoint setpoint = setpoints . get ( setpointType ) ; if ( setpoint == null ) { setpoint = new Setpoint ( setpointType ) ; setpoints . put ( setpointType , setpoint ) ; } setpoint . setInitialised ( ) ; logger . debug ( "NODE {}: Thermostat Setpoint Report, Type {} ({}), value = {}" , this . getNode ( ) . getNodeId ( ) , setpointType . getLabel ( ) , setpointTypeCode , value . toPlainString ( ) ) ; ZWaveThermostatSetpointValueEvent zEvent = new ZWaveThermostatSetpointValueEvent ( this . getNode ( ) . getNodeId ( ) , endpoint , setpointType , scale , value ) ; this . getController ( ) . notifyEventListeners ( zEvent ) ; } catch ( NumberFormatException e ) { return ; } }

Procesa un mensaje termostat_setpoint_report.


public static Map < String , Object > executeFind  ( DispatchContext dctx , Map < String , ? > context ) { String entityName = ( String ) context . get ( "entityName" ) ; EntityConditionList < EntityCondition > entityConditionList = UtilGenerics . cast ( context . get ( "entityConditionList" ) ) ; List < String > orderByList = checkList ( context . get ( "orderByList" ) , String . class ) ; boolean noConditionFind = "Y" . equals ( context . get ( "noConditionFind" ) ) ; boolean distinct = UtilMisc . booleanValueVersatile ( context . get ( "distinct" ) , false ) ; List < String > fieldList = UtilGenerics . checkList ( context . get ( "fieldList" ) ) ; Locale locale = ( Locale ) context . get ( "locale" ) ; Set < String > fieldSet = null ; if ( fieldList != null ) { fieldSet = UtilMisc . makeSetWritable ( fieldList ) ; } Integer maxRows = ( Integer ) context . get ( "maxRows" ) ; maxRows = maxRows != null ? maxRows : - 1 ; Delegator delegator = dctx . getDelegator ( ) ; EntityListIterator listIt = null ; int listSize = 0 ; try { if ( noConditionFind || ( entityConditionList != null && entityConditionList . getConditionListSize ( ) > 0 ) ) { listIt = EntityQuery . use ( delegator ) . select ( fieldSet ) . from ( entityName ) . where ( entityConditionList ) . orderBy ( orderByList ) . cursorScrollInsensitive ( ) . maxRows ( maxRows ) . distinct ( distinct ) . queryIterator ( ) ; listSize = listIt . getResultsSizeAfterPartialList ( ) ; } } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonFindErrorRunning" , UtilMisc . toMap ( "entityName" , entityName , "errorString" , e . getMessage ( ) ) , locale ) ) ; } Map < String , Object > results = ServiceUtil . returnSuccess ( ) ; results . put ( "listIt" , listIt ) ; results . put ( "listSize" , listSize ) ; return results ; }

EXECUTUTFIND Este es un método genérico que devuelve un EntityListiterador.


public JSONWriter endArray  ( ) throws JSONException  { return this . end ( 'a' , ']' ) ; }

Terminar una matriz.Este método se llamará más para equilibrar las llamadas a <Code> Array </ Code>.


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

Anexar un elemento a la lista de parámetros.


public int totalSize  ( ) { int total = 0 ; for ( Map . Entry < K , Counter < V > > entry : counterMap . entrySet ( ) ) { Counter < V > counter = entry . getValue ( ) ; total += counter . size ( ) ; } return total ; }

Devuelve el número total de entradas (clave, valor) en la contrampar (no sus conteos totales).


synchronized void executed  ( RTEditText editor , Operation op ) { Stack < Operation > undoStack = getUndoStack ( editor ) ; Stack < Operation > redoStack = getRedoStack ( editor ) ; while ( ! undoStack . empty ( ) && op . canMerge ( undoStack . peek ( ) ) ) { Operation previousOp = undoStack . pop ( ) ; op . merge ( previousOp ) ; } push ( op , undoStack ) ; redoStack . clear ( ) ; }

Llame a esto cuando se realice una operación para agregarla a la pila de deshacer.


private void populateResultsHeader  ( IVScanResult ivScanResult ) { resultsPokemonName . setText ( ivScanResult . pokemon . name ) ; resultsPokemonLevel . setText ( getString ( R . string . level_num , ivScanResult . estimatedPokemonLevel ) ) ; }

Muestra el nombre y el nivel del Pokémon en el cuadro de diálogo Resultados.


public EqCommandTagException ( final int code , final String descr ) { super ( code , descr ) ; }


public static < V > int addDistinctList  ( List < V > sourceList , List < V > entryList ) { if ( sourceList == null || isEmpty ( entryList ) ) { return 0 ; } int sourceCount = sourceList . size ( ) ; for ( V entry : entryList ) { if ( ! sourceList . contains ( entry ) ) { sourceList . add ( entry ) ; } } return sourceList . size ( ) - sourceCount ; }

Agregar toda la entrada distinta a list1 de list2


@ Override public boolean isDeprecated  ( ) { return proto . getOptions ( ) . getDeprecated ( ) ; }

Devuelve VERDADERO si este objeto representa algo que está configurado según se desactiva.


public static boolean isUrl  ( String url ) { Pattern pattern = Pattern . compile ( "^([hH][tT]{2}[pP]://|[hH][tT]{2}[pP][sS]://)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\/])+$" ) ; return pattern . matcher ( url ) . matches ( ) ; }


public int print  ( Graphics gc0 , PageFormat format , int pagenumber ) throws PrinterException { Component panel = scrollPane . getViewport ( ) . getComponent ( 0 ) ; if ( panel != null && pagenumber == 0 ) { Graphics2D gc = ( ( Graphics2D ) gc0 ) ; Dimension dim = panel . getPreferredSize ( ) ; int image_w = dim . width ; int image_h = dim . height ; double paper_x = format . getImageableX ( ) + 1 ; double paper_y = format . getImageableY ( ) + 1 ; double paper_w = format . getImageableWidth ( ) - 2 ; double paper_h = format . getImageableHeight ( ) - 2 ; double scale_x = paper_w / image_w ; double scale_y = paper_h / image_h ; double scale = ( scale_x <= scale_y ) ? scale_x : scale_y ; double shift_x = paper_x + ( paper_w - scale * image_w ) / 2.0 ; double shift_y = paper_y + ( paper_h - scale * image_h ) / 2.0 ; gc . translate ( shift_x , shift_y ) ; gc . scale ( scale , scale ) ; panel . print ( gc0 ) ; return Printable . PAGE_EXISTS ; } return Printable . NO_SUCH_PAGE ; }

Imprime la gráfica asociada con este visor.


public void addLoadingSpinnerRotation  ( float rotation ) { mLoadingSpinnerRotationDegrees = ( mLoadingSpinnerRotationDegrees + rotation ) % 1080 ; }

Actualización de rotación de Spinner Aditive.


public void alignToFourBytesWithZeroFill  ( ) { int alignedPos = SizeOf . roundToTimesOfFour ( data . position ( ) ) ; ensureBufferSize ( ( alignedPos - data . position ( ) ) * SizeOf . UBYTE ) ; while ( ( data . position ( ) & 3 ) != 0 ) { data . put ( ( byte ) 0 ) ; } if ( this . data . position ( ) > this . dataBound ) { this . dataBound = this . data . position ( ) ; } }

Escribe 0x00 hasta que la posición esté alineada en un múltiplo de 4.


public void loadBcpFile  ( String bcpFilename , String delimiter , List < Attribute > attributes , String dateFormatString , SourcelessConnectionManager connectionManager ) { loadBcpFile ( bcpFilename , delimiter , attributes , connectionManager , dateFormatString != null ? new SimpleDateFormat ( dateFormatString ) : null ) ; }

Carga el contenido de un archivo delimitado en una base de datos de prueba.


public HectorCassandraClientConfigurer clusterName  ( String clusterName ) { this . clusterName = clusterName ; return this ; }

(Opcional) Establece el nombre del clúster utilizado internamente por la Biblioteca de Hector.Use esto si planea conectarse a más de un clúster de Cassandra en el mismo JVM.


private synchronized static LRMIClassLoader createClassLoader  ( String className ) throws LRMIClassLoaderCreationException  { final ClassLoader contextClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; if ( contextClassLoader == null ) throw new LRMIClassLoaderCreationException ( "attempt to create a LRMIClassLoader when there is no context class loader" ) ; ServiceClassLoaderContext serviceClassLoaderContext = getServiceClassLoaderContext ( ) ; if ( serviceClassLoaderContext == null ) { if ( _logger . isLoggable ( Level . FINEST ) ) logFinest ( "creating service class loader context [" + ClassLoaderHelper . getClassLoaderLogName ( contextClassLoader ) + "]" ) ; serviceClassLoaderContext = new ServiceClassLoaderContext ( ClassLoaderHelper . getClassLoaderLogName ( contextClassLoader ) ) ; long classLoaderKey = ClassLoaderCache . getCache ( ) . putClassLoader ( contextClassLoader ) ; serviceClassLoaderContextMap . put ( classLoaderKey , serviceClassLoaderContext ) ; } LRMIRemoteClassLoaderIdentifier identifier = null ; try { identifier = LRMIConnection . getRemoteClassLoaderIdentifier ( ) ; if ( identifier == null ) throw new LRMIClassLoaderCreationException ( "attempt to create a LRMIClassLoader when there is no remote class loader context" ) ; LRMIClassLoader cl = serviceClassLoaderContext . getClassLoaderByRemoteId ( identifier ) ; if ( cl != null ) { if ( _logger . isLoggable ( Level . FINEST ) ) logFinest ( "current target has already associated LRMIClassLoader, using it" ) ; return cl ; } if ( _logger . isLoggable ( Level . FINEST ) ) logFinest ( "retrieving remote class provider [" + identifier . getRemoteLrmiRuntimeId ( ) + "]" ) ; IClassProvider classProvider = LRMIConnection . getClassProvider ( ) ; if ( classProvider == null ) { if ( _logger . isLoggable ( Level . FINE ) ) logFine ( "could not get LRMIClassLoader for remote class loader [" + identifier . toString ( ) + "]" ) ; throw new LRMIClassLoaderCreationException ( "could not get LRMIClassLoader for remote class loader [" + identifier . toString ( ) + "]" ) ; } if ( _logger . isLoggable ( Level . FINE ) ) logFine ( "creating new LRMIClassLoader connected to remote class loader [" + identifier . toString ( ) + "]" ) ; cl = new LRMIClassLoader ( classProvider , contextClassLoader , serviceClassLoaderContext , identifier . getRemoteLrmiRuntimeId ( ) , identifier . getRemoteClassLoaderId ( ) ) ; LRMIClassLoader previousClassLoader = serviceClassLoaderContext . putClassLoaderByRemoteId ( identifier , cl ) ; if ( previousClassLoader != null ) cl = previousClassLoader ; return cl ; } catch ( IOException e ) { logWarningOnExceptionCreatingLRMIClassLoader ( className , identifier , e ) ; throw new LRMIClassLoaderCreationException ( "exception caught while creating LRMIClassLoader" , e ) ; } catch ( IOFilterException e ) { logWarningOnExceptionCreatingLRMIClassLoader ( className , identifier , e ) ; throw new LRMIClassLoaderCreationException ( "exception caught while creating LRMIClassLoader" , e ) ; } }

Cree un LRMICLASSGOADER de acuerdo con el contexto del hilo actual


public static String subString  ( String string , int beginIndex , int length ) { if ( string == null ) { return null ; } final int endIndex = beginIndex + length ; if ( beginIndex >= string . length ( ) ) { return EMPTY ; } if ( endIndex > string . length ( ) ) { return string . substring ( beginIndex , string . length ( ) ) ; } return string . substring ( beginIndex , endIndex ) ; }

Obtiene la cadena secundaria de la cadena dada.Si el BeginIndex es más grande que la longitud de la cadena, se devuelve la cadena vacía.Si el BeginIndex + la longitud es más grande que la longitud de la cadena, se devuelve la parte de la cadena siguiendo a BeginIndex.El método está fuera de rango seguro.


public X509TrustManager removeDelegate  ( Object key ) { return delegates . remove ( key ) ; }

Eliminar un delegado previamente agregado


@ NotNull public FaceGroupingSet groupFaceListOnSingleFace  ( List < String > images ) { List < ImageAndFace > imageAndFaces = new ArrayList < > ( ) ; for ( String image : images ) { imageAndFaces . add ( new ImageAndFace < > ( image , findSingleFace ( image ) ) ) ; } List < String > faceIds = imageAndFaces . parallelStream ( ) . map ( null ) . collect ( Collectors . toList ( ) ) ; FaceGrouping groupings = faceTaskBuilder . groupFaces ( faceIds ) . withResult ( ) ; return new FaceGroupingSet ( imageAndFaces , groupings ) ; }


public PolygonRenderer ( int polyType ) { m_polyType = polyType ; }


public static ValueGetterSpacePredicate < ServerEntry > propertyGreater  ( String propertyName , Comparable < ? > value ) { return property ( propertyName , greater ( value ) ) ; }

Atajo para la propiedad (PropertyName, mayor (valor)).


public void unlockUserInput  ( ) { locked = false ; tabbedPane . setEnabled ( true ) ; setCursor ( Cursor . getDefaultCursor ( ) ) ; getCommandManager ( ) . setEnableCritical ( true ) ; getCommandManager ( ) . updateEnableState ( ) ; }

Pedir la vista para permitir la entrada del usuario


private String createOutputFileName  ( String outputFileTemplate , int classId , String className , int numberOfIds ) { String outputFile = null ; if ( outputFileTemplate . contains ( "%d" ) ) outputFile = outputFileTemplate . replaceAll ( "%d" , "" + classId ) ; if ( outputFileTemplate . contains ( "%s" ) ) outputFile = ( outputFile == null ? outputFileTemplate : outputFile ) . replaceAll ( "%s" , Basic . toCleanName ( className ) ) ; if ( outputFile == null && numberOfIds > 1 ) outputFile = Basic . replaceFileSuffix ( outputFileTemplate , "-" + classId + ".fasta" ) ; if ( outputFile == null ) outputFile = outputFileTemplate ; return outputFile ; }


public void showOverlappingContainer  ( ) { mFrameLayoutOverlappingViewContainer . setVisibility ( VISIBLE ) ; }


public AdsCreateTargetGroupQuery domain  ( String value ) { return unsafeParam ( "domain" , value ) ; }

Dominio del sitio donde se colocará el código de contabilidad de usuario.


public SpaceEntryPathGetter ( String path ) { this . _path = path ; }

Cree un PATH GETTER usando la ruta especificada.


protected VideoRemoveFromAlbumQuery videoId  ( int value ) { return unsafeParam ( "video_id" , value ) ; }


@ SubscribeEvent public void postRender  ( RenderWorldLastEvent event ) { EntityPlayerSP player = Minecraft . getMinecraft ( ) . thePlayer ; float x = ( float ) ( player . lastTickPosX + ( player . posX - player . lastTickPosX ) * event . partialTicks ) ; float y = ( float ) ( player . lastTickPosY + ( player . posY - player . lastTickPosY ) * event . partialTicks ) ; float z = ( float ) ( player . lastTickPosZ + ( player . posZ - player . lastTickPosZ ) * event . partialTicks ) ; float yaw = player . prevRotationYaw + ( player . rotationYaw - player . prevRotationYaw ) * event . partialTicks ; float pitch = player . prevRotationPitch + ( player . rotationPitch - player . prevRotationPitch ) * event . partialTicks ; long time_before_ns = System . nanoTime ( ) ; if ( time_before_ns < retry_time_ns ) return ; boolean success = false ; try { int size = this . videoProducer . getRequiredBufferSize ( ) ; this . buffer . clear ( ) ; this . headerbuffer . clear ( ) ; this . headerbuffer . putFloat ( x ) ; this . headerbuffer . putFloat ( y ) ; this . headerbuffer . putFloat ( z ) ; this . headerbuffer . putFloat ( yaw ) ; this . headerbuffer . putFloat ( pitch ) ; this . videoProducer . getFrame ( this . missionInit , this . buffer ) ; this . headerbuffer . flip ( ) ; ByteBuffer [ ] buffers = { this . headerbuffer , this . buffer } ; long time_after_render_ns = System . nanoTime ( ) ; success = this . connection . sendTCPBytes ( buffers , size + POS_HEADER_SIZE ) ; long time_after_ns = System . nanoTime ( ) ; float ms_send = ( time_after_ns - time_after_render_ns ) / 1000000.0f ; float ms_render = ( time_after_render_ns - time_before_ns ) / 1000000.0f ; if ( success ) this . failedTCPSendCount = 0 ; } catch ( Exception e ) { System . out . format ( e . getMessage ( ) ) ; } if ( ! success ) { System . out . format ( "Failed to send frame - will retry in %d seconds\n" , RETRY_GAP_NS / 1000000000L ) ; retry_time_ns = time_before_ns + RETRY_GAP_NS ; this . failedTCPSendCount ++ ; } }

Llamado cuando el mundo se ha prestado, pero aún no la GUI o la mano del jugador.


public boolean removeEdge  ( Edge e ) { if ( ! edges . remove ( e ) ) return false ; e . remove ( ) ; if ( srcUnitToEdge . get ( e . srcUnit ( ) ) == e ) { if ( e . nextByUnit ( ) . srcUnit ( ) == e . srcUnit ( ) ) { srcUnitToEdge . put ( e . srcUnit ( ) , e . nextByUnit ( ) ) ; } else { srcUnitToEdge . put ( e . srcUnit ( ) , null ) ; } } if ( srcMethodToEdge . get ( e . getSrc ( ) ) == e ) { if ( e . nextBySrc ( ) . getSrc ( ) == e . getSrc ( ) ) { srcMethodToEdge . put ( e . getSrc ( ) , e . nextBySrc ( ) ) ; } else { srcMethodToEdge . put ( e . getSrc ( ) , null ) ; } } if ( tgtToEdge . get ( e . getTgt ( ) ) == e ) { if ( e . nextByTgt ( ) . getTgt ( ) == e . getTgt ( ) ) { tgtToEdge . put ( e . getTgt ( ) , e . nextByTgt ( ) ) ; } else { tgtToEdge . put ( e . getTgt ( ) , null ) ; } } return true ; }

Elimina el borde E desde el gráfico de llamadas.Devuelve VERDADERO IFF El borde estaba presente originalmente en el gráfico de llamadas.


@ NonNull public static Observable < LoginResult > loginWithButton  ( @ NonNull final LoginButton loginButton , @ NonNull final Fragment fragment ) { checkNotNull ( fragment , "fragment == null" ) ; checkNotNull ( loginButton , "loginButton == null" ) ; ReactiveFB . checkInit ( ) ; return Observable . create ( new LoginWithButtonOnSubscribe ( loginButton ) ) ; }

Inicie sesión con com.facebook.login.widget.loginbutton para ser llamado desde un android.support.v4.app.fragment


public void visitPhpMethod  ( Method method ) { this . inspectCallable ( method ) ; }


public static synchronized void removeAccountOnLS  ( Account account ) { accountsOnLS . remove ( account . getId ( ) ) ; }

Elimina la cuenta de la lista de conexiones


private List < LatLng > decodePoly  ( String encoded ) { List < LatLng > poly = new ArrayList < LatLng > ( ) ; int index = 0 , len = encoded . length ( ) ; int lat = 0 , lng = 0 ; while ( index < len ) { int b , shift = 0 , result = 0 ; do { b = encoded . charAt ( index ++ ) - 63 ; result |= ( b & 0x1f ) << shift ; shift += 5 ; } while ( b >= 0x20 ) ; int dlat = ( ( result & 1 ) != 0 ? ~ ( result >> 1 ) : ( result >> 1 ) ) ; lat += dlat ; shift = 0 ; result = 0 ; do { b = encoded . charAt ( index ++ ) - 63 ; result |= ( b & 0x1f ) << shift ; shift += 5 ; } while ( b >= 0x20 ) ; int dlng = ( ( result & 1 ) != 0 ? ~ ( result >> 1 ) : ( result >> 1 ) ) ; lng += dlng ; LatLng p = new LatLng ( ( ( ( double ) lat / 1E5 ) ) , ( ( ( double ) lng / 1E5 ) ) ) ; poly . add ( p ) ; } return poly ; }

Método para decodificar puntos de polilínea cortesía: http://jeffreysambells.com/2010/05/27/decoding-polylines-from-google-maps-direction-api-with-java


public void sendToFilterModule  ( final SourceDataTag currentSourceDataTag , final ValueUpdate update , final int filterType ) { doSendToFilterModule ( currentSourceDataTag , update , new SourceDataTagQuality ( ) , false , filterType ) ; }

Envía un mensaje al registro de filtros.Solo debe usarse en el núcleo.


public RedGradient ( int maxCount ) { this . maxCount = maxCount ; factor = maxCount / Math . log ( maxCount ) ; }


@ Override public void close  ( ) throws IOException  { }

No cierra ni descarga el escritor envuelto.


public DistributedLogClientBuilder handshakeTracing  ( boolean enabled ) { DistributedLogClientBuilder newBuilder = newBuilder ( this ) ; newBuilder . _clientConfig . setHandshakeTracingEnabled ( enabled ) ; return newBuilder ; }

Habilitar el trazado de apretón de manos.


protected WallGetQueryWithExtended extended  ( Boolean value ) { return unsafeParam ( "extended" , value ) ; }

Regrese "Muro", "Perfiles" y campos "Grupos"


private static boolean hasSelfPermission  ( Context context , String permission ) { try { return checkSelfPermission ( context , permission ) == PackageManager . PERMISSION_GRANTED ; } catch ( RuntimeException t ) { return false ; } }

Determinar el contexto tiene acceso al permiso dado.Esta es una solución para RunTimeException of Parcel # ReaxException.Para obtener más detalles, marque este problema https://github.com/hotchemi/permissionsdispatcher/issues/107


public boolean writeHeader  ( OutputStream os ) { try { writeInt ( os , CACHE_MAGIC ) ; writeString ( os , key ) ; writeString ( os , etag == null ? "" : etag ) ; writeLong ( os , serverDate ) ; writeLong ( os , lastModified ) ; writeLong ( os , ttl ) ; writeLong ( os , softTtl ) ; writeStringStringMap ( responseHeaders , os ) ; os . flush ( ) ; return true ; } catch ( IOException e ) { VolleyLog . d ( "%s" , e . toString ( ) ) ; return false ; } }

Escribe los contenidos de esta cabedera en caché a la corriente de salida especificada.


public static int pow  ( final int k , final int e ) throws MathIllegalArgumentException , MathRuntimeException  { if ( e < 0 ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . EXPONENT , e ) ; } int exp = e ; int result = 1 ; int k2p = k ; while ( true ) { if ( ( exp & 0x1 ) != 0 ) { result = mulAndCheck ( result , k2p ) ; } exp >>= 1 ; if ( exp == 0 ) { break ; } k2p = mulAndCheck ( k2p , k2p ) ; } return result ; }


protected WallCreateCommentQuery postId  ( int value ) { return unsafeParam ( "post_id" , value ) ; }


public static _Fields findByThriftIdOrThrow  ( int fieldId ) { _Fields fields = findByThriftId ( fieldId ) ; if ( fields == null ) throw new IllegalArgumentException ( "Field " + fieldId + " doesn't exist!" ) ; return fields ; }

Encuentre la constante _fields que coincida con FieldID, lanzando una excepción si no se encuentra.


NetNode agg3way  ( NetNode x , NetNode y , NetNode z , Stack < NetNode > amalgs , double [ ] [ ] D , NetNode netNodes , int num_nodes ) { NetNode u = new NetNode ( ) ; u . id = num_nodes + 1 ; u . ch1 = x ; u . ch2 = y ; NetNode v = new NetNode ( ) ; v . id = num_nodes + 2 ; v . ch1 = y ; v . ch2 = z ; u . next = x . next ; u . prev = x . prev ; if ( u . next != null ) u . next . prev = u ; if ( u . prev != null ) u . prev . next = u ; v . next = z . next ; v . prev = z . prev ; if ( v . next != null ) v . next . prev = v ; if ( v . prev != null ) v . prev . next = v ; if ( y . next != null ) y . next . prev = y . prev ; if ( y . prev != null ) y . prev . next = y . next ; u . nbr = v ; v . nbr = u ; for ( NetNode p = netNodes . next ; p != null ; p = p . next ) { D [ u . id ] [ p . id ] = D [ p . id ] [ u . id ] = ( 2.0 / 3.0 ) * D [ x . id ] [ p . id ] + D [ y . id ] [ p . id ] / 3.0 ; D [ v . id ] [ p . id ] = D [ p . id ] [ v . id ] = ( 2.0 / 3.0 ) * D [ z . id ] [ p . id ] + D [ y . id ] [ p . id ] / 3.0 ; } D [ u . id ] [ u . id ] = D [ v . id ] [ v . id ] = 0.0 ; amalgs . push ( u ) ; return u ; }

Agglomerado 3 nodos.Tenga en cuenta que esta versión no rescan num_nodes, necesita num_nodes + = 2 después de llamar esto!


private static String [ ] mapVolumes  ( ContainerDescription cd , HostSelection hostSelection ) { if ( cd . volumes == null || cd . volumes . length == 0 ) { return null ; } return Arrays . stream ( cd . volumes ) . map ( null ) . filter ( null ) . toArray ( null ) ; }

Toma volúmenes de contenedascripción en formato [/ host-directory-directory: / contenedor-directorio] o [namedvolume: / contenedor-directorio] y coloca el sufijo para la parte host del nombre del volumen.


public UnitValidationException ( Unit concerned , Body body , String strMessage , boolean isWarning ) { super ( concerned , strMessage , formatMsg ( strMessage , concerned , body ) , isWarning ) ; }


public static boolean isConformantSchemeName  ( String p_scheme ) { if ( p_scheme == null || p_scheme . trim ( ) . length ( ) == 0 ) { return false ; } if ( ! isAlpha ( p_scheme . charAt ( 0 ) ) ) { return false ; } char testChar ; int schemeLength = p_scheme . length ( ) ; for ( int i = 1 ; i < schemeLength ; ++ i ) { testChar = p_scheme . charAt ( i ) ; if ( ! isSchemeCharacter ( testChar ) ) { return false ; } } return true ; }

Determine si un esquema se ajusta a las reglas para un nombre de esquema.Un esquema es conforme a que comienza con un alfanumérico, y contiene solo alfanuméricos, '+', '-' y '.'.


public NGramGaussNormDocument ( ) { Graph = new DocumentNGramGaussNormGraph ( ) ; Histogram = new DocumentNGramHistogram ( ) ; }

Crea una nueva instancia, utilizando gráficos con pesos de borde normalizados de función de Gauss para vecinos.


@ Override public void startEntity  ( String name , XMLResourceIdentifier identifier , String encoding , Augmentations augs ) throws XNIException { super . startEntity ( name , identifier , encoding , augs ) ; if ( ! name . equals ( "[xml]" ) && fEntityScanner . isExternal ( ) ) { setScannerState ( SCANNER_STATE_TEXT_DECL ) ; } if ( fDocumentHandler != null && name . equals ( "[xml]" ) ) { fDocumentHandler . startDocument ( fEntityScanner , encoding , fNamespaceContext , null ) ; } }

Este método notifica al inicio de una entidad.El DTD tiene el pseudo nombre de los nombres de entidades de parámetros "[DTD]" comienzan con '%';y las entidades generales se especifican por su nombre.


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


WeakRef ( Remote impl )  { super ( impl , queue ) ; }

Crear una instancia registrada con la cola


private AudioInputStream synthesizeUsingF0Modification  ( int backchannelNumber , double [ ] pScalesArray , double [ ] tScalesArray , AudioFileFormat aft ) throws SynthesisException { if ( backchannelNumber > unitFileReader . getNumberOfUnits ( ) ) { throw new IllegalArgumentException ( "requesting unit should not be more than number of units" ) ; } if ( ! f0ContourImposeSupport ) { throw new SynthesisException ( "Mary configuration of this voice doesn't support intonation contour imposition" ) ; } VocalizationUnit bUnit = unitFileReader . getUnit ( backchannelNumber ) ; long start = bUnit . startTime ; int duration = bUnit . duration ; Datagram [ ] frames = null ; try { frames = audioTimeline . getDatagrams ( start , duration ) ; } catch ( IOException e ) { throw new SynthesisException ( "cannot get audio frames from timeline file " + e ) ; } assert frames != null : "Cannot generate audio from null frames" ; pScalesArray = MathUtils . arrayResize ( pScalesArray , frames . length ) ; tScalesArray = MathUtils . arrayResize ( tScalesArray , frames . length ) ; assert tScalesArray . length == pScalesArray . length ; assert frames . length == tScalesArray . length ; AudioFormat af ; if ( aft == null ) { float sampleRate = 16000.0F ; int sampleSizeInBits = 16 ; int channels = 1 ; boolean signed = true ; boolean bigEndian = false ; af = new AudioFormat ( sampleRate , sampleSizeInBits , channels , signed , bigEndian ) ; } else { af = aft . getFormat ( ) ; } double [ ] audio_double = ( new FDPSOLAProcessor ( ) ) . processDatagram ( frames , null , af , null , pScalesArray , tScalesArray , false ) ; double MaxSample = MathUtils . getAbsMax ( audio_double ) ; for ( int i = 0 ; i < audio_double . length ; i ++ ) { audio_double [ i ] = 0.3 * ( audio_double [ i ] / MaxSample ) ; } return ( new DDSAudioInputStream ( new BufferedDoubleDataSource ( audio_double ) , af ) ) ; }

Modificar el contorno de la entonación utilizando la tecnología HNM


public static boolean isNimbusGTKTheme  ( ) { return UIUtils . isNimbusGTKTheme ( ) ; }

Determina si la actual L & F es GTK usando el tema de Nimbus


protected void addAuxiliaryExceptionalEdges  ( ) { for ( Iterator < Trap > trapIt = body . getTraps ( ) . iterator ( ) ; trapIt . hasNext ( ) ; ) { Trap trap = trapIt . next ( ) ; Unit handler = trap . getHandlerUnit ( ) ; Unit pred = handler ; while ( this . unitToPreds . get ( pred ) . size ( ) > 0 ) pred = this . unitToPreds . get ( pred ) . get ( 0 ) ; handler2header . put ( handler , pred ) ; Unit ehnop ; if ( try2nop . containsKey ( trap . getBeginUnit ( ) ) ) ehnop = try2nop . get ( trap . getBeginUnit ( ) ) ; else { ehnop = new EHNopStmt ( ) ; try2nop . put ( trap . getBeginUnit ( ) , ehnop ) ; } } Hashtable < Unit , Boolean > nop2added = new Hashtable < Unit , Boolean > ( ) ; AddExceptionalEdge : for ( Iterator < Trap > trapIt = body . getTraps ( ) . iterator ( ) ; trapIt . hasNext ( ) ; ) { Trap trap = trapIt . next ( ) ; Unit b = trap . getBeginUnit ( ) ; Unit handler = trap . getHandlerUnit ( ) ; handler = handler2header . get ( handler ) ; if ( this . unitToPreds . containsKey ( handler ) ) { List < Unit > handlerPreds = this . unitToPreds . get ( handler ) ; for ( Iterator < Unit > preditr = handlerPreds . iterator ( ) ; preditr . hasNext ( ) ; ) if ( try2nop . containsValue ( preditr . next ( ) ) ) continue AddExceptionalEdge ; } else continue ; Unit ehnop = try2nop . get ( b ) ; if ( ! nop2added . containsKey ( ehnop ) ) { List < Unit > predsOfB = getPredsOf ( b ) ; List < Unit > predsOfehnop = new ArrayList < Unit > ( predsOfB ) ; for ( Iterator < Unit > itr = predsOfB . iterator ( ) ; itr . hasNext ( ) ; ) { Unit a = itr . next ( ) ; List < Unit > succsOfA = this . unitToSuccs . get ( a ) ; succsOfA . remove ( b ) ; succsOfA . add ( ( Unit ) ehnop ) ; } predsOfB . clear ( ) ; predsOfB . add ( ( Unit ) ehnop ) ; this . unitToPreds . put ( ( Unit ) ehnop , predsOfehnop ) ; } if ( ! this . unitToSuccs . containsKey ( ehnop ) ) this . unitToSuccs . put ( ehnop , new ArrayList < Unit > ( ) ) ; List < Unit > succsOfehnop = this . unitToSuccs . get ( ehnop ) ; if ( ! succsOfehnop . contains ( b ) ) succsOfehnop . add ( b ) ; succsOfehnop . add ( handler ) ; if ( ! this . unitToPreds . containsKey ( handler ) ) this . unitToPreds . put ( handler , new ArrayList < Unit > ( ) ) ; List < Unit > predsOfhandler = this . unitToPreds . get ( handler ) ; predsOfhandler . add ( ( Unit ) ehnop ) ; Chain < Unit > units = body . getUnits ( ) . getNonPatchingChain ( ) ; if ( ! units . contains ( ehnop ) ) units . insertBefore ( ( Unit ) ehnop , b ) ; nop2added . put ( ehnop , Boolean . TRUE ) ; } }

Agregue un borde de flujo excepcional para cada controlador desde el nodo auxiliar auxiliar correspondiente al comienzo del controlador.


@ SuppressWarnings ( "unchecked" ) private void restoreChangedIconsAndTexts  ( ) { Bundle restoredBundle = savedInstanceState ; if ( restoredBundle != null ) { if ( restoredBundle . containsKey ( CHANGED_ICON_AND_TEXT_BUNDLE_KEY ) ) { changedItemAndIconHashMap = ( HashMap < Integer , SpaceItem > ) restoredBundle . getSerializable ( CHANGED_ICON_AND_TEXT_BUNDLE_KEY ) ; if ( changedItemAndIconHashMap != null ) { SpaceItem spaceItem ; for ( int i = 0 ; i < changedItemAndIconHashMap . size ( ) ; i ++ ) { spaceItem = changedItemAndIconHashMap . get ( i ) ; spaceItems . get ( i ) . setItemIcon ( spaceItem . getItemIcon ( ) ) ; spaceItems . get ( i ) . setItemName ( spaceItem . getItemName ( ) ) ; } } } if ( restoredBundle . containsKey ( CENTRE_BUTTON_ICON_KEY ) ) { centreButtonIcon = restoredBundle . getInt ( CENTRE_BUTTON_ICON_KEY ) ; fab . setImageResource ( centreButtonIcon ) ; } if ( restoredBundle . containsKey ( SPACE_BACKGROUND_COLOR_KEY ) ) { int backgroundColor = restoredBundle . getInt ( SPACE_BACKGROUND_COLOR_KEY ) ; changeSpaceBackgroundColor ( backgroundColor ) ; } } }

Restaurar iconos cambiados, colores y textos de SaveInstance


public static Predicate < EmailData > isReceivedAfter  ( final DateTime dateTime ) { return null ; }

Un predicado que coincide con un mensaje de correo electrónico con un tiempo de recepción dado.


public static byte [ ] loadPemFileAsBytes  ( final String file ) throws IOException { final PemReader pemReader = new PemReader ( new FileReader ( file ) ) ; final PemObject pemObject = pemReader . readPemObject ( ) ; final byte [ ] content = pemObject . getContent ( ) ; logger . debug ( "Reading PEM file {}, type = {}" , file , pemObject . getType ( ) ) ; pemReader . close ( ) ; return content ; }

Carga un archivo PEM de la ubicación especificada.


@ Nullable public static NewBindingKey peelMapWithBuiltinValue  ( NewBindingKey key ) { Preconditions . checkState ( isMap ( key ) , String . format ( "Expect a map but got %s" , key ) ) ; ParameterizedTypeName parameterizedTypeName = ( ParameterizedTypeName ) key . getTypeName ( ) ; TypeName valueType = parameterizedTypeName . typeArguments . get ( 1 ) ; if ( hasBuiltinBinding ( valueType ) ) { TypeName mapKeyType = parameterizedTypeName . typeArguments . get ( 0 ) ; TypeName elementType = Iterables . getOnlyElement ( ( ( ParameterizedTypeName ) valueType ) . typeArguments ) ; TypeName newType = ParameterizedTypeName . get ( ClassName . get ( Map . class ) , mapKeyType , elementType ) ; return NewBindingKey . get ( newType , key . getQualifier ( ) ) ; } return null ; }

Si la clave viene con el valor del tipo que tiene un enlace incorporado de daga, devuelva uno con el tipo reemplazado por el elemento del tipo de valor original, nulo de otra manera.El encuadernación incorporado anidado como Lazy <Lazy <foo >>, proveedor <Lazy <foo >>, etc., no son compatibles.


public void process  ( Document doc ) { TreeWalker tw = DomUtils . createTreeWalker ( doc , MaryXML . PROSODY ) ; Element e = null ; while ( ( e = ( Element ) tw . nextNode ( ) ) != null ) { Log . d ( Mary . LOG , "Found prosody element around '" + DomUtils . getPlainTextBelow ( e ) + "'" ) ; boolean hasRateAttribute = e . hasAttribute ( "rate" ) ; boolean hasContourAttribute = e . hasAttribute ( "contour" ) ; boolean hasPitchAttribute = e . hasAttribute ( "pitch" ) ; NodeList nl = e . getElementsByTagName ( "ph" ) ; if ( nl . getLength ( ) == 0 ) { continue ; } if ( hasRateAttribute ) { applySpeechRateSpecifications ( nl , e . getAttribute ( "rate" ) ) ; } if ( hasPitchAttribute || hasContourAttribute ) { double [ ] f0Contour = getF0Contour ( nl ) ; double [ ] coeffs = Polynomial . fitPolynomial ( f0Contour , 1 ) ; double [ ] baseF0Contour = Polynomial . generatePolynomialValues ( coeffs , F0CONTOUR_LENGTH , 0 , 1 ) ; double [ ] diffF0Contour = new double [ F0CONTOUR_LENGTH ] ; for ( int i = 0 ; i < f0Contour . length ; i ++ ) { diffF0Contour [ i ] = f0Contour [ i ] - baseF0Contour [ i ] ; } if ( hasPitchAttribute ) { baseF0Contour = applyPitchSpecifications ( nl , baseF0Contour , e . getAttribute ( "pitch" ) ) ; } if ( hasContourAttribute ) { baseF0Contour = applyContourSpecifications ( nl , baseF0Contour , e . getAttribute ( "contour" ) ) ; } for ( int i = 0 ; i < f0Contour . length ; i ++ ) { f0Contour [ i ] = diffF0Contour [ i ] + baseF0Contour [ i ] ; } setModifiedContour ( nl , f0Contour ) ; } } }

Un método para modificar las modificaciones de la prosodia.


private void updateHeaderSeparator  ( ) { String timePattern = "" ; if ( SUtils . isApi_18_OrHigher ( ) ) { timePattern = DateFormat . getBestDateTimePattern ( mCurrentLocale , ( mIs24HourView ) ? "Hm" : "hm" ) ; } else { java . text . DateFormat timeFormat = java . text . DateFormat . getTimeInstance ( java . text . DateFormat . SHORT , mCurrentLocale ) ; if ( timeFormat instanceof SimpleDateFormat ) timePattern = ( ( SimpleDateFormat ) timeFormat ) . toPattern ( ) ; } final String separatorText ; final char [ ] hourFormats = { 'H' , 'h' , 'K' , 'k' } ; int hIndex = lastIndexOfAny ( timePattern , hourFormats ) ; if ( hIndex == - 1 ) { separatorText = ":" ; } else { separatorText = Character . toString ( timePattern . charAt ( hIndex + 1 ) ) ; } mSeparatorView . setText ( separatorText ) ; }

El separador de tiempo se define en el CLDR de Unicode y se supone que no debe ser ":".<p /> ver http://unicode.org/cldr/trac/browser/trunk/common/main <p /> Pasamos el "esqueleto" correcto, dependiendo de la vista de 12 o 24 horas y luego extraiga el separador como el personajeque es justo después del marcador de la hora en el patrón devuelto.


public void clearSpanningTree  ( ) { m_spanning = null ; }

Borrar el árbol de extinción almacenado internamente.Cualquier nueva llamada a un método GetSpanningTree () generará una nueva instancia de árbol de expansión según sea necesario.Este método es principalmente útil para las subclases.Por ejemplo, llamar a este método en una instancia de árbol, revertirá el estado al árbol enraizado original, de modo que una llamada SBusEquent para GetSpanningTree () devolverá el árbol de respaldo.


synchronized public boolean isExported  ( Remote obj ) { return _identityExportObjTable . containsKey ( new WeakKey ( obj ) ) ; }

Devuelve <código> Verdadero </ código> si se proporciona a Obj exportado por GenericExporter.


public Webster ( int port , String roots ) throws BindException { this . port = port ; initialize ( roots ) ; }


public boolean isApplicable  ( ) { ChartViewer chartViewer = ( ChartViewer ) getViewer ( ) ; return chartViewer . getChartDrawer ( ) != null && chartViewer . getChartDrawer ( ) . canShowXAxis ( ) ; }

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


protected void onCreate  ( ) { if ( mCalled ) { throw new IllegalAccessError ( "don't call #onCreate() directly, call #create()" ) ; } mCalled = true ; }

El primer método de ciclo de vida después de que se creó el presentador.¡Esto será llamado solo una vez!La vista no está adjunta en este estado.Pero hacer solicitudes de red es posible en este estado.


@ Override public void newTagValueSent  ( final long tagID ) { if ( sourceDataTags == null ) { LOGGER . error ( "Tried to add a new tag while field sourceDataTags was null." ) ; return ; } SourceDataTag tag = sourceDataTags . get ( tagID ) ; if ( tag == null ) { LOGGER . warn ( "Tried to count a tag not controlled by this class. (Tag-ID: '" + tagID + "')" ) ; } else { CounterMovingAverage average = movingAverages . get ( tagID ) ; if ( average == null ) { average = new CounterMovingAverage ( numberOfCounters ) ; movingAverages . put ( tagID , average ) ; } average . increaseCurrentCounter ( ) ; } }

Si la etiqueta con la ID proporcionada está controlada por este activador del contador, aumenta el contador actual de esta etiqueta.


private AudioInputStream synthesizeUsingF0Modification  ( int backchannelNumber , float [ ] pScalesArray , float [ ] pScalesTimes , float [ ] tScalesArray , float [ ] tScalesTimes , AudioFileFormat aft ) throws SynthesisException { if ( backchannelNumber > vHNMFeaturesReader . getNumberOfUnits ( ) ) { throw new IllegalArgumentException ( "requesting unit should not be more than number of units" ) ; } if ( ! f0ContourImposeSupport ) { throw new SynthesisException ( "Mary configuration of this voice doesn't support intonation contour imposition" ) ; } BasicProsodyModifierParams pmodParams = new BasicProsodyModifierParams ( tScalesArray , tScalesTimes , pScalesArray , pScalesTimes ) ; HntmSpeechSignal hnmSignal = vHNMFeaturesReader . getHntmSpeechSignal ( backchannelNumber ) ; HntmSynthesizer hs = new HntmSynthesizer ( ) ; HntmSynthesizedSignal xhat = hs . synthesize ( hnmSignal , null , null , pmodParams , null , analysisParams , synthesisParams ) ; AudioFormat af ; if ( aft == null ) { float sampleRate = 16000.0F ; int sampleSizeInBits = 16 ; int channels = 1 ; boolean signed = true ; boolean bigEndian = false ; af = new AudioFormat ( sampleRate , sampleSizeInBits , channels , signed , bigEndian ) ; } else { af = aft . getFormat ( ) ; } double [ ] audio_double = xhat . output ; double MaxSample = MathUtils . getAbsMax ( audio_double ) ; for ( int i = 0 ; i < audio_double . length ; i ++ ) { audio_double [ i ] = 0.3 * ( audio_double [ i ] / MaxSample ) ; } DDSAudioInputStream oais = new DDSAudioInputStream ( new BufferedDoubleDataSource ( audio_double ) , af ) ; return oais ; }


public static Bitmap rotateImage  ( Bitmap bitmap , String storagePath ) { Bitmap resultBitmap = bitmap ; try { ExifInterface exifInterface = new ExifInterface ( storagePath ) ; int orientation = exifInterface . getAttributeInt ( ExifInterface . TAG_ORIENTATION , 1 ) ; Matrix matrix = new Matrix ( ) ; if ( orientation == ExifInterface . ORIENTATION_FLIP_HORIZONTAL ) { matrix . postScale ( - 1.0f , 1.0f ) ; } else if ( orientation == ExifInterface . ORIENTATION_ROTATE_180 ) { matrix . postRotate ( 180 ) ; } else if ( orientation == ExifInterface . ORIENTATION_FLIP_VERTICAL ) { matrix . postScale ( 1.0f , - 1.0f ) ; } else if ( orientation == ExifInterface . ORIENTATION_TRANSPOSE ) { matrix . postRotate ( - 90 ) ; matrix . postScale ( 1.0f , - 1.0f ) ; } else if ( orientation == ExifInterface . ORIENTATION_ROTATE_90 ) { matrix . postRotate ( 90 ) ; } else if ( orientation == ExifInterface . ORIENTATION_TRANSVERSE ) { matrix . postRotate ( 90 ) ; matrix . postScale ( 1.0f , - 1.0f ) ; } else if ( orientation == ExifInterface . ORIENTATION_ROTATE_270 ) { matrix . postRotate ( 270 ) ; } resultBitmap = Bitmap . createBitmap ( bitmap , 0 , 0 , bitmap . getWidth ( ) , bitmap . getHeight ( ) , matrix , true ) ; if ( resultBitmap != bitmap ) { bitmap . recycle ( ) ; } } catch ( Exception exception ) { Log_OC . e ( "BitmapUtil" , "Could not rotate the image: " + storagePath ) ; } return resultBitmap ; }

Gire el mapa de bits de acuerdo con la orientación de EXIV.Cf.http://www.daveperrett.com/articles/2012/07/28/ExiF-orientation-handling-is-a-ghetto/


public Block ( Unit aHead , Unit aTail , Body aBody , int aIndexInMethod , int aBlockLength , BlockGraph aBlockGraph ) { mHead = aHead ; mTail = aTail ; mBody = aBody ; mIndexInMethod = aIndexInMethod ; mBlockLength = aBlockLength ; }

Construye un bloque en el contexto de un bloqueo de bloques, y cerrando las instancias corporales.


public synchronized void returnBuf  ( byte [ ] buf ) { if ( buf == null || buf . length > mSizeLimit ) { return ; } mBuffersByLastUse . add ( buf ) ; int pos = Collections . binarySearch ( mBuffersBySize , buf , BUF_COMPARATOR ) ; if ( pos < 0 ) { pos = - pos - 1 ; } mBuffersBySize . add ( pos , buf ) ; mCurrentSize += buf . length ; trim ( ) ; }

Devuelve un búfer a la piscina, desechando los buffers viejos si la piscina superaría su tamaño asignado.


public grammaticalityEstimator ( String sText , int iMinChar , int iMaxChar , int iCharWindow , int iMinWord , int iMaxWord , int iWordWindow ) { iMinCharNGram = iMinChar ; iMaxCharNGram = iMaxChar ; iMinWordNGram = iMinWord ; iMaxWordNGram = iMaxWord ; iWordDist = iWordWindow ; iCharDist = iCharWindow ; DistroDocs = new TreeMap < Integer , DistributionDocument > ( ) ; DistroWordDocs = new TreeMap < Integer , DistributionWordDocument > ( ) ; FullTextDataString = sText ; for ( int iCnt = iMinCharNGram ; iCnt <= iMaxCharNGram ; iCnt ++ ) { DistroDocs . put ( iCnt , new DistributionDocument ( iCharDist , iCnt ) ) ; } for ( int iCnt = iMinWordNGram ; iCnt <= iMaxWordNGram ; iCnt ++ ) { DistroWordDocs . put ( iCnt , new DistributionWordDocument ( iWordDist , iCnt ) ) ; } }

Crea una nueva instancia de gramaticityestimator, utilizando un texto dado para la capacitación.


private int detectType  ( String fileName ) throws IOException , FTPIllegalReplyException , FTPException  { int start = fileName . lastIndexOf ( '.' ) + 1 ; int stop = fileName . length ( ) ; if ( start > 0 && start < stop - 1 ) { String ext = fileName . substring ( start , stop ) ; ext = ext . toLowerCase ( ) ; if ( textualExtensionRecognizer . isTextualExt ( ext ) ) { return TYPE_TEXTUAL ; } else { return TYPE_BINARY ; } } else { return TYPE_BINARY ; } }

Este método detecta el tipo para una transferencia de archivos.


@ Override protected void synchronizeData  ( ) { needsSyncData ( false ) ; DeferredDocumentImpl ownerDocument = ( DeferredDocumentImpl ) this . ownerDocument ; name = ownerDocument . getNodeName ( fNodeIndex ) ; }

Sincroniza los datos (nombre y valor) para nodos rápidos.


private float [ ] calculatePlaneTransform  ( double [ ] point , double normal [ ] , float [ ] openGlTdepth ) { float [ ] openGlUp = new float [ ] { 0 , 1 , 0 , 0 } ; float [ ] depthTOpenGl = new float [ 16 ] ; Matrix . invertM ( depthTOpenGl , 0 , openGlTdepth , 0 ) ; float [ ] depthUp = new float [ 4 ] ; Matrix . multiplyMV ( depthUp , 0 , depthTOpenGl , 0 , openGlUp , 0 ) ; float [ ] depthTplane = matrixFromPointNormalUp ( point , normal , depthUp ) ; float [ ] openGlTplane = new float [ 16 ] ; Matrix . multiplyMM ( openGlTplane , 0 , openGlTdepth , 0 , depthTplane , 0 ) ; return openGlTplane ; }

Calcule la postura del plano en función de la posición y la orientación normal del plano y alinee con la gravedad.


public static int calculateHate  ( Creature creature , int value ) { Stat2 stat = new AdditionStat ( StatEnum . BOOST_HATE , value , creature , 0.1f ) ; return ( int ) ( creature . getGameStats ( ) . getStat ( StatEnum . BOOST_HATE , stat ) . getCurrent ( ) ) ; }

Odio basado en la estadística de Boost_Hate ahora utilizada solo de habilidades, probablemente necesite usar para un ataque regular


public void addFormLocation  ( String name ) { if ( name != null ) { this . formLocationSet . add ( name ) ; } }

Agrega un lugar de formulario a este contexto.


public boolean isRename  ( ) { return isRename ; }

Si el nombre de su cliente cambia.entonces esta función ocurre


protected boolean filterCheck  ( VisualItem item ) { if ( filter == null ) return true ; try { return filter . getBoolean ( item ) ; } catch ( Exception e ) { Logger . getLogger ( getClass ( ) . getName ( ) ) . warning ( e . getMessage ( ) + "\n" + StringLib . getStackTrace ( e ) ) ; return false ; } }

Realice una verificación de filtrado en el elemento de entrada.


@ Override public String asFieldName  ( ) { throw new ClassCastException ( ) ; }

Este método nunca debe ser llamado.Lanza una ClasscastException.


public synchronized boolean canThreadDecoding  ( Thread t ) { ThreadStatus status = mThreadStatus . get ( t ) ; if ( status == null ) { return true ; } boolean result = ( status . mState != State . CANCEL ) ; return result ; }

Los siguientes tres métodos se utilizan para realizar un seguimiento de qué hilo se está deshabilitando para la decodificación de mapa de bits.


public Editor edit  ( ) throws IOException  { return DiskLruCache . this . edit ( key , sequenceNumber ) ; }

Devuelve un editor para la entrada de esta instantánea, o NULL si la entrada ha cambiado desde que se creó esta instantánea o si otra edición está en progreso.


public static String nullSafeToString  ( long [ ] array ) { if ( array == null ) { return NULL_STRING ; } int length = array . length ; if ( length == 0 ) { return EMPTY_ARRAY ; } StringBuffer buffer = new StringBuffer ( ) ; for ( int i = 0 ; i < length ; i ++ ) { if ( i == 0 ) { buffer . append ( ARRAY_START ) ; } else { buffer . append ( ARRAY_ELEMENT_SEPARATOR ) ; } buffer . append ( array [ i ] ) ; } buffer . append ( ARRAY_END ) ; return buffer . toString ( ) ; }

Devuelva una representación de una cadena de los contenidos de la matriz especificada.La representación de la cadena consiste en una lista de los elementos de la matriz, encerrados en tirantes rizados (<código> "{}" </ código>).Los elementos adyacentes están separados por los caracteres <código> "," </ código> (una coma seguido de un espacio).Devuelve <código> "NULL" </ código> Si <code> Array </ code> es <code> null </ code>.


public boolean isOp  ( ) { return this . op ; }

Se obtiene si se deben incluir los valores predeterminados de OP


public boolean vta  ( ) { return soot . PhaseOptions . getBoolean ( options , "vta" ) ; }

VTA - Emulla el análisis de tipo variable.La configuración de VTA a VERDADERA tiene el efecto de establecer basados en el campo, los tipos de sitios para los sitios, y Simplify-SCCs a VERDADERO, y en marcha-CG a FALSO, para simular el análisis de tipo variable, descrito en nuestro papel OopsLA 2000.Tenga en cuenta que el algoritmo difiere del VTA original en que maneja los elementos de la matriz con mayor precisión.


public static FloatBuffer createVector2Buffer  ( FloatBuffer buf , int vertices ) { if ( buf != null && buf . limit ( ) == 2 * vertices ) { buf . rewind ( ) ; return buf ; } return createFloatBuffer ( 2 * vertices ) ; }

Cree un nuevo flotador de un tamaño apropiado para mantener el número especificado de datos de objetos vectoriales solo si el búfer dado si no es el tamaño correcto.


@ Override protected void synchronizeData  ( ) { needsSyncData ( false ) ; DeferredDocumentImpl ownerDocument = ( DeferredDocumentImpl ) this . ownerDocument ; name = ownerDocument . getNodeName ( fNodeIndex ) ; publicId = ownerDocument . getNodeValue ( fNodeIndex ) ; systemId = ownerDocument . getNodeURI ( fNodeIndex ) ; int extraDataIndex = ownerDocument . getNodeExtra ( fNodeIndex ) ; ownerDocument . getNodeType ( extraDataIndex ) ; notationName = ownerDocument . getNodeName ( extraDataIndex ) ; version = ownerDocument . getNodeValue ( extraDataIndex ) ; encoding = ownerDocument . getNodeURI ( extraDataIndex ) ; int extraIndex2 = ownerDocument . getNodeExtra ( extraDataIndex ) ; baseURI = ownerDocument . getNodeName ( extraIndex2 ) ; inputEncoding = ownerDocument . getNodeValue ( extraIndex2 ) ; }

Sincronizar los datos de la entidad.Esto es especial debido a la forma en que la versión "rápida" almacena la información.


@ Override public int hashCode  ( ) { final int prime = 31 ; int result = 1 ; result = prime * result + ( ( getId ( ) == null ) ? 0 : getId ( ) . hashCode ( ) ) ; result = prime * result + ( ( getParamKey ( ) == null ) ? 0 : getParamKey ( ) . hashCode ( ) ) ; result = prime * result + ( ( getParamValue ( ) == null ) ? 0 : getParamValue ( ) . hashCode ( ) ) ; result = prime * result + ( ( getCatalogId ( ) == null ) ? 0 : getCatalogId ( ) . hashCode ( ) ) ; result = prime * result + ( ( getRemark ( ) == null ) ? 0 : getRemark ( ) . hashCode ( ) ) ; result = prime * result + ( ( getEnable ( ) == null ) ? 0 : getEnable ( ) . hashCode ( ) ) ; result = prime * result + ( ( getCreateBy ( ) == null ) ? 0 : getCreateBy ( ) . hashCode ( ) ) ; result = prime * result + ( ( getCreateTime ( ) == null ) ? 0 : getCreateTime ( ) . hashCode ( ) ) ; result = prime * result + ( ( getUpdateBy ( ) == null ) ? 0 : getUpdateBy ( ) . hashCode ( ) ) ; result = prime * result + ( ( getUpdateTime ( ) == null ) ? 0 : getUpdateTime ( ) . hashCode ( ) ) ; return result ; }

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


public static void v  ( Class < ? > clazz , String msg ) { if ( isDebug ) { Log . v ( clazz . getSimpleName ( ) , msg ) ; } }


protected boolean matchesAnyOf  ( Set < TokenKind > kinds ) { if ( kinds . contains ( currentToken ( ) ) ) { builder . advanceLexer ( ) ; return true ; } return false ; }

Consume el token actual IFF es uno de los tipos esperados.De lo contrario, devuelve FALSO


private void checkModified  ( ) { final long currentModifiedTime = file . lastModified ( ) ; if ( currentModifiedTime != lastModified ) { System . out . print ( "Modified config.json externally. Will be reloaded now." ) ; final String content = FileHelper . readFile ( file ) ; if ( content != null ) { json = new JSONObject ( content ) ; } lastModified = currentModifiedTime ; } }

Compruebe si el archivo fue modificado.(Diferentes "Últimas mododificadas")


@ Override public void publish  ( String topic , AWSIotQos qos , String payload , long timeout ) throws AWSIotException , AWSIotTimeoutException { super . publish ( topic , qos , payload , timeout ) ; }

Publica la carga útil a un tema determinado.Esta es una llamada de bloqueo, por lo que el hilo de llamada está bloqueado hasta que la operación de publicación haya tenido éxito, falló o el tiempo de espera especificado ha transcurrido.


public void resetZoom  ( ) { Iterator < FileFragment > entries = mCachedFragments . values ( ) . iterator ( ) ; while ( entries . hasNext ( ) ) { FileFragment fileFragment = ( FileFragment ) entries . next ( ) ; if ( fileFragment instanceof PreviewImageFragment ) { ( ( PreviewImageFragment ) fileFragment ) . getImageView ( ) . resetZoom ( ) ; } } }

Restablecer la imagen Zoom al valor predeterminado para cada Cachedfragments


public void toBufferedImageRGB  ( INDArray arr , BufferedImage image ) { if ( arr . rank ( ) < 3 ) throw new IllegalArgumentException ( "Arr must be 3d" ) ; image = scalingIfNeed ( image , arr . size ( - 2 ) , arr . size ( - 1 ) , true ) ; for ( int i = 0 ; i < image . getWidth ( ) ; i ++ ) { for ( int j = 0 ; j < image . getHeight ( ) ; j ++ ) { int r = arr . slice ( 0 ) . getInt ( i , j ) ; int g = arr . slice ( 1 ) . getInt ( i , j ) ; int b = arr . slice ( 2 ) . getInt ( i , j ) ; int a = 1 ; int col = ( a << 24 ) | ( r << 16 ) | ( g << 8 ) | b ; image . setRGB ( i , j , col ) ; } } }

Convierte la imagen dada a una imagen RGB


@ Override public void beforeFirst  ( ) { s . beforeFirst ( ) ; isLhsEmpty = ! s . next ( ) ; if ( ! isLhsEmpty ) resetIndex ( ) ; }

Posiciona la exploración antes del primer registro.Es decir, la exploración de LHS se colocará en su primer registro, y el índice se colocará antes del primer registro para el valor de unión.


public Math_Vector cpy  ( ) { return new Math_Vector ( x , y ) ; }


public TopNMetric ( String metricName ) { this . type = TopNMetricType . NUMERIC ; this . metricName = Optional . of ( metricName ) ; this . nested = Optional . empty ( ) ; this . previousStop = Optional . empty ( ) ; }

Construye un tipo numérico de la métrica dada con orden de clasificación predeterminada (descendiendo).


@ Override public double nextNormalizedDouble  ( ) { return SQRT3 * ( 2 * generator . nextDouble ( ) - 1.0 ) ; }

Generar un escalar aleatorio con la media nula y la desviación estándar de la unidad.<p> El número generado se distribuye uniformemente entre y SQRT; (3) y + & SQRT; (3).


public void highlightValue  ( float x , int dataSetIndex , int stackIndex ) { highlightValue ( new Highlight ( x , dataSetIndex , stackIndex ) , false ) ; }

Resalte el valor en la posición X dada en el conjunto de datos dado.Proporcionar -1 como DataSetIndex para deshacer todos los resaltados.


private File createCaptureFile  ( int encodingType ) { return createCaptureFile ( encodingType , "" ) ; }

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


@ Override public int scanLiteral  ( int quote , XMLString content ) throws IOException { if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } else if ( fCurrentEntity . position == fCurrentEntity . count - 1 ) { fCurrentEntity . ch [ 0 ] = fCurrentEntity . ch [ fCurrentEntity . count - 1 ] ; load ( 1 , false ) ; fCurrentEntity . startPosition = 0 ; fCurrentEntity . position = 0 ; } int offset = fCurrentEntity . position ; int c = fCurrentEntity . ch [ offset ] ; int newlines = 0 ; boolean external = fCurrentEntity . isExternal ( ) ; if ( c == '\n' || ( ( c == '\r' || c == 0x85 || c == 0x2028 ) && external ) ) { do { c = fCurrentEntity . ch [ fCurrentEntity . position ++ ] ; if ( ( c == '\r' ) && external ) { newlines ++ ; fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count ) { offset = 0 ; fCurrentEntity . baseCharOffset += ( fCurrentEntity . position - fCurrentEntity . startPosition ) ; fCurrentEntity . position = newlines ; fCurrentEntity . startPosition = newlines ; if ( load ( newlines , false ) ) { break ; } } int cc = fCurrentEntity . ch [ fCurrentEntity . position ] ; if ( cc == '\n' || cc == 0x85 ) { fCurrentEntity . position ++ ; offset ++ ; } else { newlines ++ ; } } else if ( c == '\n' || ( ( c == 0x85 || c == 0x2028 ) && external ) ) { newlines ++ ; fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count ) { offset = 0 ; fCurrentEntity . baseCharOffset += ( fCurrentEntity . position - fCurrentEntity . startPosition ) ; fCurrentEntity . position = newlines ; fCurrentEntity . startPosition = newlines ; if ( load ( newlines , false ) ) { break ; } } } else { fCurrentEntity . position -- ; break ; } } while ( fCurrentEntity . position < fCurrentEntity . count - 1 ) ; for ( int i = offset ; i < fCurrentEntity . position ; i ++ ) { fCurrentEntity . ch [ i ] = '\n' ; } int length = fCurrentEntity . position - offset ; if ( fCurrentEntity . position == fCurrentEntity . count - 1 ) { content . setValues ( fCurrentEntity . ch , offset , length ) ; return - 1 ; } } if ( external ) { while ( fCurrentEntity . position < fCurrentEntity . count ) { c = fCurrentEntity . ch [ fCurrentEntity . position ++ ] ; if ( c == quote || c == '%' || ! XML11Char . isXML11Content ( c ) || c == 0x85 || c == 0x2028 ) { fCurrentEntity . position -- ; break ; } } } else { while ( fCurrentEntity . position < fCurrentEntity . count ) { c = fCurrentEntity . ch [ fCurrentEntity . position ++ ] ; if ( ( c == quote && ! fCurrentEntity . literal ) || c == '%' || ! XML11Char . isXML11InternalEntityContent ( c ) ) { fCurrentEntity . position -- ; break ; } } } int length = fCurrentEntity . position - offset ; fCurrentEntity . columnNumber += length - newlines ; content . setValues ( fCurrentEntity . ch , offset , length ) ; if ( fCurrentEntity . position != fCurrentEntity . count ) { c = fCurrentEntity . ch [ fCurrentEntity . position ] ; if ( c == quote && fCurrentEntity . literal ) { c = - 1 ; } } else { c = - 1 ; } return c ; }

Escanea una gama de datos de valor de atributos, configurando los campos de la estructura XMLString, adecuadamente.<p /> <strong> Nota: </ strong> los personajes se consumen.<p /> <strong> Nota: </ strong> Este método no garantiza devolver la ejecución más larga de los datos del valor del atributo.Este método puede regresar antes del carácter de cotización debido a que llegue al final del búfer de entrada o cualquier otra razón.<p /> <strong> Nota: </ strong> Los campos contenidos en la estructura XMLString no están garantizados para permanecer válidos en las llamadas posteriores al escáner de la entidad.Por lo tanto, la persona que llama es responsable de utilizar de inmediato los datos de caracteres devueltos o hacer una copia de los datos de caracteres.


public static float calculateAspectRatio  ( Rect rect ) { final float aspectRatio = ( float ) rect . width ( ) / ( float ) rect . height ( ) ; return aspectRatio ; }

Calcula la relación de aspecto dada un rectángulo.


public void resetCache  ( ) { Cache . clear ( ) ; ElementAccessTime . clear ( ) ; CacheAccess . clear ( ) ; TimeCnt = Long . MIN_VALUE ; }


public boolean readBoolean  ( ) { String s = readString ( ) ; if ( s . equalsIgnoreCase ( "true" ) ) return true ; if ( s . equalsIgnoreCase ( "false" ) ) return false ; if ( s . equals ( "1" ) ) return true ; if ( s . equals ( "0" ) ) return false ; throw new InputMismatchException ( ) ; }

Lee el siguiente token de este flujo de entrada, lo analiza como un <tt> boolean </ tt> (interpretando ya sea <tt> "verdadero" </ tt> o <tt> "1" </ tt> como <tt> true</ tt>, y ya sea <tt> "falso" </ tt> o <tt> "0" </ tt> como <tt> falso </ tt>).


public AudioGetQuery ownerId  ( Integer value ) { return unsafeParam ( "owner_id" , value ) ; }

ID del usuario o comunidad que posee el archivo de audio.Use un valor negativo para designar un ID de comunidad.


public static ShortBuffer createShortBuffer  ( ShortBuffer buf , int size ) { if ( buf != null && buf . limit ( ) == size ) { buf . rewind ( ) ; return buf ; } buf = createShortBuffer ( size ) ; return buf ; }

Cree un nuevo cortometraje de un tamaño apropiado para mantener el número especificado de pantalones cortos solo si el búfer dado si no es el tamaño correcto.


public void writeToFile  ( String fileName ) throws IOException { FileWriter fw = new FileWriter ( fileName ) ; fw . append ( this . toString ( ) ) ; fw . close ( ) ; }

Escribe TextGrid al archivo de texto que puede ser utilizado por Praat


public boolean isClinit  ( ) { return this == CLINIT ; }

Devuelve VERDADERO si la llamada es el inicializador estático.


@ Override public void startStreamingConsumption  ( long timeout ) { jssc . start ( ) ; if ( timeout < 0 ) jssc . awaitTermination ( ) ; else jssc . awaitTermination ( timeout ) ; }


public int q  ( ) { String s = soot . PhaseOptions . getString ( options , "q" ) ; if ( s . equalsIgnoreCase ( "auto" ) ) return q_auto ; if ( s . equalsIgnoreCase ( "trad" ) ) return q_trad ; if ( s . equalsIgnoreCase ( "bdd" ) ) return q_bdd ; if ( s . equalsIgnoreCase ( "debug" ) ) return q_debug ; if ( s . equalsIgnoreCase ( "trace" ) ) return q_trace ; if ( s . equalsIgnoreCase ( "numtrace" ) ) return q_numtrace ; throw new RuntimeException ( "Invalid value " + s + " of phase option q" ) ; }

Implementación de la lista de trabajo: seleccione la implementación de la cola.Seleccione la implementación de las listas de trabajo que se utilizarán en la paleta.


public boolean isModified  ( ) { return myOriginalEnabled != mySource . isEnabled ( ) || ! Objects . equal ( myOriginalName , mySource . getDisplayName ( ) ) ; }

Determine si esta fuente ha sido modificada (y debemos mostrar aplicar / restablecer).


private void mapSingleClass  ( Element ele ) { String key = ele . getTagName ( ) ; List < String > ancestors = new ArrayList < > ( ) ; Node directAncestor = ele . getParentNode ( ) ; while ( ( null != directAncestor ) && ( directAncestor instanceof Element ) && ( directAncestor != this . classesRoot ) ) { ancestors . add ( ( ( Element ) directAncestor ) . getTagName ( ) ) ; directAncestor = directAncestor . getParentNode ( ) ; } this . getAncestorsMap ( ) . put ( key , ancestors ) ; }

Crea mapas para la clase dada en los mapas de antepasados.


public ResourcesPoet addAttr  ( Attr attr ) { Element element = document . createElement ( "attr" ) ; element . setAttribute ( "name" , attr . name ) ; if ( attr . formats != null && ! attr . formats . isEmpty ( ) ) { String formatString = "" ; for ( Attr . Format format : attr . formats ) { formatString = formatString + format . toString ( ) + "|" ; } formatString = formatString . substring ( 0 , formatString . length ( ) - 1 ) ; element . setAttribute ( "format" , formatString ) ; } resourceElement . appendChild ( element ) ; return this ; }


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

Edad máxima de ubicación detectada.Si es menos de esta cantidad de milisegundos aprobados desde la última respuesta de la geolocalización, ubicarse devolverá una ubicación en caché.</BR> Predeterminado 0


public CatchOptions maxPokeballs  ( int maxPokeballs ) { if ( maxPokeballs <= 1 ) maxPokeballs = - 1 ; this . maxPokeballs = maxPokeballs ; return this ; }

Establecer un número máximo de Pokeballs


public UsersGetSubscriptionsQueryWithExtended ( VkApiClient client , UserActor actor ) { super ( client , "users.getSubscriptions" , GetSubscriptionsExtendedResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; extended ( true ) ; }

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


public boolean isRefreshEnabled  ( ) { return mRefreshEnabled ; }

¿Se habilita la función de actualización?


public void run  ( ) { if ( script . isAsynchronous ( ) ) { ThreadingUtils . logThreadStarting ( "Script " + script . getName ( ) ) ; } script . touch ( ) ; runningThread = Thread . currentThread ( ) ; boolean firstRun = true ; while ( firstRun || ( script . isRepeat ( ) && ! ScriptRunningState . STOPPED . equals ( script . getStatus ( ) ) ) ) { logger . debug ( "Running [{}] script: first run = {}, repeat = {}, state = {}" , script . getName ( ) , firstRun , script . isRepeat ( ) , script . getStatus ( ) ) ; firstRun = false ; changeState ( ScriptRunningState . RUNNING ) ; if ( script . isAsynchronous ( ) ) { new Thread ( new ScriptHealthDetector ( eventBus , script , executor ) ) . start ( ) ; } try { runScript ( ) ; } catch ( Exception e ) { changeState ( ScriptRunningState . FAILED ) ; setLastThrownException ( e ) ; logger . error ( "Script execution exception" , e ) ; break ; } if ( script . isRepeat ( ) ) { logger . debug ( "Re-running script {}" , script . getName ( ) ) ; } } script . stop ( ) ; if ( script . isAsynchronous ( ) ) { ThreadingUtils . logThreadEnding ( ) ; } }

Se ejecuta una o en un bucle si se establece el indicador de repetición.


protected ZebraRolloverStrategy ( final int minIndex , final int maxIndex , final boolean useMax , final int compressionLevel , final StrSubstitutor subst ) { this . minIndex = minIndex ; this . maxIndex = maxIndex ; this . useMax = useMax ; this . compressionLevel = compressionLevel ; this . subst = subst ; }


protected boolean needInputMethod  ( ) { return false ; }

Devuelve si la preferencia debe mostrar un método de entrada suave cuando se muestre el cuadro de diálogo.El valor predeterminado es falso.Las subclases deben anular este método si necesitan el método de entrada suave que se menciona automáticamente.


public static boolean dateIsValid  ( String date , Locale locale ) { return DateValidator . getInstance ( ) . isValid ( date , locale ) ; }

Valida si una cadena de fecha es válida para la configuración regional dada.


public Object nextEntity  ( char ampersand ) throws JSONException { StringBuilder sb = new StringBuilder ( ) ; for ( ; ; ) { char c = next ( ) ; if ( Character . isLetterOrDigit ( c ) || c == '#' ) { sb . append ( Character . toLowerCase ( c ) ) ; } else if ( c == ';' ) { break ; } else { throw syntaxError ( "Missing ';' in XML entity: &" + sb ) ; } } String string = sb . toString ( ) ; Object object = entity . get ( string ) ; return object != null ? object : ampersand + string + ";" ; }

Devuelve la siguiente entidad.Estas entidades se traducen a caracteres: <CÓDIGO> Y AMP;y apos;& gt;& lt;& quot; </ código>.


public ThisRef newThisRef  ( RefType t ) { return new ThisRef ( t ) ; }

Construye un trozo de gramática de estofref (reformo).


@ Override public void onReceivedError  ( WebView view , int errorCode , String description , String failingUrl ) { if ( ! isCurrentlyLoading ) { return ; } LOG . d ( TAG , "CordovaWebViewClient.onReceivedError: Error code=%s Description=%s URL=%s" , errorCode , description , failingUrl ) ; if ( errorCode == WebViewClient . ERROR_UNSUPPORTED_SCHEME ) { parentEngine . client . clearLoadTimeoutTimer ( ) ; if ( view . canGoBack ( ) ) { view . goBack ( ) ; return ; } else { super . onReceivedError ( view , errorCode , description , failingUrl ) ; } } parentEngine . client . onReceivedError ( errorCode , description , failingUrl ) ; }

Reportar un error a la aplicación host.Estos errores son irrecuperables (es decir, el principal recurso no está disponible).El parámetro de código de error corresponde a una de las constantes ERROR_ *.


private void initModel  ( Activity a ) { this . collectionsModel = new CollectionsObject ( a ) ; this . loadModel = new LoadObject ( LoadObject . LOADING_STATE ) ; this . scrollModel = new ScrollObject ( ) ; }


public BlockingQueueCompiledScriptPoolFactory ( ) { this  ( DEFAULT_SIZE ) ; }

Construye una nueva cola de bloqueo Compiled Script Pool con el tamaño predeterminado de <Code> 5 </ Code>.


public synchronized Map < D , EdgeFunction < L > > forwardLookup  ( D sourceVal , N target ) { assert sourceVal != null ; assert target != null ; Map < D , EdgeFunction < L > > res = nonEmptyForwardLookup . get ( sourceVal , target ) ; if ( res == null ) return Collections . emptyMap ( ) ; return res ; }

Devoluciones, para un valor de origen dado y una declaración de destino todos los valores de destino asociados, y para cada función de borde asociado.El valor de retorno es un mapeo del valor objetivo para funcionar.


public static Map < String , Object > addOrderItemShipGroup  ( DispatchContext dctx , Map < String , Object > context ) { Delegator delegator = dctx . getDelegator ( ) ; Locale locale = ( Locale ) context . get ( "locale" ) ; Map < String , Object > result = ServiceUtil . returnSuccess ( ) ; String orderId = ( String ) context . get ( "orderId" ) ; String mainErrorMessage = UtilProperties . getMessage ( resource_error , "OrderUnableToAddOISGToOrder" , locale ) ; Map < String , Object > createOrderItemShipGroupMap = null ; try { createOrderItemShipGroupMap = dctx . makeValidContext ( "createOrderItemShipGroup" , "IN" , context ) ; } catch ( GenericServiceException gse ) { String errMsg = mainErrorMessage + gse . toString ( ) ; return ServiceUtil . returnError ( errMsg ) ; } try { String carrierPartyId = ( String ) context . get ( "carrierPartyId" ) ; GenericValue carrierRole = EntityQuery . use ( delegator ) . from ( "PartyRole" ) . where ( "partyId" , carrierPartyId , "roleTypeId" , "CARRIER" ) . cache ( ) . queryOne ( ) ; if ( UtilValidate . isNotEmpty ( carrierPartyId ) && UtilValidate . isEmpty ( carrierRole ) ) { String errMsg = mainErrorMessage + UtilProperties . getMessage ( resource_error , "OrderCartShipGroupPartyCarrierNotFound" , UtilMisc . toMap ( "partyId" , carrierPartyId ) , locale ) ; return ServiceUtil . returnError ( errMsg ) ; } String shipmentMethodTypeId = ( String ) context . get ( "shipmentMethodTypeId" ) ; if ( UtilValidate . isNotEmpty ( shipmentMethodTypeId ) ) { if ( shipmentMethodTypeId . indexOf ( "_o_" ) == - 1 ) { GenericValue shipmentMethod = EntityQuery . use ( delegator ) . from ( "CarrierShipmentMethod" ) . where ( "partyId" , carrierPartyId , "roleTypeId" , "CARRIER" , "shipmentMethodTypeId" , shipmentMethodTypeId ) . cache ( ) . queryOne ( ) ; if ( UtilValidate . isEmpty ( shipmentMethod ) ) { String errMsg = mainErrorMessage + UtilProperties . getMessage ( resource_error , "OrderCartShipGroupShipmentMethodNotFound" , UtilMisc . toMap ( "shipmentMethodTypeId" , shipmentMethodTypeId ) , locale ) ; return ServiceUtil . returnError ( errMsg ) ; } } else { String [ ] carrierShipmentMethod = shipmentMethodTypeId . split ( "_o_" ) ; if ( carrierShipmentMethod . length == 2 ) { shipmentMethodTypeId = carrierShipmentMethod [ 0 ] ; carrierPartyId = carrierShipmentMethod [ 1 ] ; } context . put ( "carrierPartyId" , carrierPartyId ) ; context . put ( "shipmentMethodTypeId" , shipmentMethodTypeId ) ; } } List < GenericValue > oisgs = EntityQuery . use ( delegator ) . from ( "OrderItemShipGroup" ) . where ( "orderId" , orderId ) . orderBy ( "shipGroupSeqId DESC" ) . queryList ( ) ; if ( UtilValidate . isNotEmpty ( oisgs ) ) { GenericValue oisg = EntityUtil . getFirst ( oisgs ) ; if ( UtilValidate . isEmpty ( carrierPartyId ) && UtilValidate . isEmpty ( shipmentMethodTypeId ) ) { createOrderItemShipGroupMap . put ( "shipmentMethodTypeId" , oisg . get ( "shipmentMethodTypeId" ) ) ; createOrderItemShipGroupMap . put ( "carrierPartyId" , oisg . get ( "carrierPartyId" ) ) ; createOrderItemShipGroupMap . put ( "carrierRoleTypeId" , oisg . get ( "carrierRoleTypeId" ) ) ; createOrderItemShipGroupMap . put ( "contactMechId" , oisg . get ( "contactMechId" ) ) ; } } } catch ( GenericEntityException gee ) { String errMsg = mainErrorMessage + gee . toString ( ) ; return ServiceUtil . returnError ( errMsg ) ; } if ( UtilValidate . isEmpty ( createOrderItemShipGroupMap . get ( "maySplit" ) ) ) { createOrderItemShipGroupMap . put ( "maySplit" , "N" ) ; } if ( UtilValidate . isEmpty ( createOrderItemShipGroupMap . get ( "isGift" ) ) ) { createOrderItemShipGroupMap . put ( "isGift" , "N" ) ; } try { result = dctx . getDispatcher ( ) . runSync ( "createOrderItemShipGroup" , createOrderItemShipGroupMap ) ; } catch ( GenericServiceException gse ) { String errMsg = mainErrorMessage + gse . toString ( ) ; return ServiceUtil . returnError ( errMsg ) ; } if ( ServiceUtil . isError ( result ) ) { String errMsg = UtilProperties . getMessage ( resource , mainErrorMessage + result . get ( "errorMessage" ) , locale ) ; return ServiceUtil . returnError ( errMsg ) ; } return result ; }


void writeDownloadEntity  ( DownloadMissionEntity entity ) { deleteDownloadEntity ( entity ) ; new DaoMaster ( openHelper . getWritableDatabase ( ) ) . newSession ( ) . getDownloadMissionEntityDao ( ) . insert ( entity ) ; }


public void adjustAspectRatio  ( int videoWidth , int videoHeight ) { int viewWidth = getWidth ( ) ; int viewHeight = getHeight ( ) ; double aspectRatio = ( double ) videoHeight / videoWidth ; int newWidth , newHeight ; if ( viewHeight > ( int ) ( viewWidth * aspectRatio ) ) { newWidth = viewWidth ; newHeight = ( int ) ( viewWidth * aspectRatio ) ; } else { newWidth = ( int ) ( viewHeight / aspectRatio ) ; newHeight = viewHeight ; } int xoff = ( viewWidth - newWidth ) / 2 ; int yoff = ( viewHeight - newHeight ) / 2 ; Log . v ( TAG , "video=" + videoWidth + "x" + videoHeight + " view=" + viewWidth + "x" + viewHeight + " newView=" + newWidth + "x" + newHeight + " off=" + xoff + "," + yoff ) ; Matrix txform = new Matrix ( ) ; getTransform ( txform ) ; txform . setScale ( ( float ) newWidth / viewWidth , ( float ) newHeight / viewHeight ) ; txform . postTranslate ( xoff , yoff ) ; setTransform ( txform ) ; }

Establece la transformación de TextureView para preservar la relación de aspecto del video.


@ Override public void undoAction  ( UndoInterface undoRedoObject ) { if ( ( dateModel != null ) && ( timePicker != null ) && ( undoRedoObject != null ) ) { if ( undoRedoObject . getOldValue ( ) instanceof Date ) { Date oldValue = ( Date ) undoRedoObject . getOldValue ( ) ; dateModel . setValue ( oldValue ) ; timePicker . setValue ( oldValue ) ; } } }


public void fromAngleNormalAxis  ( float angle , Vector3f axis ) { zero ( ) ; m33 = 1 ; float fCos = FastMath . cos ( angle ) ; float fSin = FastMath . sin ( angle ) ; float fOneMinusCos = ( ( float ) 1.0 ) - fCos ; float fX2 = axis . x * axis . x ; float fY2 = axis . y * axis . y ; float fZ2 = axis . z * axis . z ; float fXYM = axis . x * axis . y * fOneMinusCos ; float fXZM = axis . x * axis . z * fOneMinusCos ; float fYZM = axis . y * axis . z * fOneMinusCos ; float fXSin = axis . x * fSin ; float fYSin = axis . y * fSin ; float fZSin = axis . z * fSin ; m00 = fX2 * fOneMinusCos + fCos ; m01 = fXYM - fZSin ; m02 = fXZM + fYSin ; m10 = fXYM + fZSin ; m11 = fY2 * fOneMinusCos + fCos ; m12 = fYZM - fXSin ; m20 = fXZM - fYSin ; m21 = fYZM + fXSin ; m22 = fZ2 * fOneMinusCos + fCos ; }

<CÓDIGO> FROMANGLENORMALAXIS </ CODE> Establece esta matriz4F a los valores especificados por un ángulo y un eje normalizado de rotación.


public void handleEntryExpiredCoreSA  ( IEntryHolder entry , ServerTransaction txn , boolean fromReplication ) throws Exception { boolean anyNotityExpiredTemplates = _cacheManager . getTemplatesManager ( ) . anyNotifyLeaseTemplates ( ) ; if ( ! anyNotityExpiredTemplates ) return ; Context context = null ; try { context = _cacheManager . getCacheContext ( ) ; context . setFromReplication ( fromReplication ) ; NotifyContextsHolder notifyContextsHolder = new NotifyContextsHolder ( null , entry , context . getOperationID ( ) , NotifyActionType . NOTIFY_LEASE_EXPIRATION ) ; _engine . getTemplateScanner ( ) . scanNotifyTemplates ( notifyContextsHolder , context , null , FifoSearch . NO ) ; } finally { _cacheManager . freeCacheContext ( context ) ; } }


@ RequestMapping ( value = "/" , method = POST , produces = APPLICATION_JSON_VALUE ) public ResponseEntity < BookDTO > create  ( @ RequestBody BookDTO bookDTO ) throws URISyntaxException { log . debug ( "Create BookDTO : {}" , bookDTO ) ; if ( bookDTO . isIdSet ( ) ) { return ResponseEntity . badRequest ( ) . header ( "Failure" , "Cannot create Book with existing ID" ) . body ( null ) ; } BookDTO result = bookDTOService . save ( bookDTO ) ; return ResponseEntity . created ( new URI ( "/api/books/" + result . id ) ) . body ( result ) ; }


public String cleanTextValue  ( String text ) { if ( text != null ) { return text . trim ( ) ; } else { return text ; } }

El método limpio abstracto, debe llamarse valores de texto individuales.<P> Esto debe aplicarse a todos los valores de texto antes de pasar a FTL, pero también está disponible para FTL.


public WheelVerticalView ( Context context ) { this ( context , null ) ; }

Crea una nueva visión vertical de la rueda.


@ Override public boolean retainAll  ( Collection < ? > collection ) { boolean removed = false ; for ( int i = mSize - 1 ; i >= 0 ; i -- ) { if ( ! collection . contains ( mArray [ i ] ) ) { removeAt ( i ) ; removed = true ; } } return removed ; }

Retire todos los valores en el conjunto de matriz que hacen <b> no </ b> existen en la colección dada.


public TypeNode typeNode  ( Type type ) { if ( type == null || ! ( type instanceof PrimType || type instanceof RefType ) ) { throw new InternalTypingException ( type ) ; } TypeNode typeNode = typeNodeMap . get ( type ) ; if ( typeNode == null ) { System . err . println ( type ) ; throw new InternalTypingException ( ) ; } return typeNode ; }

Obtenga el nodo de tipo para el tipo dado.


public List < T > toList  ( ) { return Arrays . asList ( Arrays . copyOf ( elements , numElements ) ) ; }

Devuelve una lista de elementos no respaldados en este conjunto.


public SearchGetHintsQuery ( VkApiClient client , UserActor actor ) { super ( client , "search.getHints" , Utils . buildParametrizedType ( List . class , Hint . class ) ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


public static void main  ( String [ ] args ) throws IOException { ParseSinaXmlData parser = new ParseSinaXmlData ( ) ; parser . buildRawText ( "res/sina_data/alldata.txt" , "res/sina_data/SinaRawText.txt" ) ; }

<p> Título: Main </ p> <p> Descripción: <p>


public synchronized BookKeeperClientBuilder dlConfig  ( DistributedLogConfiguration dlConfig ) { this . dlConfig = dlConfig ; return this ; }

<i> Dlconfig </ i> utilizado para configurar el cliente del contante.


public RequestHandle post  ( Context context , String url , Header [ ] headers , RequestParams params , String contentType , ResponseHandlerInterface responseHandler ) { HttpEntityEnclosingRequestBase request = new HttpPost ( url ) ; if ( params != null ) request . setEntity ( paramsToEntity ( params , responseHandler ) ) ; if ( headers != null ) request . setHeaders ( headers ) ; return sendRequest ( httpClient , httpContext , request , contentType , responseHandler , context ) ; }

Realice una solicitud de publicación HTTP y rastree el contexto Android que inició la solicitud.Establecer encabezados solo para esta solicitud


public static String removeNumeric  ( String str ) { return removeRegex ( str , "[\\d]" ) ; }


public void delete  ( ) throws IOException  { close ( ) ; deleteContents ( directory ) ; }

Cierra el caché y elimina todos sus valores almacenados.Esto eliminará todos los archivos en el directorio de caché, incluidos los archivos que no fueron creados por el caché.


private Writer initWriter  ( File file , Charset encoding , boolean append ) throws IOException { boolean fileExistedAlready = file . exists ( ) ; OutputStream stream = null ; Writer writer = null ; try { stream = new FileOutputStream ( file . getAbsolutePath ( ) , append ) ; writer = new OutputStreamWriter ( stream , Charsets . toCharset ( encoding ) ) ; } catch ( IOException ex ) { IOUtils . closeQuietly ( writer ) ; IOUtils . closeQuietly ( stream ) ; FileUtils . deleteQuietly ( lockFile ) ; if ( fileExistedAlready == false ) { FileUtils . deleteQuietly ( file ) ; } throw ex ; } catch ( RuntimeException ex ) { IOUtils . closeQuietly ( writer ) ; IOUtils . closeQuietly ( stream ) ; FileUtils . deleteQuietly ( lockFile ) ; if ( fileExistedAlready == false ) { FileUtils . deleteQuietly ( file ) ; } throw ex ; } return writer ; }

Inicializa el escritor de archivos envueltos.Asegúrese de que ocurra una limpieza si la creación del escritor falla.


private void addToken  ( int token ) { try { fTokens [ fTokenCount ] = token ; } catch ( ArrayIndexOutOfBoundsException ex ) { int [ ] oldList = fTokens ; fTokens = new int [ fTokenCount << 1 ] ; System . arraycopy ( oldList , 0 , fTokens , 0 , fTokenCount ) ; fTokens [ fTokenCount ] = token ; } fTokenCount ++ ; }


@ Override public void emptySLD  ( ) { String emptyFilename = "" ; SelectedSymbol . getInstance ( ) . setFilename ( emptyFilename ) ; SLDEditorFile . getInstance ( ) . setSLDData ( null ) ; dataSource . reset ( ) ; SelectedSymbol . getInstance ( ) . setSld ( null ) ; uiMgr . populateUI ( 0 ) ; }


public JobNotFoundException ( String message , Throwable cause ) { super ( message , cause ) ; }

Construya una Concepción de JobNotFoundException con la causa y el mensaje especificados.


public JType apply  ( String nodeName , JsonNode schemaNode , JClassContainer generatableType , Schema schema ) { if ( schemaNode . has ( "$ref" ) ) { final String ref = schemaNode . get ( "$ref" ) . asText ( ) ; schema = ruleFactory . getSchemaStore ( ) . create ( schema , ref ) ; schemaNode = schema . getContent ( ) ; if ( schema . isGenerated ( ) ) { return schema . getJavaType ( ) ; } if ( ref . startsWith ( "#/" ) ) { nodeName = ref . substring ( ref . lastIndexOf ( "/" ) + 1 ) ; } return apply ( nodeName , schemaNode , generatableType , schema ) ; } JType javaType ; if ( schemaNode . has ( "enum" ) ) { javaType = ruleFactory . getEnumRule ( ) . apply ( nodeName , schemaNode , generatableType , schema ) ; } else { javaType = ruleFactory . getTypeRule ( ) . apply ( nodeName , schemaNode , generatableType . getPackage ( ) , schema ) ; } schema . setJavaTypeIfEmpty ( javaType ) ; return javaType ; }

Aplica esta regla de esquema para tomar los pasos de generación de código requeridos.<p> En la raíz de un documento de esquema, se debe aplicar esta regla (los documentos de esquema contienen un esquema), pero también en muchos lugares dentro del documento.Cada propiedad de tipo "objeto" está definido por un esquema, el atributo de artículos de una matriz es un esquema, el atributo adicional de Proporros de un esquema es también un esquema.<p> Cuando el valor del esquema es un archivo ref, se supone que el URI REF se le aplica como una URL (a partir de la cual se leerá el contenido).Cuando se ha encontrado el URI REF antes, el tipo de Java raíz creado por ese esquema se reutilizará (los pasos de generación no se repetirán).


public boolean isCritical  ( ) { return true ; }

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


private static boolean validateNewSize  ( int level ) { return ! ( level < MIN_EXPAND || level > MAX_EXPAND ) ; }

Comprueba si el nuevo jugador cubo no es max


public Location add  ( Vector vec ) { this . x += vec . getX ( ) ; this . y += vec . getY ( ) ; this . z += vec . getZ ( ) ; return this ; }


@ Override public void onLoadContentProgress  ( int loadPercent ) { }

Devuelve el progreso del contenido de carga de la nube.


public static void main  ( String [ ] args ) { DefaultListener d = new DefaultListener ( ) ; File f = new File ( "/home/joe/d/workspace/" ) ; Map < String , FileVersion > map = new HashMap < String , FileVersion > ( ) ; d . cleanup ( f , map ) ; System . out . println ( map ) ; }


public int findIndexOfValue  ( String value ) { if ( value != null && mEntryValues != null ) { for ( int i = mEntryValues . length - 1 ; i >= 0 ; i -- ) { if ( mEntryValues [ i ] . equals ( value ) ) { return i ; } } } return - 1 ; }

Devuelve el índice del valor dado (en la matriz de valores de entrada).


public void removePendingFifoSearchObject  ( boolean disableInitialSearch ) { _pendingFifoSearch = null ; if ( disableInitialSearch ) resetInitialFifoSearchActive ( ) ; }

Retire el objeto de búsqueda pendiente y, si se solicita, desactive la nota de indicador de búsqueda inicial, se debe hacer cuando la plantilla está bloqueada


public String toXML  ( ) { if ( isResult ( ) ) { StringBuffer str = new StringBuffer ( 1000 ) ; str . append ( "<ConfigurationReport>\n" ) ; str . append ( "<id>" ) ; str . append ( this . id ) ; str . append ( "</id>\n" ) ; str . append ( "<name>" ) ; str . append ( this . name ) ; str . append ( "</name>\n" ) ; str . append ( "<user>" ) ; str . append ( this . user ) ; str . append ( "</user>\n" ) ; str . append ( "<status>" ) ; str . append ( this . status ) ; str . append ( "</status>\n" ) ; str . append ( "<status-description><![CDATA[" ) ; str . append ( this . statusDescription ) ; str . append ( "]]></status-description>\n" ) ; str . append ( "<timestamp>" ) ; str . append ( this . timestamp ) ; str . append ( "</timestamp>\n" ) ; str . append ( "<daq-reboot>" ) ; str . append ( this . processesToReboot ) ; str . append ( "</daq-reboot>\n" ) ; str . append ( "<ConfigurationElementReports>\n" ) ; Iterator < ConfigurationElementReport > it = this . elementReports . iterator ( ) ; while ( it . hasNext ( ) ) { str . append ( it . next ( ) . toXML ( ) ) ; } str . append ( "</ConfigurationElementReports>\n" ) ; str . append ( "</ConfigurationReport>\n" ) ; return str . toString ( ) ; } else { throw new UnsupportedOperationException ( "No XML report can be generated: this message is an intermediate response!" ) ; } }

Codifica el informe en XML, listo para enviar y visualizar en un navegador web en la aplicación cliente (use XSL proporcionado).


@ Override public void apply  ( NexusStreamParser np ) throws Exception { }


private void trace  ( VarNode node , PrintStream ps , HashSet < Node > visitedNodes , int level ) { if ( level < 1 ) return ; ps . println ( "\t" + translateLabel ( node ) ) ; Node [ ] succs = pag . simpleInvLookup ( node ) ; for ( int i = 0 ; i < succs . length ; i ++ ) { if ( visitedNodes . contains ( succs [ i ] ) ) continue ; ps . println ( "\t" + translateLabel ( succs [ i ] ) ) ; ps . println ( "\t" + translateEdge ( node , succs [ i ] , "assign" ) ) ; visitedNodes . add ( succs [ i ] ) ; trace ( ( VarNode ) succs [ i ] , ps , visitedNodes , level - 1 ) ; } succs = pag . allocInvLookup ( node ) ; for ( int i = 0 ; i < succs . length ; i ++ ) { if ( visitedNodes . contains ( succs [ i ] ) ) continue ; ps . println ( "\t" + translateLabel ( succs [ i ] ) ) ; ps . println ( "\t" + translateEdge ( node , succs [ i ] , "new" ) ) ; } succs = vmatches . get ( node ) ; if ( succs != null ) { for ( int i = 0 ; i < succs . length ; i ++ ) { if ( visitedNodes . contains ( succs [ i ] ) ) continue ; ps . println ( "\t" + translateLabel ( succs [ i ] ) ) ; ps . println ( "\t" + translateEdge ( node , succs [ i ] , "vmatch" ) ) ; trace ( ( VarNode ) succs [ i ] , ps , visitedNodes , level - 1 ) ; } } }


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

Infligió% de daño NUM0 en [% SkillTarget] mediante el uso de [% de habilidad].


public AudioPreProcessor ( AudioInputStream in , float sampleRate ) throws IllegalArgumentException { AudioFormat source , converted ; if ( in == null ) throw new IllegalArgumentException ( "the input stream must not be a null value" ) ; source = in . getFormat ( ) ; this . sampleRate = sampleRate ; if ( sampleRate < 0 || sampleRate > source . getSampleRate ( ) ) throw new IllegalArgumentException ( "the sample rate to convert to must be greater null and less or equal the sample rate of the input stream" ) ; this . in = convertToPCM ( in ) ; try { this . in = new ReducedAudioInputStream ( this . in , sampleRate ) ; } catch ( IllegalArgumentException iae ) { this . in = convertSampleRate ( this . in , sampleRate ) ; this . in = convertChannels ( this . in , 1 ) ; } converted = this . in . getFormat ( ) ; if ( converted . getSampleSizeInBits ( ) != 8 && converted . getSampleSizeInBits ( ) != 16 && converted . getSampleSizeInBits ( ) != 24 && converted . getSampleSizeInBits ( ) != 32 ) throw new IllegalArgumentException ( "the sample size of the input stream must be 8, 16, 24 or 32 bit" ) ; if ( converted . getFrameSize ( ) != ( converted . getSampleSizeInBits ( ) / 8 ) || converted . getSampleRate ( ) != sampleRate ) throw new IllegalArgumentException ( "the conversion is not supported" ) ; this . sampleRate = sampleRate ; this . frameSize = converted . getFrameSize ( ) ; this . isBigEndian = converted . isBigEndian ( ) ; dB_max = 6.0d * converted . getSampleSizeInBits ( ) ; this . normalise = ( double ) converted . getChannels ( ) * ( 1 << ( converted . getSampleSizeInBits ( ) - 1 ) ) ; this . scale = ( Math . pow ( 10 , dB_max / 20 ) ) / normalise ; }

Un audiopreprocesador encapsula un objeto AudioInputTream permitiendo un fácil acceso a los datos de audio.


public LayoutTest ( ) { initComponents  ( ) ; }


public static void overScrollBy  ( final PullToRefreshBase < ? > view , final int deltaX , final int scrollX , final int deltaY , final int scrollY , final int scrollRange , final int fuzzyThreshold , final float scaleFactor , final boolean isTouchEvent ) { final int deltaValue , currentScrollValue , scrollValue ; switch ( view . getPullToRefreshScrollDirection ( ) ) { case HORIZONTAL : deltaValue = deltaX ; scrollValue = scrollX ; currentScrollValue = view . getScrollX ( ) ; break ; case VERTICAL : default : deltaValue = deltaY ; scrollValue = scrollY ; currentScrollValue = view . getScrollY ( ) ; break ; } if ( view . isPullToRefreshOverScrollEnabled ( ) && ! view . isRefreshing ( ) ) { final Mode mode = view . getMode ( ) ; if ( mode . permitsPullToRefresh ( ) && ! isTouchEvent && deltaValue != 0 ) { final int newScrollValue = ( deltaValue + scrollValue ) ; if ( PullToRefreshBase . DEBUG ) { Log . d ( LOG_TAG , "OverScroll. DeltaX: " + deltaX + ", ScrollX: " + scrollX + ", DeltaY: " + deltaY + ", ScrollY: " + scrollY + ", NewY: " + newScrollValue + ", ScrollRange: " + scrollRange + ", CurrentScroll: " + currentScrollValue ) ; } if ( newScrollValue < ( 0 - fuzzyThreshold ) ) { if ( mode . showHeaderLoadingLayout ( ) ) { if ( currentScrollValue == 0 ) { view . setState ( State . OVERSCROLLING ) ; } view . setHeaderScroll ( ( int ) ( scaleFactor * ( currentScrollValue + newScrollValue ) ) ) ; } } else if ( newScrollValue > ( scrollRange + fuzzyThreshold ) ) { if ( mode . showFooterLoadingLayout ( ) ) { if ( currentScrollValue == 0 ) { view . setState ( State . OVERSCROLLING ) ; } view . setHeaderScroll ( ( int ) ( scaleFactor * ( currentScrollValue + newScrollValue - scrollRange ) ) ) ; } } else if ( Math . abs ( newScrollValue ) <= fuzzyThreshold || Math . abs ( newScrollValue - scrollRange ) <= fuzzyThreshold ) { view . setState ( State . RESET ) ; } } else if ( isTouchEvent && State . OVERSCROLLING == view . getState ( ) ) { view . setState ( State . RESET ) ; } } }

Método de ayudante para descifrar que encapsula toda la función necesaria.Esta es la versión avanzada de la llamada.


public Builder calculateSortedRank  ( String newColumnName , String sortOnColumn , WritableComparator comparator , boolean ascending ) { actionList . add ( new DataAction ( new CalculateSortedRank ( newColumnName , sortOnColumn , comparator , ascending ) ) ) ; return this ; }

CalculatesortedRank: calcule el rango de cada ejemplo, después de la clasificación del ejemplo.Por ejemplo, podríamos tener alguna columna numérica "puntuación", y queremos saber para el rango (orden de clasificación) para cada ejemplo, de acuerdo con esa columna.
 El rango de cada ejemplo (después de la clasificación) se agregará enUna nueva columna larga.La indexación se realiza de 0;Los ejemplos tendrán valores 0 a Datasetsize-1.

 Actualmente, CALCULATESORTETRANK solo se puede aplicar en datos estándar (es decir, no secuencia) Además, la implementación actual solo puede ordenar en una columna


public static Drawable tintDrawable  ( @ Nullable Drawable drawable , @ ColorInt int color ) { if ( drawable != null ) { drawable . setColorFilter ( color , PorterDuff . Mode . SRC_IN ) ; } return drawable ; }

Tintes un dibujable con el color proporcionado


public static void gatherMargins  ( Collection < ConstraintWidget > widgets , ArrayList < SnapCandidate > margins , int margin , boolean isVertical ) { margin = Math . abs ( margin ) ; if ( margin == 0 ) { return ; } ArrayList < SnapCandidate > foundMargins = new ArrayList < > ( ) ; for ( ConstraintWidget w1 : widgets ) { for ( ConstraintAnchor a1 : w1 . getAnchors ( ) ) { if ( ! a1 . isSideAnchor ( ) ) { continue ; } if ( a1 . isVerticalAnchor ( ) != isVertical ) { continue ; } for ( ConstraintWidget w2 : widgets ) { for ( ConstraintAnchor a2 : w2 . getAnchors ( ) ) { if ( ! a2 . isSideAnchor ( ) ) { continue ; } if ( ! a2 . isSimilarDimensionConnection ( a1 ) ) { continue ; } ConstraintHandle h1 = WidgetInteractionTargets . constraintHandle ( a1 ) ; ConstraintHandle h2 = WidgetInteractionTargets . constraintHandle ( a2 ) ; if ( h1 == null || h2 == null ) { continue ; } int currentMargin = h1 . getStraightDistanceFrom ( h2 ) ; if ( Math . abs ( currentMargin ) == margin ) { SnapCandidate candidate = new SnapCandidate ( ) ; candidate . source = a1 ; candidate . target = a2 ; candidate . margin = currentMargin ; foundMargins . add ( candidate ) ; } } } } } for ( SnapCandidate c1 : foundMargins ) { boolean insert = true ; for ( SnapCandidate c2 : margins ) { if ( ( Math . abs ( c1 . margin ) == Math . abs ( c2 . margin ) ) && ( ( c2 . source == c1 . target && c2 . target == c1 . source ) || ( c2 . source == c1 . source && c2 . target == c1 . target ) ) ) { insert = false ; break ; } if ( c1 . source . isSimilarDimensionConnection ( c2 . source ) && c1 . margin == c2 . margin ) { ConstraintHandle sourceHandle1 = WidgetInteractionTargets . constraintHandle ( c1 . source ) ; ConstraintHandle targetHandle1 = WidgetInteractionTargets . constraintHandle ( c1 . target ) ; ConstraintHandle sourceHandle2 = WidgetInteractionTargets . constraintHandle ( c2 . source ) ; ConstraintHandle targetHandle2 = WidgetInteractionTargets . constraintHandle ( c2 . target ) ; if ( c1 . source . isVerticalAnchor ( ) ) { if ( Math . min ( sourceHandle1 . getDrawY ( ) , targetHandle1 . getDrawY ( ) ) == Math . min ( sourceHandle2 . getDrawY ( ) , targetHandle2 . getDrawY ( ) ) ) { insert = false ; break ; } } else if ( Math . min ( sourceHandle1 . getDrawX ( ) , targetHandle1 . getDrawX ( ) ) == Math . min ( sourceHandle2 . getDrawX ( ) , targetHandle2 . getDrawX ( ) ) ) { insert = false ; break ; } } } if ( insert ) { margins . add ( c1 ) ; } } }

Dado un margen y su orientación, reúnen todos los márgenes similares entre los widgets.La lista de márgenes se llenará de los márgenes que encontramos.


public boolean rerun_jb  ( ) { return soot . PhaseOptions . getBoolean ( options , "rerun-jb" ) ; }

Reconstruir el cuerpo de jimple después de enlinar.Cuando se encuentra un método con parámetros de matriz, es posible que sus variables deben asignarse diferentes tipos de lo que tenían en el método original para producir un código compilable.Cuando esta opción está configurada, el hollín recorre el paquete de cuerpo de jimple en cada cuerpo del método, que ha tenido otro método enlinado para que el algoritmo de escritura pueda reasignar los tipos.


Crea un nuevo generador de números aleatorios.<P> La instancia se inicializa utilizando la hora actual como la semilla.


public static boolean isXML11NCNameStart  ( int c ) { return ( c < 0x10000 && ( XML11CHARS [ c ] & MASK_XML11_NCNAME_START ) != 0 ) || ( 0x10000 <= c && c < 0xF0000 ) ; }

Devuelve VERDADERO si el carácter especificado es un carácter de inicio NCNAME válido, tal como se define por la producción [4] en los espacios de nombres en la recomendación XML 1.1.


public BBoxExtended ( ) { super ( null  , null ) ; }


public static InstantRunVerifierStatus verifyMethod  ( MethodNode method ) { VerifierMethodVisitor mv = new VerifierMethodVisitor ( method ) ; method . accept ( mv ) ; return mv . incompatibleChange . or ( InstantRunVerifierStatus . COMPATIBLE ) ; }

Verifica una implementación del método contra la lista de API de la lista negra.


public void updateView  ( final String what ) { if ( what . equals ( Director . ALL ) ) { try { for ( int i = 0 ; i < doc . getNumberOfSamples ( ) ; i ++ ) { doc . getColorsArray ( ) [ i ] = doc . getChartColorManager ( ) . getSampleColor ( doc . getSampleNames ( ) . get ( i ) ) ; } setFont ( ProgramProperties . get ( ProgramProperties . DEFAULT_FONT , getFont ( ) ) ) ; if ( lastRecomputeTimeFromDocument != dir . getDocument ( ) . getLastRecomputeTime ( ) ) { lastRecomputeTimeFromDocument = dir . getDocument ( ) . getLastRecomputeTime ( ) ; updateData ( ) ; updateTree ( ) ; } if ( hasSyncedFormatFromSummaryToViewer ) SyncDataTableAndClassificationViewer . syncFormattingFromViewer2Summary ( this , doc . getDataTable ( ) ) ; } catch ( IOException e ) { Basic . caught ( e ) ; } if ( getPreviousNodeIdsOfInterest ( ) != null ) { for ( Integer id : getPreviousNodeIdsOfInterest ( ) ) { Node v = getANode ( id ) ; if ( v != null ) { setSelected ( v , true ) ; } } zoomToSelection ( ) ; setPreviousNodeIdsOfInterest ( null ) ; } setupNodeLabels ( true ) ; repaint ( ) ; } final FindToolBar findToolBar = searchManager . getFindDialogAsToolBar ( ) ; if ( findToolBar . isClosing ( ) ) { showFindToolBar = false ; findToolBar . setClosing ( false ) ; } if ( ! findToolBar . isEnabled ( ) && showFindToolBar ) { mainPanel . add ( findToolBar , BorderLayout . NORTH ) ; findToolBar . setEnabled ( true ) ; getFrame ( ) . getContentPane ( ) . validate ( ) ; } else if ( findToolBar . isEnabled ( ) && ! showFindToolBar ) { mainPanel . remove ( findToolBar ) ; findToolBar . setEnabled ( false ) ; getFrame ( ) . getContentPane ( ) . validate ( ) ; } getCommandManager ( ) . updateEnableState ( ) ; if ( findToolBar . isEnabled ( ) ) findToolBar . clearMessage ( ) ; if ( showLegend . equals ( "undefined" ) && doc . getNumberOfSamples ( ) > 0 ) { setShowLegend ( doc . getNumberOfSamples ( ) <= 1 ? "none" : "horizontal" ) ; } legendPanel . setStyle ( getNodeDrawer ( ) . getStyle ( ) ) ; legendPanel . updateView ( ) ; if ( doc . getNumberOfSamples ( ) <= 1 ) splitPane . setDividerLocation ( 1.0 ) ; legendPanel . repaint ( ) ; setWindowTitle ( ) ; }

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


public SessionInitializationException ( String userMessage , String logMessage ) { super ( logMessage ) ; this . userMessage = userMessage ; }

Crea una nueva instancia de SessionInitializationException con mensaje de usuario y mensaje de registro definido.


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