@ NotNull public static String colorToString  ( @ NotNull Color color ) { long longColor = ( color . getRed ( ) << 16 ) | ( color . getGreen ( ) << 8 ) | color . getBlue ( ) ; if ( color . getAlpha ( ) != 0xFF ) { longColor |= ( long ) color . getAlpha ( ) << 24 ; return String . format ( "#%08x" , longColor ) ; } return String . format ( "#%06x" , longColor ) ; }

Convierte un color a la representación de Hex-String, incluido el canal alfa.Si el alfa es FF, la salida es #RRGGBB sin componente alfa.


public Pages ( Map < String , PageDescription > pages ) { pagesCollection = pages ; }


public boolean isIgnoreInactive  ( ) { return this . ignoreInactive ; }

Devuelve VERDADERO si se ignoran los cuerpos inactivos.


public void onFindToolbarHidden  ( ) { }

Notificado cuando la barra de herramientas de búsqueda en la página ha sido oculta.


private synchronized final void wakeUp  ( ) { notify ( ) ; }

Despierta este hilo mientras el hilo actual está esperando la duración del sueño especificado.Invocado por <código> Cancelar </ Code> Método.


public AppHolder ( View itemView , AppAboutObject object ) { super ( itemView ) ; itemView . findViewById ( R . id . item_about_app_container ) . setOnClickListener ( this ) ; ImageView icon = ( ImageView ) itemView . findViewById ( R . id . item_about_app_icon ) ; icon . setImageResource ( object . iconId ) ; TextView text = ( TextView ) itemView . findViewById ( R . id . item_about_app_title ) ; text . setText ( object . text ) ; this . id = object . id ; }


private static SubjectKeyIdentifier createSubjectKeyIdentifier  ( Key key ) { SubjectPublicKeyInfo publicKeyInfo = SubjectPublicKeyInfo . getInstance ( key . getEncoded ( ) ) ; return new BcX509ExtensionUtils ( ) . createSubjectKeyIdentifier ( publicKeyInfo ) ; }

Crea el identificador asunto para un castillo hinchable X590Certificatori.


private void initialize  ( ) throws BindException  { String root = System . getProperty ( "org.jini.rio.tools.webster.root" ) ; if ( root == null ) root = System . getProperty ( "user.dir" ) ; initialize ( root ) ; }

Inicialice a Webster, código de servicio según lo determine la propiedad del sistema org.jini.rio.tools.webster.rio.tools.webster.rio.


public boolean itemExists  ( String name ) throws JMSException { HashMap body = ( HashMap ) Body ; return body . containsKey ( name ) ; }

Compruebe si existe un artículo en este MapMessage


public ArraySet ( int capacity ) { if ( capacity == 0 ) { mHashes = ContainerHelpers . EMPTY_INTS ; mArray = ContainerHelpers . EMPTY_OBJECTS ; } else { allocArrays ( capacity ) ; } mSize = 0 ; }

Cree un nuevo conjunto con una capacidad inicial dada.


@ Override public StringBuffer format  ( final double value , final StringBuffer buffer , final FieldPosition position ) { return format ( Double . valueOf ( value ) , buffer , position ) ; }

Formats un valor doble como una fracción y agrega el resultado a un StringBuffer.


private static String separeMetaTagsContent  ( String content ) { String result = Regex . pregMatch ( content , Regex . METATAG_CONTENT_PATTERN , 1 ) ; return htmlDecode ( result ) ; }


public void delete  ( ) { mBaseName . delete ( ) ; mBackupName . delete ( ) ; }

Eliminar el archivo atómico.Esto elimina tanto los archivos de base como de copia de seguridad.


private String httpArray  ( Collection < Integer > classIds ) { String s = "" ; for ( Object o : classIds ) { s = s + o . toString ( ) + "," ; } return s . substring ( 0 , s . length ( ) - 1 ) ; }


@ AfterClass public void afterClass  ( ) { toCleanUp . add ( initialExperiment ) ; toCleanUp . add ( completeExperiment ) ; }

Agrega los experimentos restantes a la lista de experimentos para limpiar.


public static PDF417DetectorResult detect  ( BinaryBitmap image , Map < DecodeHintType , ? > hints , boolean multiple ) throws NotFoundException { BitMatrix bitMatrix = image . getBlackMatrix ( ) ; List < ResultPoint [ ] > barcodeCoordinates = detect ( multiple , bitMatrix ) ; if ( barcodeCoordinates . isEmpty ( ) ) { bitMatrix = bitMatrix . clone ( ) ; bitMatrix . rotate180 ( ) ; barcodeCoordinates = detect ( multiple , bitMatrix ) ; } return new PDF417DetectorResult ( bitMatrix , barcodeCoordinates ) ; }

Detecta un código PDF417 en una imagen.Solo verifica las rotaciones de 0 y 180 grados.


private boolean closeToMaxRange  ( ) { BoundedRangeModel model = getModel ( ) ; return model . getMaximum ( ) - ( model . getValue ( ) + model . getExtent ( ) ) < STREAMING_POSITION_THRESHOLD * model . getExtent ( ) ; }

Comprueba si el pulgar ScrollBar está cerca del final del rango.


public Edge addEdge  ( Vertex vHead , Vertex vTail ) throws Exception { WeightedEdge e ; if ( ( e = ( WeightedEdge ) utils . locateDirectedEdgeInGraph ( this , vHead , vTail ) ) == null ) { e = ( WeightedEdge ) super . addEdge ( vHead , vTail ) ; e . setWeight ( 1.0 ) ; } else { e . setWeight ( e . getWeight ( ) + 1.0 ) ; } return e ; }

Agrega un borde al gráfico, si el primero no existe ya en la gráfica.De lo contrario, aumenta el peso del borde por uno.


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


public PagesGetQuery sitePreview  ( Boolean value ) { return unsafeParam ( "site_preview" , value ) ; }

La página de Wiki resultante es una vista previa para el enlace adjunto


public NewsfeedGetQuery startTime  ( Integer value ) { return unsafeParam ( "start_time" , value ) ; }

Tiempo más temprano (en tiempo de UNIX) de una noticia para regresar.Por defecto, hace 24 horas.


public Entry toCacheEntry  ( byte [ ] data ) { Entry e = new Entry ( ) ; e . data = data ; e . etag = etag ; e . serverDate = serverDate ; e . lastModified = lastModified ; e . ttl = ttl ; e . softTtl = softTtl ; e . responseHeaders = responseHeaders ; return e ; }

Crea una entrada de caché para los datos especificados.


public static Vector < String > processVoiceExampleText  ( String text ) { StringTokenizer st = new StringTokenizer ( text , "#" ) ; Vector < String > sentences = null ; while ( st . hasMoreTokens ( ) ) { if ( sentences == null ) sentences = new Vector < String > ( ) ; sentences . add ( st . nextToken ( ) ) ; } return sentences ; }

Divide el texto de ejemplo de una voz en oraciones en un vector


@ Override public void startElement  ( String namespaceURI , String localName , String qName , Attributes atts ) throws SAXException { int entryType = - 1 ; Vector entryArgs = new Vector ( ) ; if ( localName . equals ( "Base" ) ) { entryType = Catalog . BASE ; entryArgs . add ( atts . getValue ( "HRef" ) ) ; debug . message ( 4 , "Base" , atts . getValue ( "HRef" ) ) ; } else if ( localName . equals ( "Delegate" ) ) { entryType = Catalog . DELEGATE_PUBLIC ; entryArgs . add ( atts . getValue ( "PublicID" ) ) ; entryArgs . add ( atts . getValue ( "HRef" ) ) ; debug . message ( 4 , "Delegate" , PublicId . normalize ( atts . getValue ( "PublicID" ) ) , atts . getValue ( "HRef" ) ) ; } else if ( localName . equals ( "Extend" ) ) { entryType = Catalog . CATALOG ; entryArgs . add ( atts . getValue ( "HRef" ) ) ; debug . message ( 4 , "Extend" , atts . getValue ( "HRef" ) ) ; } else if ( localName . equals ( "Map" ) ) { entryType = Catalog . PUBLIC ; entryArgs . add ( atts . getValue ( "PublicID" ) ) ; entryArgs . add ( atts . getValue ( "HRef" ) ) ; debug . message ( 4 , "Map" , PublicId . normalize ( atts . getValue ( "PublicID" ) ) , atts . getValue ( "HRef" ) ) ; } else if ( localName . equals ( "Remap" ) ) { entryType = Catalog . SYSTEM ; entryArgs . add ( atts . getValue ( "SystemID" ) ) ; entryArgs . add ( atts . getValue ( "HRef" ) ) ; debug . message ( 4 , "Remap" , atts . getValue ( "SystemID" ) , atts . getValue ( "HRef" ) ) ; } else if ( localName . equals ( "XCatalog" ) ) { } else { debug . message ( 1 , "Invalid catalog entry type" , localName ) ; } if ( entryType >= 0 ) { try { CatalogEntry ce = new CatalogEntry ( entryType , entryArgs ) ; catalog . addEntry ( ce ) ; } catch ( CatalogException cex ) { if ( cex . getExceptionType ( ) == CatalogException . INVALID_ENTRY_TYPE ) { debug . message ( 1 , "Invalid catalog entry type" , localName ) ; } else if ( cex . getExceptionType ( ) == CatalogException . INVALID_ENTRY ) { debug . message ( 1 , "Invalid catalog entry" , localName ) ; } } } }

El método SAX <CODE> Startelement </ Code> reconoce los elementos del formato de catálogo liso e instancha los objetos de catalogentry para ellos.


public static int checkSurveyResponse  ( HttpServletRequest request , String surveyId ) { Delegator delegator = ( Delegator ) request . getAttribute ( "delegator" ) ; GenericValue userLogin = ( GenericValue ) request . getSession ( ) . getAttribute ( "userLogin" ) ; String productStoreId = getProductStoreId ( request ) ; if ( userLogin == null ) { return - 1 ; } return checkSurveyResponse ( delegator , userLogin . getString ( "partyId" ) , productStoreId , surveyId ) ; }

Devuelve el número de respuestas para esta encuesta por parte


public void validatePoliciesReadOnlyAccess  ( ) { boolean arePoliciesReadOnly = true ; try { arePoliciesReadOnly = globalZkCache ( ) . exists ( POLICIES_READONLY_FLAG_PATH ) ; } catch ( Exception e ) { log . warn ( "Unable to fetch contents of [{}] from global zookeeper" , POLICIES_READONLY_FLAG_PATH , e ) ; throw new RestException ( e ) ; } if ( arePoliciesReadOnly ) { log . debug ( "Policies are read-only. Broker cannot do read-write operations" ) ; throw new RestException ( Status . FORBIDDEN , "Broker is forbidden to do read-write operations" ) ; } else { if ( globalZkCache ( ) . getZooKeeper ( ) . getState ( ) != States . CONNECTED ) { log . debug ( "Broker is not connected to the global zookeeper" ) ; throw new RestException ( Status . PRECONDITION_FAILED , "Broker needs to be connected to global zookeeper before making a read-write operation" ) ; } else { log . debug ( "Broker is allowed to make read-write operations" ) ; } } }

Comprueba si el corredor puede hacer operaciones de lectura-escritura según la existencia de un nodo en ZOOKEEPER global.


@ deprecated protected int handleNext  ( ) { CharacterIterator text = getText ( ) ; if ( ( this . cachedBreakPositions == null ) || ( this . positionInCache == this . cachedBreakPositions . length - 1 ) ) { int startPos = text . getIndex ( ) ; this . fDictionaryCharCount = 0 ; int result = super . handleNext ( ) ; if ( ( ! this . usingCTDictionary ) && ( this . fDictionaryCharCount > 1 ) && ( result - startPos > 1 ) ) { divideUpDictionaryRange ( startPos , result ) ; } else { this . cachedBreakPositions = null ; return result ; } } if ( this . cachedBreakPositions != null ) { this . positionInCache += 1 ; text . setIndex ( this . cachedBreakPositions [ this . positionInCache ] ) ; return this . cachedBreakPositions [ this . positionInCache ] ; } Assert . assrt ( false ) ; return 55537 ; }


public Snackbar ( ITextComponent message , Side side ) { super ( message , side ) ; }

Construye un nuevo evento que se dispara cuando se muestra un mensaje de chat.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_ProcDPHeal_Instant_HEAL_A_TO_B  ( String skilltarget , int num0 , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201238 , skilltarget , num0 , skillcaster , skillname ) ; }

[% SkillTarget] Recuperado% DP DP porque [% Skillcaster] usó [% de habilidad].


@ Override public void prepare  ( ) throws IllegalStateException , IOException  { Log . d ( SBMP_TAG , "prepare() 444" ) ; Log . d ( SBMP_TAG , "onPreparedCallback is: " + ( ( this . mOnPreparedCallback == null ) ? "null" : "non-null" ) ) ; if ( pmInterface == null ) { Log . d ( SBMP_TAG , "prepare: pmInterface is null" ) ; if ( ! ConnectPlayMediaService ( ) ) { Log . d ( SBMP_TAG , "prepare: Failed to connect play media service" ) ; ServiceBackedMediaPlayer . this . error ( MediaPlayer . MEDIA_ERROR_UNKNOWN , 0 ) ; } } if ( pmInterface != null ) { Log . d ( SBMP_TAG , "prepare: pmInterface isn't null" ) ; try { Log . d ( SBMP_TAG , "prepare: Remote invoke pmInterface.prepare(" + ServiceBackedMediaPlayer . this . sessionId + ")" ) ; pmInterface . prepare ( ServiceBackedMediaPlayer . this . sessionId ) ; Log . d ( SBMP_TAG , "prepare: prepared" ) ; } catch ( RemoteException e ) { Log . d ( SBMP_TAG , "prepare: RemoteException" ) ; e . printStackTrace ( ) ; throw new IllegalStateException ( ) ; } } Log . d ( SBMP_TAG , "Done with prepare()" ) ; }

Funciona idénticamente a Android.media.mediaPlayer.Prepare () prepara la pista.Este o preparado debe llamarse antes de comenzar ()


private static Integer openKey  ( Integer baseKey , String keyPath , int securityToken ) { int [ ] result = invokeRegistryMethod ( _openKeyMethod , baseKey , toByteArray ( keyPath ) , securityToken ) ; int errorCode = result [ ERROR_CODE ] ; switch ( errorCode ) { case ERROR_SUCCESS : return result [ NATIVE_HANDLE ] ; case ERROR_FILE_NOT_FOUND : return null ; case ERROR_ACCESS_DENIED : throw new WindowsRegistryException ( "Access denied. Path=" + keyPath + ", securityToken=" + securityToken ) ; default : throw new WindowsRegistryException ( "Error. Code=" + errorCode + ", Path=" + keyPath + ", securityToken=" + securityToken ) ; } }


public static SM_SYSTEM_MESSAGE STR_MSG_POLISH_SUCCEED  ( int nameId ) { return new SM_SYSTEM_MESSAGE ( 1401650 , new DescriptionId ( nameId ) ) ; }


public String toString  ( String enc ) throws UnsupportedEncodingException  { return new String ( toByteArray ( ) , enc ) ; }

Obtiene los contenidos curantes de este flujo de bytes como una cadena usando la codificación especificada.


private FTPDataTransferConnectionProvider openDataTransferChannel  ( ) throws IOException , FTPIllegalReplyException , FTPException , FTPDataTransferException  { if ( modezSupported && compressionEnabled ) { if ( ! modezEnabled ) { communication . sendFTPCommand ( "MODE Z" ) ; FTPReply r = communication . readFTPReply ( ) ; touchAutoNoopTimer ( ) ; if ( r . isSuccessCode ( ) ) { modezEnabled = true ; } } } else { if ( modezEnabled ) { communication . sendFTPCommand ( "MODE S" ) ; FTPReply r = communication . readFTPReply ( ) ; touchAutoNoopTimer ( ) ; if ( r . isSuccessCode ( ) ) { modezEnabled = false ; } } } if ( passive ) { return openPassiveDataTransferChannel ( ) ; } else { return openActiveDataTransferChannel ( ) ; } }

Este método abre un canal de transferencia de datos.


private void notify_2  ( ) { bleManager . notifyDevice ( UUID_SERVICE , UUID_NOTIFY_2 , notifyCallback_2 ) ; }


@ deprecated protected boolean matchNodesCanHaveValues  ( ) { return true ; }


public float determinant  ( ) { float fCo00 = m11 * m22 - m12 * m21 ; float fCo10 = m12 * m20 - m10 * m22 ; float fCo20 = m10 * m21 - m11 * m20 ; float fDet = m00 * fCo00 + m01 * fCo10 + m02 * fCo20 ; return fDet ; }

<Código> Determinante </ código> Genera el Determinación de esta matriz.


public int addItemToEnd  ( String productId , BigDecimal amount , BigDecimal quantity , BigDecimal unitPrice , Timestamp reservStart , BigDecimal reservLength , BigDecimal reservPersons , String accommodationMapId , String accommodationSpotId , HashMap < String , GenericValue > features , HashMap < String , Object > attributes , String prodCatalogId , String itemType , LocalDispatcher dispatcher , Boolean triggerExternalOps , Boolean triggerPriceRules ) throws CartItemModifyException , ItemNotFoundException { return addItemToEnd ( ShoppingCartItem . makeItem ( null , productId , amount , quantity , unitPrice , reservStart , reservLength , reservPersons , accommodationMapId , accommodationSpotId , null , null , features , attributes , prodCatalogId , null , itemType , null , dispatcher , this , triggerExternalOps , triggerPriceRules , null , Boolean . FALSE , Boolean . FALSE ) ) ; }

Añade un alojamiento (alquiler) Artículo al carrito de compras.


public PagesClearCacheQuery ( VkApiClient client , UserActor actor , String url ) { super ( client , "pages.clearCache" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; url ( url ) ; }

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


public static UserFeedback createFromJSONString  ( String json ) { return new GsonBuilder ( ) . create ( ) . fromJson ( json , UserFeedback . class ) ; }

Crea un usuario de usuario de una cadena JSON.


public Bundler putIntArray  ( String key , int [ ] value ) { bundle . putIntArray ( key , value ) ; return this ; }

Inserta un valor INT de matriz en el mapeo de este paquete, reemplazando cualquier valor existente para la clave dada.Cualquier clave o valor puede ser nulo.


private static byte [ ] encode3to4  ( byte [ ] source , int srcOffset , int numSigBytes , byte [ ] destination , int destOffset , byte [ ] alphabet ) { int inBuff = ( numSigBytes > 0 ? ( ( source [ srcOffset ] << 24 ) >>> 8 ) : 0 ) | ( numSigBytes > 1 ? ( ( source [ srcOffset + 1 ] << 24 ) >>> 16 ) : 0 ) | ( numSigBytes > 2 ? ( ( source [ srcOffset + 2 ] << 24 ) >>> 24 ) : 0 ) ; switch ( numSigBytes ) { case 3 : destination [ destOffset ] = alphabet [ ( inBuff >>> 18 ) ] ; destination [ destOffset + 1 ] = alphabet [ ( inBuff >>> 12 ) & 0x3f ] ; destination [ destOffset + 2 ] = alphabet [ ( inBuff >>> 6 ) & 0x3f ] ; destination [ destOffset + 3 ] = alphabet [ ( inBuff ) & 0x3f ] ; return destination ; case 2 : destination [ destOffset ] = alphabet [ ( inBuff >>> 18 ) ] ; destination [ destOffset + 1 ] = alphabet [ ( inBuff >>> 12 ) & 0x3f ] ; destination [ destOffset + 2 ] = alphabet [ ( inBuff >>> 6 ) & 0x3f ] ; destination [ destOffset + 3 ] = EQUALS_SIGN ; return destination ; case 1 : destination [ destOffset ] = alphabet [ ( inBuff >>> 18 ) ] ; destination [ destOffset + 1 ] = alphabet [ ( inBuff >>> 12 ) & 0x3f ] ; destination [ destOffset + 2 ] = EQUALS_SIGN ; destination [ destOffset + 3 ] = EQUALS_SIGN ; return destination ; default : return destination ; } }

Codifica hasta tres bytes de la matriz <var> fuente </ var> y escribe los cuatro bytes Base64 resultantes a <var> destino </ var>.Las matrices de origen y destino se pueden manipular en cualquier lugar a lo largo de su longitud especificando <var> srcoffset </ var> y <var> destoffset </ var>.Este método no se verifica para asegurarse de que sus matrices sean lo suficientemente grandes para acomodar <var> srcoffset </ var> + 3 para la matriz <var> fuente </ var> o <var> desdoffset </ var> + 4 para el <var> destino </ var> matriz.El número real de bytes significativos en su matriz se le da por <var> numsigbytes </ var>.


protected void skip  ( ) { do { readBlock ( ) ; } while ( ( blockSize > 0 ) && ! err ( ) ) ; }

Salta a bloques de longitud variable hasta y incluir el siguiente bloque de longitud cero.


public JsonArrayRequest ( int method , String url , JSONArray jsonRequest , Listener < JSONArray > listener , ErrorListener errorListener ) { super ( method , url , ( jsonRequest == null ) ? null : jsonRequest . toString ( ) , listener , errorListener ) ; }


public Builder preProcessor  ( BitmapProcessor preProcessor ) { this . preProcessor = preProcessor ; return this ; }

Establece el procesador de mapa de bits que se procesará los mapas de bits antes de que se almacenen en caché en la memoria.Por lo tanto, la memoria caché de memoria contendrá un mapa de bits procesado por el preprocesador entrante. <br /> La imagen se procesará previamente, incluso si el almacenamiento en caché en la memoria está deshabilitado.


Collection < ? extends ClientRequestResult > handleAlarmRequest  ( final ClientRequest alarmRequest ) { final Collection < AlarmValue > alarms = new ArrayList < > ( alarmRequest . getTagIds ( ) . size ( ) ) ; for ( Long alarmId : alarmRequest . getTagIds ( ) ) { if ( alarmCache . hasKey ( alarmId ) ) { final Alarm alarm = alarmCache . getCopy ( alarmId ) ; switch ( alarmRequest . getResultType ( ) ) { case TRANSFER_ALARM_LIST : Long tagId = alarm . getTagId ( ) ; if ( tagLocationService . isInTagCache ( tagId ) ) { Tag tag = tagLocationService . getCopy ( tagId ) ; alarms . add ( TransferObjectFactory . createAlarmValue ( alarm , tag ) ) ; } else { LOG . warn ( "handleAlarmRequest() - unrecognized Tag with id " + tagId ) ; alarms . add ( TransferObjectFactory . createAlarmValue ( alarm ) ) ; } break ; default : LOG . error ( "handleAlarmRequest() - Could not generate response message. Unknown enum ResultType " + alarmRequest . getResultType ( ) ) ; } } else { LOG . warn ( "handleAlarmRequest() - request for unknown alarm with id " + alarmId ) ; } } if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Finished processing Alarm request: returning " + alarms . size ( ) + " Alarms" ) ; } return alarms ; }

Método interno que maneja la solicitud de alarma.


private DocumentFragment traverseSameContainer  ( int how ) { DocumentFragment frag = null ; if ( how != DELETE_CONTENTS ) { frag = fDocument . createDocumentFragment ( ) ; } if ( fStartOffset == fEndOffset ) { return frag ; } final short nodeType = fStartContainer . getNodeType ( ) ; if ( nodeType == Node . TEXT_NODE || nodeType == Node . CDATA_SECTION_NODE || nodeType == Node . COMMENT_NODE || nodeType == Node . PROCESSING_INSTRUCTION_NODE ) { String s = fStartContainer . getNodeValue ( ) ; String sub = s . substring ( fStartOffset , fEndOffset ) ; if ( how != CLONE_CONTENTS ) { ( ( CharacterDataImpl ) fStartContainer ) . deleteData ( fStartOffset , fEndOffset - fStartOffset ) ; collapse ( true ) ; } if ( how == DELETE_CONTENTS ) { return null ; } if ( nodeType == Node . TEXT_NODE ) { frag . appendChild ( fDocument . createTextNode ( sub ) ) ; } else if ( nodeType == Node . CDATA_SECTION_NODE ) { frag . appendChild ( fDocument . createCDATASection ( sub ) ) ; } else if ( nodeType == Node . COMMENT_NODE ) { frag . appendChild ( fDocument . createComment ( sub ) ) ; } else { frag . appendChild ( fDocument . createProcessingInstruction ( fStartContainer . getNodeName ( ) , sub ) ) ; } return frag ; } Node n = getSelectedNode ( fStartContainer , fStartOffset ) ; int cnt = fEndOffset - fStartOffset ; while ( cnt > 0 ) { Node sibling = n . getNextSibling ( ) ; Node xferNode = traverseFullySelected ( n , how ) ; if ( frag != null ) frag . appendChild ( xferNode ) ; -- cnt ; n = sibling ; } if ( how != CLONE_CONTENTS ) { collapse ( true ) ; } return frag ; }

Visita los nodos seleccionados por este rango cuando conocemos a priori que los contenedores de inicio y final son los mismos.Este método se invoca por el método genérico <código> Traverse </ Code>.


public static StorableLocationFence entering  ( double latitude , double longitude , double radius ) { return new StorableLocationFence ( ENTER_TYPE , latitude , longitude , radius , 0 ) ; }

Crea una cerca de ubicación almacenable que será válida cuando el usuario ingrese a la región dada


private List < String > convertByteArrayListToStringValueList  ( List < byte [ ] > dictionaryByteArrayList ) { List < String > valueList = new ArrayList < > ( dictionaryByteArrayList . size ( ) ) ; for ( byte [ ] value : dictionaryByteArrayList ) { valueList . add ( new String ( value , Charset . forName ( CarbonCommonConstants . DEFAULT_CHARSET ) ) ) ; } return valueList ; }

Este método convertirá la lista de matriz de bytes a la lista de cadena


public static String urlEncodeArgs  ( Map < String , ? extends Object > args ) { return urlEncodeArgs ( args , true ) ; }


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

ID de la comunidad objetivo al volver a la comunidad.


@ Override public void characters  ( char [ ] ch , int start , int length ) throws SAXException { }

Caracteres en la etiqueta <> caracteres </>.Decide no usar este método temporalmente.Use el atributo de valor en su lugar.


public DecorationCursor queryDecorations  ( ) { QueryHelper qh = new QueryHelper ( ) ; qh . Columns = null ; qh . Table = S . TABLE_DECORATIONS ; qh . Selection = null ; qh . SelectionArgs = null ; qh . GroupBy = null ; qh . Having = null ; qh . OrderBy = "skill_1_name ASC" ; qh . Limit = null ; return new DecorationCursor ( wrapJoinHelper ( builderDecoration ( ) , qh ) ) ; }


@ Nonnull public static FormValidation validateWorkspaceTemplate  ( @ Nonnull String value ) { Set < FormValidation > formValidations = new HashSet < > ( ) ; Set < String > existingMessages = new HashSet < > ( ) ; if ( ! Util . isRelativePath ( value ) ) { formValidations . add ( error ( Messages . formValidation_NotRelativePath ( ) ) ) ; } String invalidParenthesesMsg = Messages . formValidation_NotValidParentheses ( ) ; int bracketCount = 0 ; char [ ] chars = value . toCharArray ( ) ; for ( int i = 0 ; i < chars . length ; i ++ ) { char c = chars [ i ] ; if ( c == '{' ) { bracketCount ++ ; } else if ( c == '}' ) { bracketCount -- ; } if ( bracketCount < 0 ) { if ( existingMessages . add ( invalidParenthesesMsg ) ) { formValidations . add ( error ( invalidParenthesesMsg ) ) ; } } if ( c == '$' && i < chars . length - 1 && chars [ i + 1 ] != '{' ) { String message = Messages . formValidation_UnsafeSymbol ( ) ; if ( existingMessages . add ( message ) ) { formValidations . add ( FormValidation . warning ( message ) ) ; } } } if ( bracketCount != 0 ) { if ( existingMessages . add ( invalidParenthesesMsg ) ) { formValidations . add ( error ( invalidParenthesesMsg ) ) ; } } return FormValidation . aggregate ( formValidations ) ; }

Valida la cadena de entrada para que coincida con una plantilla de espacio de trabajo específico.Muestra los mensajes de error si la ruta de entrada no es relativa, o si no encierra los corchetes correctamente.Muestra el mensaje de advertencia si la plantilla de entrada utiliza un símbolo '$' independiente en lugar de '$ {}'.<p> NOTA: Puede mostrar varios mensajes de error / advertencia para la misma cadena de entrada.p.ej.'/ $ ABC {ABC' tiene 2 mensajes de error y 1 advertencia: - Error: Ruta no relativa - Error: No válido adjuntos paréntesis - ADVERTENCIA: Uso inseguro independiente '$'


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 void type  ( String string ) { for ( int i = 0 ; i < string . length ( ) ; i ++ ) { char c = string . charAt ( i ) ; type ( c ) ; } }

Simule el tipo de teclado para escribir una cadena.Esta letra de mayúscula de este tipo usando Mayús + letra minúscula.Casi todos los caracteres tipificables en el teclado ANSI se admiten.


public static String keyOfIdGenerator  ( Class < ? > clazz ) { try { return ID_GENERATOR_KEY_CACHE . get ( clazz ) ; } catch ( ExecutionException e ) { throw new KeyException ( e ) ; } }

La clave del generador de identificación


@ Override public final void write  ( byte ba [ ] ) throws IOException { dis . write ( ba , 0 , ba . length ) ; }


public String message  ( ) { return rawResponse . message ( ) ; }

Mensaje de estado HTTP o NULL si se desconoce.


private void putEntry  ( String key , CacheHeader entry ) { if ( ! mEntries . containsKey ( key ) ) { mTotalSize += entry . size ; } else { CacheHeader oldEntry = mEntries . get ( key ) ; mTotalSize += ( entry . size - oldEntry . size ) ; } mEntries . put ( key , entry ) ; }

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


protected String insertSegment  ( Item segmentItem , Element syllable , boolean deep ) { if ( segmentItem == null || deep && syllable == null ) { throw new NullPointerException ( "Null arguments to insertSegment()" ) ; } if ( deep && ! syllable . getTagName ( ) . equals ( MaryXML . SYLLABLE ) ) { throw new IllegalArgumentException ( "Segments can only be inserted in <syllable> elements" ) ; } String segmentString = segmentItem . toString ( ) ; Voice maryVoice = FreeTTSVoices . getMaryVoice ( segmentItem . getUtterance ( ) . getVoice ( ) ) ; if ( deep ) { Document doc = syllable . getOwnerDocument ( ) ; Element segment = MaryXML . createElement ( doc , MaryXML . PHONE ) ; syllable . appendChild ( segment ) ; segment . setAttribute ( "p" , segmentString ) ; if ( segmentItem . getFeatures ( ) . isPresent ( "end" ) ) { float endInSeconds = segmentItem . getFeatures ( ) . getFloat ( "end" ) ; int endInMillis = ( int ) ( 1000 * endInSeconds ) ; segment . setAttribute ( "end" , String . valueOf ( endInMillis ) ) ; } if ( segmentItem . getFeatures ( ) . isPresent ( "mbr_dur" ) ) { int mbrDur = segmentItem . getFeatures ( ) . getInt ( "mbr_dur" ) ; segment . setAttribute ( "d" , String . valueOf ( mbrDur ) ) ; } if ( segmentItem . getFeatures ( ) . isPresent ( "mbr_targets" ) ) { String mbrTargets = segmentItem . getFeatures ( ) . getString ( "mbr_targets" ) ; if ( ! mbrTargets . equals ( "" ) ) { segment . setAttribute ( "f0" , mbrTargets ) ; } } } return segmentString ; }

Convierta un elemento en la relación del segmento en XML, insertándolo en la ubicación especificada en el árbol XML.


protected GroupsCreateQuery title  ( String value ) { return unsafeParam ( "title" , value ) ; }


@ Override public XSSimpleType createTypeRestriction  ( String name , String targetNamespace , short finalSet , XSSimpleType base , XSObjectList annotations ) { if ( fDeclPool != null ) { XSSimpleTypeDecl st = fDeclPool . getSimpleTypeDecl ( ) ; return st . setRestrictionValues ( ( XSSimpleTypeDecl ) base , name , targetNamespace , finalSet , annotations ) ; } return new XSSimpleTypeDecl ( ( XSSimpleTypeDecl ) base , name , targetNamespace , finalSet , false , annotations ) ; }

Cree un nuevo tipo simple que se deriva con restricción de otro tipo simple.


public void tag  ( String tag , String name , String value ) { tag ( tag , name , value , true ) ; }

Imprime una etiqueta cerrada con un atributo.La etiqueta será seguida por una nueva línea.


public void startInitialisation  ( ) { startInitialisation ( ZWaveNodeInitStage . EMPTYNODE ) ; }

Comienza la inicialización desde el principio.


public static void startMe  ( Context _context ) { Intent intent = new Intent ( _context , OnBoardingActivity . class ) ; intent . addFlags ( Intent . FLAG_ACTIVITY_NO_ANIMATION ) ; _context . startActivity ( intent ) ; }


private static void addToArray  ( Integer [ ] sum , int [ ] add ) { for ( int i = 0 ; i < add . length ; i ++ ) { sum [ i ] += add [ i ] ; } }


public boolean optBoolean  ( String key ) { LazyNode token = getOptionalFieldToken ( key ) ; if ( token == null ) return false ; if ( token . type == LazyNode . VALUE_TRUE ) return true ; return false ; }

Devuelve el valor booleano almacenado en este objeto para la clave dada.Devuelve Falso si no hay tal clave.


private CountingThreadPoolExecutor createExecutor  ( int numThreads ) { return new CountingThreadPoolExecutor ( numThreads , Integer . MAX_VALUE , 30 , TimeUnit . SECONDS , new LinkedBlockingQueue < Runnable > ( ) ) ; }

Crea un nuevo objeto ejecutor para hilos de trabajo de desove.


protected Map loadTextLexicon  ( InputStream is , int estimatedSize ) throws IOException { Map lexicon = new LinkedHashMap ( estimatedSize * 4 / 3 ) ; BufferedReader reader = new BufferedReader ( new InputStreamReader ( is ) ) ; String line ; line = reader . readLine ( ) ; while ( line != null ) { if ( ! line . startsWith ( "***" ) ) { parseAndAdd ( lexicon , line ) ; } line = reader . readLine ( ) ; } return lexicon ; }

Lea el flujo de entrada dado como datos de texto de texto y devuelve los resultados en un mapa </ code>.


public void startWatching  ( String fileName ) { synchronized ( mObservedChildren ) { if ( ! mObservedChildren . containsKey ( fileName ) ) { mObservedChildren . put ( fileName , Boolean . valueOf ( false ) ) ; } } if ( new File ( mPath ) . exists ( ) ) { startWatching ( ) ; Log_OC . d ( TAG , "Started watching parent folder " + mPath + "/" ) ; } }

Agrega un archivo secundario a la lista de archivos observados por el observador de la carpeta.


protected boolean isJson  ( HttpServletRequest request ) { String type = request . getContentType ( ) ; type = ! StringUtils . isEmpty ( type ) ? type : MediaType . APPLICATION_JSON_VALUE ; if ( request . getPathInfo ( ) . endsWith ( ".json" ) ) { type = MediaType . APPLICATION_JSON_VALUE ; } return isCompatibleWith ( type , MediaType . APPLICATION_JSON ) ; }


public static Stream < DoubleSummaryStatistics > shiftingWindowSummarizingLong  ( DoubleStream doubleStream , int rollingFactor ) { Objects . requireNonNull ( doubleStream ) ; RollingOfDoubleSpliterator ofDoubleSpliterator = RollingOfDoubleSpliterator . of ( doubleStream . spliterator ( ) , rollingFactor ) ; return StreamSupport . stream ( ofDoubleSpliterator , doubleStream . isParallel ( ) ) . onClose ( null ) . map ( null ) ; }

 Genera una corriente que se calcula a partir de una corriente doble provista por primera vez enrollándola de la misma manera que el método  Roll () .Luego se aplica una doble operación de resumen en cada substream para formar el flujo de resumen de doble doble.No se realiza ningún boxeo / unboxing en el proceso.
 El flujo resultante tiene el mismo número de elementos que el flujo provisto, menos el tamaño del ancho de la ventana, para preservar la consistencia de cada colección.

 A <CÓDIGO> NULLPointPointException  se lanzará si el flujo provisto es NULL.


private void chooseDataSourceToOpen  ( ) { }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Stun_ME_TO_SELF  ( String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200288 , skillname ) ; }

Te quedó aturdido después de usar [% SkillName].


protected void readChangeLogNode  ( XmlPullParser parser , ChangeLog changeLog ) throws Exception { if ( parser == null || changeLog == null ) return ; parser . require ( XmlPullParser . START_TAG , null , TAG_CHANGELOG ) ; String bulletedList = parser . getAttributeValue ( null , ATTRIBUTE_BULLETEDLIST ) ; if ( bulletedList == null || bulletedList . equals ( "true" ) ) { changeLog . setBulletedList ( true ) ; super . bulletedList = true ; } else { changeLog . setBulletedList ( false ) ; super . bulletedList = false ; } while ( parser . next ( ) != XmlPullParser . END_TAG ) { if ( parser . getEventType ( ) != XmlPullParser . START_TAG ) { continue ; } String tag = parser . getName ( ) ; if ( tag . equals ( TAG_CHANGELOGVERSION ) ) { readChangeLogVersionNode ( parser , changeLog ) ; } } }


public GroupsEditQuery ( VkApiClient client , UserActor actor , int groupId ) { super ( client , "groups.edit" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; groupId ( groupId ) ; }

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


public static SM_SYSTEM_MESSAGE STR_UNION_HE_IS_NEW_LEADER  ( String value0 , String value1 , String value2 ) { return new SM_SYSTEM_MESSAGE ( 1400581 , value0 , value1 , value2 ) ; }

% 0 confiado% 1 con la Autoridad de Liderazgo de la Liga.A partir de ahora,% 1 es el líder de la liga.


public static SM_SYSTEM_MESSAGE STR_PETITION_GM_LEAVE_MSG  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300565 , value0 ) ; }


public static ExpectedCondition < Boolean > nodeExist  ( final Session session , final String nodePath ) { LOG . debug ( "Checking if node '{}' exists" , nodePath ) ; return null ; }

Verifica si existe un nodo especificado.


public LeaseMap createLeaseMap  ( long duration ) { return new ConstrainableRegistrarLeaseMap ( this , duration ) ; }

Crea un mapa de arrendamiento consciente de la restricción.


public String create  ( DispatchContext ctx , GenericValue userLogin ) { if ( "WIP" . equals ( product . getString ( "productTypeId" ) ) ) { return null ; } LocalDispatcher dispatcher = ctx . getDispatcher ( ) ; Delegator delegator = ctx . getDelegator ( ) ; Map < String , Object > parameters = UtilMisc . < String , Object > toMap ( "userLogin" , userLogin ) ; if ( isBuilt ) { try { List < BOMNode > bom = FastList . newInstance ( ) ; BOMTree tree = new BOMTree ( productId , "MANUF_COMPONENT" , null , BOMTree . EXPLOSION_MANUFACTURING , delegator , dispatcher , userLogin ) ; tree . setRootQuantity ( quantity ) ; tree . print ( bom ) ; requirementStartDate = tree . getRoot ( ) . getStartDate ( manufacturingFacilityId , requiredByDate , true ) ; } catch ( Exception e ) { Debug . logError ( e , "Error : computing the requirement start date. " + e . getMessage ( ) , module ) ; } } parameters . put ( "productId" , productId ) ; parameters . put ( "statusId" , "REQ_PROPOSED" ) ; parameters . put ( "facilityId" , ( isBuilt ? manufacturingFacilityId : facilityId ) ) ; parameters . put ( "requiredByDate" , requiredByDate ) ; parameters . put ( "requirementStartDate" , requirementStartDate ) ; parameters . put ( "quantity" , quantity ) ; parameters . put ( "requirementTypeId" , ( isBuilt ? "INTERNAL_REQUIREMENT" : "PRODUCT_REQUIREMENT" ) ) ; if ( mrpName != null ) { parameters . put ( "description" , "MRP_" + mrpName ) ; } else { parameters . put ( "description" , "Automatically generated by MRP" ) ; } try { Map < String , Object > result = dispatcher . runSync ( "createRequirement" , parameters ) ; return ( String ) result . get ( "requirementId" ) ; } catch ( GenericServiceException e ) { Debug . logError ( e , "Error : createRequirement with parameters = " + parameters + "--" + e . getMessage ( ) , module ) ; return null ; } }

Cree una ORMPUESTORIA en la entidad de requisitos que llame al Servicio de Creanerequement.


public static Process buildCreateAllFieldsProcess  ( Long id , Properties properties ) { if ( properties == null ) { properties = new Properties ( ) ; } Process process = Process . create ( "P_TEST" + id ) . id ( id ) . description ( "foo" ) . aliveTag ( AliveTag . create ( "P_TEST" + id + ":ALIVE" ) . build ( ) , 70000 ) . statusTag ( StatusTag . create ( "P_TEST" + id + ":STATUS" ) . build ( ) ) . maxMessageDelay ( 2000 ) . maxMessageSize ( 200 ) . build ( ) ; properties . setProperty ( "name" , "P_TEST" + id ) ; properties . setProperty ( "description" , "foo" ) ; properties . setProperty ( "statusTagId" , String . valueOf ( 100l ) ) ; properties . setProperty ( "aliveInterval" , String . valueOf ( 70000 ) ) ; properties . setProperty ( "aliveTagId" , String . valueOf ( 101l ) ) ; properties . setProperty ( "maxMessageDelay" , String . valueOf ( 2000 ) ) ; properties . setProperty ( "maxMessageSize" , String . valueOf ( 200 ) ) ; return process ; }

La identificación de etiqueta de estado esperado es 101 Se espera con vida ID de etiqueta es 100


@ SuppressFBWarnings ( "CHROMIUM_SYNCHRONIZED_METHOD" ) public synchronized boolean calledOnValidThread  ( ) { ensureThreadIdAssigned ( ) ; return mThreadId . equals ( Thread . currentThread ( ) . getId ( ) ) ; }

Verifica si se llama el método en el hilo válido.Asigna el hilo de corriente si no se asignó ninguna hilo.


public static void databaseMigrations  ( ) { Data data = injector . getInstance ( Data . class ) ; Repo repo = injector . getInstance ( Repo . class ) ; Api api = injector . getInstance ( Api . class ) ; data . createTableIfMissing ( ) ; repo . addSourceToTable ( ) ; repo . addBranchToTable ( ) ; api . createTableIfMissing ( ) ; }

Llamado a la puesta en marcha para ejecutar toda la lógica de creación / migración de la tabla de objetos DAO.Ligero sobrecarga con esta técnica.Todos los migraciones dentro de la base de datos SQLite para que la aplicación no sea necesario


protected svm_node [ ] documentToNodeArray  ( SimpleTextDocument dDoc ) { TreeSet tsNodes = new TreeSet ( ) ; DocumentNGramGraph dg = dDoc . getDocumentGraph ( ) ; for ( int iCnt = dg . getMinSize ( ) ; iCnt <= dg . getMaxSize ( ) ; iCnt ++ ) { UniqueVertexGraph g = dg . getGraphLevelByNGramSize ( iCnt ) ; Iterator edgeIter = g . getEdgeSet ( ) . iterator ( ) ; while ( edgeIter . hasNext ( ) ) { WeightedEdge we = ( WeightedEdge ) edgeIter . next ( ) ; if ( dg . degredationDegree ( we ) > 3 ) continue ; svm_ordered_node snCur = new svm_ordered_node ( ) ; String sData = ( we . getVertexA ( ) . getLabel ( ) + " " + we . getVertexB ( ) . getLabel ( ) ) ; if ( ! EdgeMapping . containsKey ( sData ) ) EdgeMapping . put ( sData , EdgeMapping . size ( ) + 1 ) ; snCur . index = ( ( Integer ) EdgeMapping . get ( sData ) ) . intValue ( ) ; snCur . value = we . getWeight ( ) ; tsNodes . add ( snCur ) ; } } svm_node [ ] snaTemp = new svm_node [ tsNodes . size ( ) ] ; Iterator iIter = tsNodes . iterator ( ) ; int iCnt = 0 ; while ( iIter . hasNext ( ) ) { snaTemp [ iCnt ++ ] = ( svm_node ) iIter . next ( ) ; } return snaTemp ; }

Proporciona una estructura de matriz SVM_NODE, derivada de un documento de texto, con el fin de usar las funciones de LIBSVM.


private void notifySLDEditorFileHasUpdated  ( ) { for ( SLDEditorDataUpdateInterface listener : sldEditorFileUpdateListenerList ) { if ( listener != null ) { listener . sldDataUpdated ( sldData , dataEditedFlag ) ; } } }

Notificar el archivo de SLD Editor ha actualizado.


public Builder position  ( String position ) { this . position = position ; return this ; }

La posición del control (una de las esquinas del mapa </br> posibles valores: "Topleft", "TOPRIGHT", "BOOPTLEFT", "BOTTERRIGHT" </BR>


public void decreasePangPangEnemyLife  ( String ... protocols ) { for ( int i = 0 ; i < Settings . nPangPangEnemyHeight ; i ++ ) for ( int j = 0 ; j < Settings . nPangPangEnemyWidth ; j ++ ) if ( mEnemy [ i ] [ j ] . getsUnitName ( ) . equals ( protocols [ 0 ] ) ) { mEnemy [ i ] [ j ] . decreaseShield ( ) ; if ( mEnemy [ i ] [ j ] . get_Is_Dead ( ) ) { sendMessageInTheRoomPeople ( Settings . _ANSWER_PANGAPNG_ENEMY_COLLISION_EVENT + "" , protocols [ 0 ] ) ; mpCtr . set_Enemy_Cnt_Minus ( ) ; break ; } } }


@ Override public Filter createLogicFilter  ( List < Filter > filterList ) { return null ; }


public static boolean checkIfDataTypeNotTimeStamp  ( Expression expression ) { if ( expression . getFilterExpressionType ( ) == ExpressionType . LITERAL ) { if ( ! ( ( ( LiteralExpression ) expression ) . getLiteralExpDataType ( ) == DataType . TIMESTAMP ) ) { return true ; } } for ( Expression child : expression . getChildren ( ) ) { if ( checkIfDataTypeNotTimeStamp ( child ) ) { return true ; } } return false ; }

Este método verificará si una expresión literal determinada no es un tipos de datos de marca de tiempo recursivamente.


public void terminate  ( ) { synchronized ( registrars ) { if ( terminated ) return ; terminated = true ; } nukeThreads ( ) ; }


public FastByteArrayOutputStream ( int size ) { super ( ) ; if ( size < 0 ) { throw new IllegalArgumentException ( "Negative initial size: " + size ) ; } buf = new byte [ size ] ; }

Crea un nuevo flujo de salida de matriz de bytes, con una capacidad de tampón del tamaño especificado, en bytes.


public static Zutmat o  ( Zutmat U ) throws JampackException  { if ( U . nrow != U . ncol ) throw new JampackException ( "Cannot compute the inverse of a rectangular matrix." ) ; return new Zutmat ( Solve . aib ( U , Eye . o ( U . nrow ) ) ) ; }


public static TypeRef of  ( MessageType messageType ) { return interner . intern ( new TypeRef ( Type . TYPE_MESSAGE , Cardinality . OPTIONAL , messageType , null ) ) ; }

Crea una referencia a un tipo de mensaje, con cardinalidad predeterminada opcional.


private int measureShort  ( int measureSpec ) { int result ; int specMode = MeasureSpec . getMode ( measureSpec ) ; int specSize = MeasureSpec . getSize ( measureSpec ) ; if ( specMode == MeasureSpec . EXACTLY ) { result = specSize ; } else { result = ( int ) ( 2 * mRadius + getPaddingTop ( ) + getPaddingBottom ( ) + 1 ) ; if ( specMode == MeasureSpec . AT_MOST ) { result = Math . min ( result , specSize ) ; } } return result ; }


public static FieldSelector of  ( ) { return new FieldSelector ( ImmutableList . < Field > of ( ) ) ; }


public static String applyUriReplace  ( String uriSource , Configuration conf ) { if ( uriSource == null ) return null ; String [ ] uriReplace = conf . getStrings ( OUTPUT_URI_REPLACE ) ; if ( uriReplace == null ) return uriSource ; for ( int i = 0 ; i < uriReplace . length - 1 ; i += 2 ) { String replacement = uriReplace [ i + 1 ] . trim ( ) ; replacement = replacement . substring ( 1 , replacement . length ( ) - 1 ) ; uriSource = uriSource . replaceAll ( uriReplace [ i ] , replacement ) ; } return uriSource ; }

Aplique la opción de configuración de reemplazo de URI a una cadena de fuente URI.La opción de configuración es una lista de pares separados por comas de patrones y reemplazos de regex.La validación de la configuración se realiza a la hora de análisis de comandos.


public boolean isEmpty  ( ) { return state . equals ( EMPTY ) ; }


protected void drawXAxis  ( Graphics2D gc ) { gc . setFont ( getFont ( ChartViewer . FontKeys . XAxisFont . toString ( ) ) ) ; gc . setColor ( getFontColor ( ChartViewer . FontKeys . XAxisFont . toString ( ) , Color . BLACK ) ) ; gc . setColor ( Color . BLACK ) ; int x = 5 ; int y = getHeight ( ) - bottomMargin + 25 ; if ( ! isTranspose ( ) ) gc . drawString ( getChartData ( ) . getSeriesLabel ( ) , x , y ) ; else gc . drawString ( getChartData ( ) . getClassesLabel ( ) , x , y ) ; }


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

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


public LogicalMetric ( TemplateDruidQuery templateDruidQuery , ResultSetMapper calculation , String name , String description ) { this ( templateDruidQuery , calculation , name , name , DEFAULT_CATEGORY , description ) ; }

Construye una métrica lógica ligeramente más especificada.<p> NOTA: La descripción se establece en el mismo que el nombre.


@ Override public synchronized boolean onTouchEvent  ( MotionEvent event ) { if ( ! isEnabled ( ) ) return false ; final int action = event . getAction ( ) ; switch ( action & MotionEvent . ACTION_MASK ) { case MotionEvent . ACTION_DOWN : mActivePointerId = event . getPointerId ( event . getPointerCount ( ) - 1 ) ; pointerIndex = event . findPointerIndex ( mActivePointerId ) ; float mDownMotionX = event . getX ( pointerIndex ) ; pressedThumb = evalPressedThumb ( mDownMotionX ) ; if ( pressedThumb == null ) return super . onTouchEvent ( event ) ; touchDown ( event . getX ( pointerIndex ) , event . getY ( pointerIndex ) ) ; setPressed ( true ) ; invalidate ( ) ; onStartTrackingTouch ( ) ; trackTouchEvent ( event ) ; attemptClaimDrag ( ) ; break ; case MotionEvent . ACTION_MOVE : if ( pressedThumb != null ) { if ( mIsDragging ) { touchMove ( event . getX ( pointerIndex ) , event . getY ( pointerIndex ) ) ; trackTouchEvent ( event ) ; } if ( onSeekbarChangeListener != null ) { onSeekbarChangeListener . valueChanged ( getSelectedMinValue ( ) ) ; } } break ; case MotionEvent . ACTION_UP : if ( mIsDragging ) { trackTouchEvent ( event ) ; onStopTrackingTouch ( ) ; setPressed ( false ) ; touchUp ( event . getX ( pointerIndex ) , event . getY ( pointerIndex ) ) ; if ( onSeekbarFinalValueListener != null ) { onSeekbarFinalValueListener . finalValue ( getSelectedMinValue ( ) ) ; } } else { onStartTrackingTouch ( ) ; trackTouchEvent ( event ) ; onStopTrackingTouch ( ) ; } pressedThumb = null ; invalidate ( ) ; if ( onSeekbarChangeListener != null ) { onSeekbarChangeListener . valueChanged ( getSelectedMinValue ( ) ) ; } break ; case MotionEvent . ACTION_POINTER_DOWN : { break ; } case MotionEvent . ACTION_POINTER_UP : invalidate ( ) ; break ; case MotionEvent . ACTION_CANCEL : if ( mIsDragging ) { onStopTrackingTouch ( ) ; setPressed ( false ) ; touchUp ( event . getX ( pointerIndex ) , event . getY ( pointerIndex ) ) ; } invalidate ( ) ; break ; } return true ; }

Manijas de selección y movimiento del pulgar.Notifica la devolución de llamada de oyente en ciertos eventos.


@ Override public void renderAxisLabels  ( Canvas c ) { if ( ! mYAxis . isEnabled ( ) || ! mYAxis . isDrawLabelsEnabled ( ) ) return ; float [ ] positions = getTransformedPositions ( ) ; mAxisLabelPaint . setTypeface ( mYAxis . getTypeface ( ) ) ; mAxisLabelPaint . setTextSize ( mYAxis . getTextSize ( ) ) ; mAxisLabelPaint . setColor ( mYAxis . getTextColor ( ) ) ; float xoffset = mYAxis . getXOffset ( ) ; float yoffset = Utils . calcTextHeight ( mAxisLabelPaint , "A" ) / 2.5f + mYAxis . getYOffset ( ) ; AxisDependency dependency = mYAxis . getAxisDependency ( ) ; YAxisLabelPosition labelPosition = mYAxis . getLabelPosition ( ) ; float xPos = 0f ; if ( dependency == AxisDependency . LEFT ) { if ( labelPosition == YAxisLabelPosition . OUTSIDE_CHART ) { mAxisLabelPaint . setTextAlign ( Align . LEFT ) ; xPos = mViewPortHandler . offsetLeft ( ) - xoffset ; } else { mAxisLabelPaint . setTextAlign ( Align . LEFT ) ; xPos = mViewPortHandler . offsetLeft ( ) + xoffset ; } } else { if ( labelPosition == YAxisLabelPosition . OUTSIDE_CHART ) { mAxisLabelPaint . setTextAlign ( Align . LEFT ) ; xPos = mViewPortHandler . contentRight ( ) + xoffset ; } else { mAxisLabelPaint . setTextAlign ( Align . LEFT ) ; xPos = mViewPortHandler . contentRight ( ) - xoffset ; } } drawYLabels ( c , xPos , positions , yoffset ) ; }

Dibuja las etiquetas del eje Y a la pantalla.


public MarketCreateCommentQuery attachments  ( List < String > value ) { return unsafeParam ( "attachments" , value ) ; }

Lista de objetos separados por comas adjuntos a un comentario.El campo se envía de la siguiente manera: "Tipo" "Owner_ID" _ "media_id" "<p>" "Tipo" "- Tipo de archivo adjunto:" Photo "- Photo" Video "- Video" Audio "- Audio" Doc "- Documento <P> "" Owner_ID "" - ID del propietario de los medios "" media_id "" - ID de archivo adjunto <p>, por ejemplo: photo100172_166443618, photo66748_265827614


public void clear  ( ) { uid = 0 ; matchRecord = null ; fName2Id . clear ( ) ; taxonId = 0 ; }


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

Cheques Si se presentan datos presentes.


public int decrement  ( int offset ) { return increment ( - offset ) ; }

Disminuya la etiqueta de la insignia numérica.Si la etiqueta de la identificación actual no se puede convertir a un valor entero, su etiqueta se establecerá en "0".


public static List < Interval > sliceIntervals  ( Interval interval , TimeGrain timeGrain ) { DateTime intervalEnd = interval . getEnd ( ) ; DateTime sliceStart = interval . getStart ( ) ; DateTime periodStart = timeGrain . roundFloor ( sliceStart ) ; if ( ! sliceStart . equals ( periodStart ) ) { LOG . info ( "Interval {} is not aligned to TimeGrain {} starting {}" , interval , timeGrain , periodStart ) ; throw new IllegalArgumentException ( "Interval must be aligned to the TimeGrain starting " + periodStart ) ; } List < Interval > intervalSlices = new ArrayList < > ( ) ; while ( sliceStart . isBefore ( intervalEnd ) ) { DateTime sliceEnd = DateTimeUtils . addTimeGrain ( sliceStart , timeGrain ) ; Interval slicedInterval = new Interval ( sliceStart , sliceEnd ) ; if ( ! interval . contains ( slicedInterval ) ) { LOG . info ( "Interval {} is not a multiple of TimeGrain {}" , interval , timeGrain ) ; throw new IllegalArgumentException ( "Interval must be a multiple of the TimeGrain" ) ; } intervalSlices . add ( slicedInterval ) ; sliceStart = sliceEnd ; } LOG . debug ( "Sliced interval {} into {} slices of {} grain" , interval , intervalSlices . size ( ) , timeGrain ) ; return intervalSlices ; }

Rebanadas los intervalos en intervalos más pequeños de la duración del Tiempo de tiempo.


@ SubscribeEvent public void onClientTick  ( TickEvent . ClientTickEvent ev ) { if ( ev != null && ev . phase == Phase . START ) { for ( InternalKey binding : this . additionalKeys ) { if ( binding . isKeyDown ( ) ) { binding . onKeyDown ( ) ; } if ( binding . isPressed ( ) ) { binding . onPressed ( ) ; } } } }

Evento de la garrapata llamado al cliente.
 Se utiliza para simular el prensado y la liberación de nuestras llaves adicionales.
 Esto se trata más cerca que podamos (fácilmente) entrar en la pila de llamadas hasta el punto en que Minecraft realiza el código equivalente paraSus propias llaves.


public boolean addAll  ( Collection c ) { throw new UnsupportedOperationException ( ) ; }

Siempre lanza sin apoyoPortadosOfereException.


public static void main  ( String [ ] sArgs ) { TAC2008TopicFileSet t = null ; try { t = new TAC2008TopicFileSet ( "/home/ggianna/JInsect/TAC2008/UpdateSumm08_test_topics.xml" , "/home/ggianna/JInsect/TAC2008/UpdateSumm08_test_docs_files/" ) ; } catch ( ParserConfigurationException ex ) { Logger . getLogger ( TAC2008TopicFileSet . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } catch ( SAXException ex ) { Logger . getLogger ( TAC2008TopicFileSet . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } catch ( IOException ex ) { Logger . getLogger ( TAC2008TopicFileSet . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } if ( t == null ) return ; t . createSets ( ) ; System . err . println ( "Training set:" ) ; System . err . println ( utils . printIterable ( t . getTrainingSet ( ) , "\n" ) ) ; System . err . println ( "Training set:" ) ; System . err . println ( utils . printIterable ( t . getTestSet ( ) , "\n" ) ) ; System . err . println ( "Per category:" ) ; for ( String sCategory : ( List < String > ) t . getCategories ( ) ) { System . err . println ( utils . printIterable ( t . getFilesFromCategory ( sCategory ) , "\n" ) ) ; } System . err . flush ( ) ; String sLastCat = ( String ) t . getCategories ( ) . get ( t . getCategories ( ) . size ( ) - 1 ) ; String sFile = ( ( CategorizedFileEntry ) t . getFilesFromCategory ( sLastCat ) . get ( 0 ) ) . getFileName ( ) ; System . out . println ( t . loadFile ( sFile ) ) ; }


private void handleUpdatedObjects  ( Collection < OpenJPAStateManager > sms , ArrayList < Exception > exceptions , IJSpace space ) { HashSet < OpenJPAStateManager > stateManagersToRestore = new HashSet < OpenJPAStateManager > ( ) ; for ( OpenJPAStateManager sm : sms ) { final ClassMetaData cm = sm . getMetaData ( ) ; try { if ( _classesRelationStatus . containsKey ( cm . getDescribedType ( ) ) ) { final FieldOwnerInformation ownerInformation = _relationsManager . getStateManagerToUpdate ( ( StateManager ) sm ) ; final IEntryPacket entry = getEntryPacketFromStateManager ( space , ownerInformation . getStateManager ( ) ) ; for ( FieldMetaData fmd : cm . getFields ( ) ) { _relationsManager . initializeOwnerReferencesForField ( ( StateManager ) sm , fmd ) ; } _relationsManager . removeOwnedEntitiesStateManagers ( stateManagersToRestore , ownerInformation . getStateManager ( ) ) ; if ( ownerInformation . getStateManager ( ) . getVersion ( ) != null ) entry . setVersion ( ( Integer ) ownerInformation . getStateManager ( ) . getVersion ( ) ) ; final FieldMetaData [ ] fmds = ownerInformation . getStateManager ( ) . getMetaData ( ) . getFields ( ) ; int spacePropertyIndex = - 1 ; int routingPropertyIndex = entry . getTypeDescriptor ( ) . getRoutingPropertyId ( ) ; for ( int i = 0 ; i < fmds . length ; i ++ ) { if ( fmds [ i ] . isVersion ( ) ) continue ; spacePropertyIndex ++ ; if ( i != ownerInformation . getMetaData ( ) . getIndex ( ) && ! fmds [ i ] . isPrimaryKey ( ) && spacePropertyIndex != routingPropertyIndex ) { entry . setFieldValue ( spacePropertyIndex , null ) ; } } space . write ( entry , _transaction , Lease . FOREVER , 0 , UpdateModifiers . PARTIAL_UPDATE ) ; ownerInformation . getStateManager ( ) . setVersion ( entry . getVersion ( ) ) ; } else { final IEntryPacket entry = getEntryPacketFromStateManager ( space , sm ) ; final FieldMetaData [ ] fmds = cm . getFields ( ) ; int spacePropertyIndex = - 1 ; int routingPropertyIndex = entry . getTypeDescriptor ( ) . getRoutingPropertyId ( ) ; for ( int i = 0 ; i < fmds . length ; i ++ ) { if ( fmds [ i ] . isVersion ( ) ) continue ; spacePropertyIndex ++ ; if ( ! sm . getDirty ( ) . get ( i ) && ! fmds [ i ] . isPrimaryKey ( ) && spacePropertyIndex != routingPropertyIndex ) { entry . setFieldValue ( spacePropertyIndex , null ) ; } else { _relationsManager . initializeOwnerReferencesForField ( ( StateManager ) sm , fmds [ i ] ) ; } } if ( sm . getVersion ( ) != null ) entry . setVersion ( ( Integer ) sm . getVersion ( ) ) ; space . write ( entry , _transaction , Lease . FOREVER , 0 , UpdateModifiers . PARTIAL_UPDATE ) ; sm . setVersion ( entry . getVersion ( ) ) ; } } catch ( Exception e ) { exceptions . add ( e ) ; } finally { _relationsManager . restoreRemovedStateManagers ( stateManagersToRestore ) ; } } }

Actualiza parcialmente los campos sucios al espacio.


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

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


public BasicToApiKeyAuthenticationFilter ( Map < String , String > basicAuthToApiKeyMap ) { _basicAuthToApiKeyMap = basicAuthToApiKeyMap ; }

Inicializa el filtro con un mapa de credenciales básicas a las teclas API.Por ejemplo: BASICITOAPTIKEYAUTRICTICATIONFILTER FILTER = NUEVO BASICITOAPTIKEYATRICTICATIONFILTER (INMUTABLEMAP.OF ("Nombre de usuario: Contraseña", "Apikey"));


public static boolean isFifo  ( int mod ) { return Modifiers . contains ( mod , FIFO ) ; }

Comprueba si se estableció el bit FIFO para este modificador.


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


public static void encode  ( InputStream inputStream , OutputStream outputStream , int wrapAt ) throws IOException { Base64OutputStream aux = new Base64OutputStream ( outputStream , wrapAt ) ; copy ( inputStream , aux ) ; aux . commit ( ) ; }

 Codifica los datos del flujo de entrada dado y los escribe en el flujo de salida dado, envolviendo cada línea codificada cada caracteres  WRAPAT .A  WRAPAT  El valor inferior a 1 desactiva la envoltura.

 El flujo de entrada suministrado se lee hasta que se alcanza su final, pero no está cerrado por este método.

 El flujo de salida suministrado no está enrojecido ni cerrado por este método.


public void load  ( String fileName ) throws IOException , MaryConfigurationException  { DataInputStream dis = null ; try { dis = new DataInputStream ( new BufferedInputStream ( new FileInputStream ( fileName ) ) ) ; } catch ( FileNotFoundException e ) { throw new RuntimeException ( "File [" + fileName + "] was not found." ) ; } try { hdr = new MaryHeader ( dis ) ; if ( hdr . getType ( ) != MaryHeader . SCOST ) { throw new RuntimeException ( "File [" + fileName + "] is not a valid Mary Units file." ) ; } numberOfUnits = dis . readInt ( ) ; if ( numberOfUnits < 0 ) { throw new RuntimeException ( "File [" + fileName + "] has a negative number of units. Aborting." ) ; } sCost = new double [ numberOfUnits ] ; for ( int i = 0 ; i < numberOfUnits ; i ++ ) { sCost [ i ] = dis . readFloat ( ) ; } } catch ( IOException e ) { throw new RuntimeException ( "Reading the Mary header from file [" + fileName + "] failed." , e ) ; } }


public void enableDashedHighlightLine  ( float lineLength , float spaceLength , float phase ) { mHighlightDashPathEffect = new DashPathEffect ( new float [ ] { lineLength , spaceLength } , phase ) ; }

Permite que la línea destacada se dibuje en modo discontinuo, por ejemplo.Me gusta esto "- - - - - -"


private void download  ( boolean neutral , List < Selectable > list ) { for ( int i = 0 ; i != list . size ( ) ; ++ i ) { if ( ( neutral || list . get ( i ) . isChecked ( ) ) && ! list . get ( i ) . isDisable ( ) ) { mDownloadList . add ( mDetailAdapter . getItem ( i ) ) ; } } if ( ! mDownloadList . isEmpty ( ) ) { showProgressDialog ( ) ; if ( PermissionUtils . requestPermission ( this , REQUEST_DOWNLOAD ) ) { mPresenter . updateIndex ( mDetailAdapter . getDateSet ( ) ) ; } } }

Descargar: Cargar Descargar -> Seleccionar capítulo -> Verificar permiso -> Índice de actualización -> Agregar tarea


public float pseudoDistance  ( Vector3f point ) { return normal . dot ( point ) - constant ; }

<Código> Pseudodistance </ code> Calcula la distancia de este plano a un punto provisto.Si el punto está en el lado negativo del plano, la distancia devuelta es negativa, de lo contrario es positiva.Si el punto está en el plano, es cero.


protected void configurePipeline  ( ) { if ( fFeatures . get ( NAMESPACES ) == Boolean . TRUE ) { if ( fNamespaceScanner == null ) { fNamespaceScanner = new XMLNSDocumentScannerImpl ( ) ; addComponent ( fNamespaceScanner ) ; } fProperties . put ( DOCUMENT_SCANNER , fNamespaceScanner ) ; fNamespaceScanner . setDTDValidator ( null ) ; fScanner = fNamespaceScanner ; } else { if ( fNonNSScanner == null ) { fNonNSScanner = new XMLDocumentScannerImpl ( ) ; addComponent ( fNonNSScanner ) ; } fProperties . put ( DOCUMENT_SCANNER , fNonNSScanner ) ; fScanner = fNonNSScanner ; } fScanner . setDocumentHandler ( fDocumentHandler ) ; fLastComponent = fScanner ; if ( fDTDScanner != null ) { fDTDScanner . setDTDHandler ( fDTDHandler ) ; fDTDScanner . setDTDContentModelHandler ( fDTDContentModelHandler ) ; } }


public void downUpdate  ( Activity activity , Update update , UpdateBuilder builder ) { UpdateConfig . getConfig ( ) . context ( activity ) ; DefaultDownloadCB downloadCB = new DefaultDownloadCB ( activity ) ; downloadCB . setBuilder ( builder ) ; downloadCB . setUpdate ( update ) ; downloadCB . setDownloadCB ( builder . getDownloadCB ( ) ) ; DownloadWorker downloadWorker = builder . getDownloadWorker ( ) ; if ( downloadWorker . isRunning ( ) ) { Log . e ( "Updater" , "Already have a download task running" ) ; downloadCB . onUpdateError ( - 1 , "Already have a download task running" ) ; return ; } downloadWorker . setUrl ( update . getUpdateUrl ( ) ) ; downloadWorker . setDownloadCB ( downloadCB ) ; downloadWorker . setCacheFileName ( builder . getFileCreator ( ) . create ( update . getVersionName ( ) ) ) ; executor . download ( downloadWorker ) ; }


public Bundler putSerializable  ( String key , Serializable value ) { bundle . putSerializable ( key , value ) ; return this ; }

Inserta un valor serializable en el mapeo de este paquete, reemplazando cualquier valor existente para la clave dada.Cualquier clave o valor puede ser nulo.


public void configurePermissionIsOffPreferences  ( Preference osWarning , Preference osWarningExtra , Activity activity , boolean specificCategory ) { Intent perAppIntent = getIntentToEnableOsPerAppPermission ( activity ) ; Intent globalIntent = getIntentToEnableOsGlobalPermission ( activity ) ; String perAppMessage = getMessageForEnablingOsPerAppPermission ( activity , ! specificCategory ) ; String globalMessage = getMessageForEnablingOsGlobalPermission ( activity ) ; Resources resources = activity . getResources ( ) ; int color = ApiCompatibilityUtils . getColor ( resources , R . color . pref_accent_color ) ; ForegroundColorSpan linkSpan = new ForegroundColorSpan ( color ) ; if ( perAppIntent != null ) { SpannableString messageWithLink = SpanApplier . applySpans ( perAppMessage , new SpanInfo ( "<link>" , "</link>" , linkSpan ) ) ; osWarning . setTitle ( messageWithLink ) ; osWarning . setIntent ( perAppIntent ) ; if ( ! specificCategory ) { osWarning . setIcon ( getDisabledInAndroidIcon ( activity ) ) ; } } if ( globalIntent != null ) { SpannableString messageWithLink = SpanApplier . applySpans ( globalMessage , new SpanInfo ( "<link>" , "</link>" , linkSpan ) ) ; osWarningExtra . setTitle ( messageWithLink ) ; osWarningExtra . setIntent ( globalIntent ) ; if ( ! specificCategory ) { if ( perAppIntent == null ) { osWarningExtra . setIcon ( getDisabledInAndroidIcon ( activity ) ) ; } else { Drawable transparent = new ColorDrawable ( Color . TRANSPARENT ) ; osWarningExtra . setIcon ( transparent ) ; } } } }

Configure una preferencia para mostrar cuándo cuando se desactiva el permiso de Android para esta categoría.


private void fillDeclaredPrefixes  ( XMLStreamReader reader ) { fDeclaredPrefixes . clear ( ) ; final int len = reader . getNamespaceCount ( ) ; for ( int i = 0 ; i < len ; ++ i ) { String prefix = reader . getNamespacePrefix ( i ) ; fDeclaredPrefixes . add ( prefix != null ? prefix : "" ) ; } }

Completa la lista de prefijos declarados.


public Object writeReplace  ( ) throws ObjectStreamException  { if ( ! _cacheable ) return _fullSerializationObjectUncached ; LRMIInvocationContext currentContext = LRMIInvocationContext . getCurrentContext ( ) ; ProxyWriteType proxyWriteType = currentContext . getProxyWriteType ( ) ; if ( proxyWriteType != ProxyWriteType . UNCACHED && ! currentContext . isUseStubCache ( ) ) proxyWriteType = ProxyWriteType . UNCACHED ; switch ( proxyWriteType ) { case UNCACHED : if ( _stubCacheLogger . isLoggable ( Level . FINER ) ) _stubCacheLogger . finer ( "serializing full uncached stub, toString() = " + this . toString ( ) ) ; return _fullSerializationObjectUncached ; case CACHED_LIGHT : if ( _lightSerializationObject != null ) { if ( _stubCacheLogger . isLoggable ( Level . FINEST ) ) _stubCacheLogger . finest ( "serializing light stub with id = " + ( ( ILRMIProxy ) _handler ) . getStubId ( ) + ", stub toString() = " + this . toString ( ) ) ; return _lightSerializationObject ; } case CACHED_FULL : if ( _stubCacheLogger . isLoggable ( Level . FINE ) ) _stubCacheLogger . fine ( "serializing full stub for caching with id = " + ( ( ILRMIProxy ) _handler ) . getStubId ( ) + ", stub toString() = " + this . toString ( ) ) ; return new ProxyReplace ( this . getClass ( ) . getInterfaces ( ) , getInvocatioHandler ( ) , true , true , this ) ; default : throw new RuntimeException ( "Unexpected ProxyWriteType received " + proxyWriteType ) ; } }

No quites !!!!Utilizado por el ObjectOutputStream en serialización.


public void unpin  ( Buffer buff ) { BlockId blk = buff . block ( ) ; PinnedBuffer pinnedBuff = pinnedBuffers . get ( blk ) ; if ( pinnedBuff != null ) { pinnedBuff . pinnedCount -- ; if ( pinnedBuff . pinnedCount == 0 ) { bufferPool . unpin ( buff ) ; pinnedBuffers . remove ( blk ) ; synchronized ( bufferPool ) { bufferPool . notifyAll ( ) ; } } } }

Deshinde el búfer especificado.Si el conteo del pasador del búfer se convierte en 0, entonces se notifican los hilos en la lista de espera.


public int verifyTransition  ( int newState ) { int currentState = getState ( ) ; boolean validTransition = false ; switch ( newState ) { case STARTING : if ( currentState == STOPPED ) validTransition = true ; break ; case STARTED : if ( currentState == STARTING ) validTransition = true ; break ; case STOPPED : if ( currentState == STARTED || currentState == STARTING ) validTransition = true ; break ; case ABORTED : validTransition = true ; break ; case ABORTING : validTransition = true ; break ; default : throw new IllegalStateException ( "Illegal state [" + newState + "]" ) ; } if ( ! validTransition ) throw new IllegalStateException ( "New state [" + newState + "] not allowed from [" + getState ( ) + "]" ) ; return newState ; }

Verifique la transición estatal, verifique si se permite el nuevo estado propuesto del estado actual.Si el estado propuesto no se permite que se lanzará una Excepción ilegalStateException


public boolean isNavBarTintEnabled  ( ) { return mNavBarTintEnabled ; }

¿Está habilitado el teñido para la barra de navegación del sistema?


@ Override public String checkIDRefID  ( ) { return ( fIdIdrefChecking ) ? super . checkIDRefID ( ) : null ; }

Comprueba si todos los IDREF tienen una identificación correspondiente.


public TopNMetric ( TopNMetricType type , String previousStop , SortDirection order ) { this ( type , previousStop ) ; if ( order == SortDirection . ASC ) { this . type = TopNMetricType . INVERTED ; this . nested = Optional . of ( new TopNMetric ( type , previousStop ) ) ; this . previousStop = Optional . empty ( ) ; } }

Construye una especie de tipo dado con un punto de partida y especifica explícitamente el orden (ascendente o descendente).


public void writeFileContent  ( String content , Path path , FileMatch sourceFileMatch ) throws CommandException { try { File outputFile = path . toFile ( ) ; BOMInputStream inputStream = new BOMInputStream ( FileUtils . openInputStream ( sourceFileMatch . getPath ( ) . toFile ( ) ) , false , boms ) ; if ( inputStream . hasBOM ( ) ) { FileUtils . writeByteArrayToFile ( outputFile , inputStream . getBOM ( ) . getBytes ( ) ) ; FileUtils . writeByteArrayToFile ( outputFile , content . getBytes ( inputStream . getBOMCharsetName ( ) ) , true ) ; } else { FileUtils . writeStringToFile ( outputFile , content , StandardCharsets . UTF_8 ) ; } } catch ( IOException e ) { throw new CommandException ( "Cannot write file content in path: " + path . toString ( ) , e ) ; } }

Escribe el contenido en un archivo usando el mismo formato que el archivo de origen


public WallRepostQuery message  ( String value ) { return unsafeParam ( "message" , value ) ; }

Comentario que se agregará junto con el objeto repostado.


public static double [ ] quantiles  ( int n , double [ ] values ) { values = ( double [ ] ) values . clone ( ) ; Arrays . sort ( values ) ; double [ ] qtls = new double [ n + 1 ] ; for ( int i = 0 ; i <= n ; ++ i ) { qtls [ i ] = values [ ( ( values . length - 1 ) * i ) / n ] ; } return qtls ; }

Calcule los límites de N-cuantile para un conjunto de valores.El resultado es una matriz de tamaño N + 1 que sujeta el valor mínimo en la primera entrada y luego n límites de cuantile en las entradas posteriores.


public static SpaceIndex createPathIndex  ( String path , SpaceIndexType indexType ) { return createPathIndex ( path , indexType , false ) ; }

Crea un índice de espacio para la ruta especificada con el tipo de índice especificado.


public static Map ordinalMap  ( Iterator tuples , String field , Comparator cmp ) { Object [ ] o = ordinalArray ( tuples , field , cmp ) ; HashMap map = new HashMap ( ) ; for ( int i = 0 ; i < o . length ; ++ i ) map . put ( o [ i ] , new Integer ( i ) ) ; return map ; }

Obtenga un mapeo del mapa de los valores de columna (como instancias de objetos) a su índice ordinal en una matriz ordenada.


public InfoflowResults analyzeAPKFile  ( String fileName , boolean enableImplicitFlows , boolean enableStaticFields , boolean flowSensitiveAliasing ) throws IOException , XmlPullParserException { String androidJars = System . getenv ( "ANDROID_JARS" ) ; if ( androidJars == null ) androidJars = System . getProperty ( "ANDROID_JARS" ) ; if ( androidJars == null ) throw new RuntimeException ( "Android JAR dir not set" ) ; System . out . println ( "Loading Android.jar files from " + androidJars ) ; SetupApplication setupApplication = new SetupApplication ( androidJars , fileName ) ; setupApplication . setTaintWrapper ( new EasyTaintWrapper ( "EasyTaintWrapperSource.txt" ) ) ; setupApplication . calculateSourcesSinksEntrypoints ( "SourcesAndSinks.txt" ) ; setupApplication . setEnableImplicitFlows ( enableImplicitFlows ) ; setupApplication . setEnableStaticFieldTracking ( enableStaticFields ) ; setupApplication . setFlowSensitiveAliasing ( flowSensitiveAliasing ) ; return setupApplication . runInfoflow ( ) ; }

Analiza el archivo APK dado para los flujos de datos.


public static Spacer create  ( ) { return new Spacer ( ) ; }


public boolean isApplicable  ( ) { return getViewer ( ) . getParentViewer ( ) != null && getViewer ( ) . getParentViewer ( ) . hasComparableData ( ) && getViewer ( ) . getParentViewer ( ) . getSelectedNodes ( ) . size ( ) > 0 ; }

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


public static void splashText  ( String str ) { logger . info ( str ) ; if ( splashScreenObj != null && splashScreenObj . isVisible ( ) ) { splashGraphics . setPaint ( Color . BLACK ) ; Font font = getFont ( ) ; splashGraphics . setFont ( font ) ; splashGraphics . setRenderingHint ( RenderingHints . KEY_TEXT_ANTIALIASING , RenderingHints . VALUE_TEXT_ANTIALIAS_ON ) ; splashGraphics . setColor ( Color . black ) ; splashGraphics . drawString ( str , ( int ) getTextPosition ( ) . getX ( ) , ( int ) getTextPosition ( ) . getY ( ) ) ; splashScreenObj . update ( ) ; } }


@ RequestMapping ( value = "/race-normals/{id}" , method = RequestMethod . DELETE , produces = MediaType . APPLICATION_JSON_VALUE ) @ Timed public ResponseEntity < Void > deleteRaceNormal  ( @ PathVariable String id ) { log . debug ( "REST request to delete RaceNormal : {}" , id ) ; raceNormalRepository . delete ( UUID . fromString ( id ) ) ; return ResponseEntity . ok ( ) . headers ( HeaderUtil . createEntityDeletionAlert ( "raceNormal" , id . toString ( ) ) ) . build ( ) ; }

Eliminar / Normales de carreras /: ID: Eliminar el "ID" Racenormal.


public SimplePollingContainerConfigurer eventListenerAnnotation  ( Object eventListener ) { AnnotationEventListenerAdapter annotationEventListenerAdapter = new AnnotationEventListenerAdapter ( ) ; annotationEventListenerAdapter . setDelegate ( eventListener ) ; annotationEventListenerAdapter . afterPropertiesSet ( ) ; pollingEventListenerContainer . setEventListener ( annotationEventListenerAdapter ) ; return this ; }

Establece un escuchador de eventos que utiliza anotaciones.


private void startContentSynchronizations  ( List < SyncOperation > filesToSyncContents , OwnCloudClient client ) throws OperationCancelledException { Log_OC . v ( TAG , "Starting content synchronization... " ) ; RemoteOperationResult contentsResult = null ; for ( SyncOperation op : filesToSyncContents ) { if ( mCancellationRequested . get ( ) ) { throw new OperationCancelledException ( ) ; } contentsResult = op . execute ( getStorageManager ( ) , mContext ) ; if ( ! contentsResult . isSuccess ( ) ) { if ( contentsResult . getCode ( ) == ResultCode . SYNC_CONFLICT ) { mConflictsFound ++ ; } else { mFailsInFileSyncsFound ++ ; if ( contentsResult . getException ( ) != null ) { Log_OC . e ( TAG , "Error while synchronizing file : " + contentsResult . getLogMessage ( ) , contentsResult . getException ( ) ) ; } else { Log_OC . e ( TAG , "Error while synchronizing file : " + contentsResult . getLogMessage ( ) ) ; } } } } }

Realiza una lista de operaciones de sincronización, determinando si se necesita una descarga o carga o si existe un conflicto debido a cambios tanto en los contenidos locales como remotos de cada archivo.Si se necesita descarga o carga, solicite la operación en el servicio correspondiente y continúa.


public static UUID uuidForTimeMillis  ( long timeMillis ) { return uuidForTimeMillis ( timeMillis , 0 ) ; }

Fabrica un valor uuid no único para la marca de tiempo especificada.No utilice esto como un identificador único.Solo es útil para realizar comparaciones de rango utilizando un comparador TimeUUUD-Aware.


public static Map < String , Object > jsonStringToMap  ( String jsonString , DataSchema dataSchema ) { Map < String , Object > value = new HashMap < > ( ) ; JSONParser jsonParser = new JSONParser ( ) ; try { JSONObject jsonObj = ( JSONObject ) jsonParser . parse ( jsonString ) ; for ( Object key : jsonObj . keySet ( ) ) { String mapKey = key . toString ( ) ; if ( jsonObj . get ( key ) != null ) { if ( dataSchema . isArrayElement ( ( String ) key ) ) { ArrayList < String > mapValue = StringUtils . jsonArrayStringToArrayList ( jsonObj . get ( key ) . toString ( ) ) ; value . put ( mapKey , mapValue ) ; } else { value . put ( mapKey , jsonObj . get ( key ) . toString ( ) ) ; } } } } catch ( ParseException e ) { logger . warn ( "Could not json-decode string: " + jsonString , e ) ; } catch ( NumberFormatException e ) { logger . warn ( "Could not parse field into number: " + jsonString , e ) ; } return value ; }

Método para tomar una cadena JSON de entrada y salga de un mapa <string, objeto> con arreglos como arraylist <string> objetos y valores únicos como objetos de cadena


public UrlValidator ( long options ) { this ( null , null , options ) ; }

Inicialice un urlvalidador con las opciones de validación dadas.


public WallGetByIdQuery ( VkApiClient client , List < String > posts ) { super ( client , "wall.getById" , Utils . buildParametrizedType ( List . class , WallpostFull . class ) ) ; posts ( posts ) ; }

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


@ Override public boolean accept  ( File directory , String fileName ) { if ( ! super . accept ( directory , fileName ) ) return false ; try { return DAAParser . isMeganizedDAAFile ( ( new File ( directory , fileName ) ) . getPath ( ) , true ) ; } catch ( IOException e ) { return false ; } }


protected void initConfig  ( KadminConsumerConfig config ) { }

Se llama antes de init ().Establecer cualquier configuración predeterminada aquí


@ Override public int read  ( char ch [ ] , int offset , int length ) throws IOException { int out = offset ; int count = 0 ; if ( fOffset == 0 ) { if ( length > fBuffer . length ) { length = fBuffer . length ; } if ( fSurrogate != - 1 ) { ch [ out ++ ] = ( char ) fSurrogate ; fSurrogate = - 1 ; length -- ; } count = fInputStream . read ( fBuffer , 0 , length ) ; if ( count == - 1 ) { return - 1 ; } count += out - offset ; } else { count = fOffset ; fOffset = 0 ; } final int total = count ; int in ; byte byte1 ; final byte byte0 = 0 ; for ( in = 0 ; in < total ; in ++ ) { byte1 = fBuffer [ in ] ; if ( byte1 >= byte0 ) { ch [ out ++ ] = ( char ) byte1 ; } else { break ; } } for ( ; in < total ; in ++ ) { byte1 = fBuffer [ in ] ; if ( byte1 >= byte0 ) { ch [ out ++ ] = ( char ) byte1 ; continue ; } int b0 = byte1 & 0x0FF ; if ( ( b0 & 0xE0 ) == 0xC0 && ( b0 & 0x1E ) != 0 ) { int b1 = - 1 ; if ( ++ in < total ) { b1 = fBuffer [ in ] & 0x00FF ; } else { b1 = fInputStream . read ( ) ; if ( b1 == - 1 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fOffset = 1 ; return out - offset ; } expectedByte ( 2 , 2 ) ; } count ++ ; } if ( ( b1 & 0xC0 ) != 0x80 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fOffset = 2 ; return out - offset ; } invalidByte ( 2 , 2 , b1 ) ; } int c = ( ( b0 << 6 ) & 0x07C0 ) | ( b1 & 0x003F ) ; ch [ out ++ ] = ( char ) c ; count -= 1 ; continue ; } if ( ( b0 & 0xF0 ) == 0xE0 ) { int b1 = - 1 ; if ( ++ in < total ) { b1 = fBuffer [ in ] & 0x00FF ; } else { b1 = fInputStream . read ( ) ; if ( b1 == - 1 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fOffset = 1 ; return out - offset ; } expectedByte ( 2 , 3 ) ; } count ++ ; } if ( ( b1 & 0xC0 ) != 0x80 || ( b0 == 0xED && b1 >= 0xA0 ) || ( ( b0 & 0x0F ) == 0 && ( b1 & 0x20 ) == 0 ) ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fOffset = 2 ; return out - offset ; } invalidByte ( 2 , 3 , b1 ) ; } int b2 = - 1 ; if ( ++ in < total ) { b2 = fBuffer [ in ] & 0x00FF ; } else { b2 = fInputStream . read ( ) ; if ( b2 == - 1 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fOffset = 2 ; return out - offset ; } expectedByte ( 3 , 3 ) ; } count ++ ; } if ( ( b2 & 0xC0 ) != 0x80 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fBuffer [ 2 ] = ( byte ) b2 ; fOffset = 3 ; return out - offset ; } invalidByte ( 3 , 3 , b2 ) ; } int c = ( ( b0 << 12 ) & 0xF000 ) | ( ( b1 << 6 ) & 0x0FC0 ) | ( b2 & 0x003F ) ; ch [ out ++ ] = ( char ) c ; count -= 2 ; continue ; } if ( ( b0 & 0xF8 ) == 0xF0 ) { int b1 = - 1 ; if ( ++ in < total ) { b1 = fBuffer [ in ] & 0x00FF ; } else { b1 = fInputStream . read ( ) ; if ( b1 == - 1 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fOffset = 1 ; return out - offset ; } expectedByte ( 2 , 4 ) ; } count ++ ; } if ( ( b1 & 0xC0 ) != 0x80 || ( ( b1 & 0x30 ) == 0 && ( b0 & 0x07 ) == 0 ) ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fOffset = 2 ; return out - offset ; } invalidByte ( 2 , 4 , b1 ) ; } int b2 = - 1 ; if ( ++ in < total ) { b2 = fBuffer [ in ] & 0x00FF ; } else { b2 = fInputStream . read ( ) ; if ( b2 == - 1 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fOffset = 2 ; return out - offset ; } expectedByte ( 3 , 4 ) ; } count ++ ; } if ( ( b2 & 0xC0 ) != 0x80 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fBuffer [ 2 ] = ( byte ) b2 ; fOffset = 3 ; return out - offset ; } invalidByte ( 3 , 4 , b2 ) ; } int b3 = - 1 ; if ( ++ in < total ) { b3 = fBuffer [ in ] & 0x00FF ; } else { b3 = fInputStream . read ( ) ; if ( b3 == - 1 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fBuffer [ 2 ] = ( byte ) b2 ; fOffset = 3 ; return out - offset ; } expectedByte ( 4 , 4 ) ; } count ++ ; } if ( ( b3 & 0xC0 ) != 0x80 ) { if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fBuffer [ 1 ] = ( byte ) b1 ; fBuffer [ 2 ] = ( byte ) b2 ; fBuffer [ 3 ] = ( byte ) b3 ; fOffset = 4 ; return out - offset ; } invalidByte ( 4 , 4 , b2 ) ; } int uuuuu = ( ( b0 << 2 ) & 0x001C ) | ( ( b1 >> 4 ) & 0x0003 ) ; if ( uuuuu > 0x10 ) { invalidSurrogate ( uuuuu ) ; } int wwww = uuuuu - 1 ; int zzzz = b1 & 0x000F ; int yyyyyy = b2 & 0x003F ; int xxxxxx = b3 & 0x003F ; int hs = 0xD800 | ( ( wwww << 6 ) & 0x03C0 ) | ( zzzz << 2 ) | ( yyyyyy >> 4 ) ; int ls = 0xDC00 | ( ( yyyyyy << 6 ) & 0x03C0 ) | xxxxxx ; ch [ out ++ ] = ( char ) hs ; if ( ( count -= 2 ) <= length ) { ch [ out ++ ] = ( char ) ls ; } else { fSurrogate = ls ; -- count ; } continue ; } if ( out > offset ) { fBuffer [ 0 ] = ( byte ) b0 ; fOffset = 1 ; return out - offset ; } invalidByte ( 1 , 1 , b0 ) ; } if ( DEBUG_READ ) { System . out . println ( "read(char[]," + offset + ',' + length + "): count=" + count ) ; } return count ; }

Lea los caracteres en una parte de una matriz.Este método bloqueará hasta que se disponga de alguna entrada, se produce un error de E / S, o se alcanza el final del flujo.


public boolean forEachEntry  ( TShortLongProcedure procedure ) { byte [ ] states = _states ; short [ ] keys = _set ; long [ ] values = _values ; for ( int i = keys . length ; i -- > 0 ; ) { if ( states [ i ] == FULL && ! procedure . execute ( keys [ i ] , values [ i ] ) ) { return false ; } } return true ; }

Ejecuta el procedimiento <TT> </ TT> para cada entrada de clave / valor en el mapa.


public boolean isError  ( ) { return state == State . ERROR ; }

Compruebe si se muestra el estado de error


public void createNetwork  ( int [ ] cycle0 , Taxa taxa , SplitSystem splits , PhyloTreeView view ) throws Exception { ntax = taxa . getBits ( ) . cardinality ( ) ; PhyloTree graph = ( PhyloTree ) view . getGraph ( ) ; graph . clear ( ) ; int [ ] cycle = normalizeCycle ( cycle0 ) ; for ( int i = 1 ; i <= ntax ; i ++ ) graph . setTaxon2Cycle ( cycle [ i ] , i ) ; initGraph ( taxa , splits , cycle , graph ) ; List < Integer > interiorSplits = getInteriorSplitsOrdered ( taxa , splits ) ; BitSet usedSplits = new BitSet ( ) ; { for ( Integer s : interiorSplits ) { wrapSplit ( taxa , splits , s , cycle , graph ) ; usedSplits . set ( s , true ) ; } } removeTemporaryTrivialEdges ( graph ) ; assignAnglesToEdges ( splits , cycle , graph , new HashSet ( ) ) ; assignAnglesToEdges ( splits , cycle , graph , new HashSet ( ) ) ; if ( graph . getNumberOfNodes ( ) > 0 && graph . getNumberOfEdges ( ) > 0 ) { Node v = graph . getTaxon2Node ( 1 ) ; Edge e = graph . getFirstAdjacentEdge ( v ) ; double angle = Math . PI + graph . getAngle ( e ) ; for ( e = graph . getFirstEdge ( ) ; e != null ; e = graph . getNextEdge ( e ) ) { graph . setAngle ( e , graph . getAngle ( e ) - angle ) ; } assignCoordinatesToNodes ( optionUseWeights , view ) ; } else assignCoordinatesToNodes ( optionUseWeights , view ) ; view . resetViews ( ) ; }

Calcula la vista del gráfico y el gráfico.


public CM_MOVE_IN_AIR ( int opcode , State state , State ... restStates ) { super ( opcode , state , restStates ) ; }

Construye nueva instancia de <tt> cm_move_in_air </ tt> Packet


public void cleanUp  ( ) { cacheFragment = null ; }

Llame a destruir para evitar fugas de memoria


public boolean hasConflicts  ( ) { if ( myRootNode == null ) { return false ; } return treeHasConflicts ( myRootNode ) ; }

Verifique si hay algún conflicto (múltiples archivos agregados a la misma ubicación) en el árbol.


public BasePanelPadding ( Box box ) { this . box = box ; }

Instantánea un nuevo relleno de panel base.


protected static void chooseAttack  ( NpcAI2 npcAI , int delay ) { AttackIntention attackIntention = npcAI . chooseAttackIntention ( ) ; if ( npcAI . isLogging ( ) ) { AI2Logger . info ( npcAI , "AttackManager: chooseAttack " + attackIntention + " delay " + delay ) ; } if ( ! npcAI . canThink ( ) ) { return ; } switch ( attackIntention ) { case SIMPLE_ATTACK : SimpleAttackManager . performAttack ( npcAI , delay ) ; break ; case SKILL_ATTACK : SkillAttackManager . performAttack ( npcAI , delay ) ; break ; case FINISH_ATTACK : npcAI . think ( ) ; break ; default : break ; } }


@ Override public void notifyElementUpdated  ( final Tag tag ) { List < Alarm > alarmList = evaluateAlarms ( tag ) ; notifyListeners ( tag , alarmList ) ; }

Cuando se recibe una actualización a una etiqueta de la memoria caché, evalúa las alarmas asociadas y notifica a los oyentes (Alarma + TAG).<p> Observe que la etiqueta recibida es un clon, pero como la notificación de caché es sincrónica, se mantiene un bloqueo en esta etiqueta, que, por lo tanto, no se puede modificar durante esta llamada.


private static void push  ( double [ ] vals , double val ) { for ( int i = vals . length - 1 ; i > 0 ; i -- ) { vals [ i ] = vals [ i - 1 ] ; } vals [ 0 ] = val ; }

Empuja el mejor valor de aptitud actual en una cola de historial.


public View ( String typeName , String sqlExpression , QueryResultType queryResultType , Object ... parameters ) { super ( typeName , sqlExpression , queryResultType , parameters ) ; }

Crea una vista utilizando el tipo, la expresión, el tipo de resultado y los parámetros especificados.


public double totalCount  ( ) { double total = 0.0 ; for ( Map . Entry < K , Counter < V > > entry : counterMap . entrySet ( ) ) { Counter < V > counter = entry . getValue ( ) ; total += counter . totalCount ( ) ; } return total ; }

Devuelve el total de todos los conteos en los sub-contadores.Esta implementación es lineal;Recalcula el total cada vez.


public void toggleFullscreen  ( ) { toggleFullscreenButton . click ( ) ; verifyFullscreen ( ) ; }

Método utilizado para alternar diálogo en modo de pantalla completa.


public boolean contains  ( double x , double y ) { return false ; }

Determina si las coordenadas especificadas están dentro de este <código> Polyline2D </ Code>.Este método es necesario para implementar la interfaz de forma, pero en el caso de los objetos LINE2D, siempre devuelve falso, ya que una línea no contiene área.


public static void writeStringToFile  ( File file , String data , boolean append ) throws IOException { writeStringToFile ( file , data , Charset . defaultCharset ( ) , append ) ; }

Escribe una cadena a un archivo que crea el archivo si no existe utilizando la codificación predeterminada para la VM.


public void scroll  ( @ SwingCoordinate int x , @ SwingCoordinate int y , int scrollAmount ) { }

Manijas de desplazamiento de interacciones.


public static int mulAndCheck  ( int x , int y ) { long m = ( ( long ) x ) * ( ( long ) y ) ; if ( m < Integer . MIN_VALUE || m > Integer . MAX_VALUE ) { throw new ArithmeticException ( "overflow: mul" ) ; } return ( int ) m ; }

Multiplica dos enteros, comprobando el desbordamiento.


public boolean touchInside  ( ) { return insideTouching != null && ! insideTouching . isEmpty ( ) ; }

Compruebe si el sub-hiperplano de corte toca dentro de las celdas.


protected BoardOpenTopicQuery groupId  ( int value ) { return unsafeParam ( "group_id" , value ) ; }

ID de la comunidad que posee la Junta de Discusión.


public CacheEntry ( IEntryHolder entryHolder , ITypeDesc typeDesc ) { super ( entryHolder , typeDesc ) ; _className = entryHolder . getClassName ( ) ; }

Construye en cacheIntry de IEntryholder y tipetable.


@ GET @ Signed ( selector = "anil" , domain = "server.com" ) @ Produces ( "text/plain" ) public String hello  ( ) { return "hello world" ; }

Firme un mensaje devuelto con una clave privada llamada "test._domainkey.semployzone.org" que se encuentra en el almacén de llaves.


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

Multiplicación de elementos por elemento, C = A. * B


public HadoopFileSystemStore ( FileSystem fs ) { super ( ) ; hadoopFileSystem = fs ; }

Crea un nuevo servicio de almacenamiento en el sistema de archivos HDFS dado utilizando la serialización JSON predeterminada.


public static < T extends Serializable , R > DistributedTask < T , R > task  ( Callable < T > callable , AsyncResultsReducer < T , R > reducer , AsyncResultFilter < T > filter ) { return new CallableDistributedTaskAdapter < T , R > ( callable , reducer , filter ) ; }

Construye un nuevo adaptador de tareas distribuido con un nuevo reductor y filtro separado.


public static void main  ( String [ ] args ) { File destinationDirectory = Compiler . NO_DESTINATION_DIRECTORY ; File [ ] optionalSourcePath = null ; File [ ] classPath = { new File ( "." ) } ; File [ ] optionalExtDirs = null ; File [ ] optionalBootClassPath = null ; String optionalCharacterEncoding = null ; boolean verbose = false ; boolean debugSource = true ; boolean debugLines = true ; boolean debugVars = false ; StringPattern [ ] warningHandlePatterns = Compiler . DEFAULT_WARNING_HANDLE_PATTERNS ; boolean rebuild = false ; int i ; for ( i = 0 ; i < args . length ; ++ i ) { String arg = args [ i ] ; if ( arg . charAt ( 0 ) != '-' ) break ; if ( "-d" . equals ( arg ) ) { destinationDirectory = new File ( args [ ++ i ] ) ; } else if ( "-sourcepath" . equals ( arg ) ) { optionalSourcePath = PathResourceFinder . parsePath ( args [ ++ i ] ) ; } else if ( "-classpath" . equals ( arg ) ) { classPath = PathResourceFinder . parsePath ( args [ ++ i ] ) ; } else if ( "-extdirs" . equals ( arg ) ) { optionalExtDirs = PathResourceFinder . parsePath ( args [ ++ i ] ) ; } else if ( "-bootclasspath" . equals ( arg ) ) { optionalBootClassPath = PathResourceFinder . parsePath ( args [ ++ i ] ) ; } else if ( "-encoding" . equals ( arg ) ) { optionalCharacterEncoding = args [ ++ i ] ; } else if ( "-verbose" . equals ( arg ) ) { verbose = true ; } else if ( "-g" . equals ( arg ) ) { debugSource = true ; debugLines = true ; debugVars = true ; } else if ( arg . startsWith ( "-g:" ) ) { if ( arg . indexOf ( "none" ) != - 1 ) debugSource = ( debugLines = ( debugVars = false ) ) ; if ( arg . indexOf ( "source" ) != - 1 ) debugSource = true ; if ( arg . indexOf ( "lines" ) != - 1 ) debugLines = true ; if ( arg . indexOf ( "vars" ) != - 1 ) debugVars = true ; } else if ( arg . startsWith ( "-warn:" ) ) { warningHandlePatterns = StringPattern . parseCombinedPattern ( arg . substring ( 6 ) ) ; } else if ( "-rebuild" . equals ( arg ) ) { rebuild = true ; } else if ( "-help" . equals ( arg ) ) { System . out . printf ( Compiler . USAGE , ( Object [ ] ) null ) ; System . exit ( 1 ) ; } else { System . err . println ( "Unrecognized command line option \"" + arg + "\"; try \"-help\"." ) ; System . exit ( 1 ) ; } } if ( i == args . length ) { System . err . println ( "No source files given on command line; try \"-help\"." ) ; System . exit ( 1 ) ; } File [ ] sourceFiles = new File [ args . length - i ] ; for ( int j = i ; j < args . length ; ++ j ) sourceFiles [ j - i ] = new File ( args [ j ] ) ; final Compiler compiler = new Compiler ( optionalSourcePath , classPath , optionalExtDirs , optionalBootClassPath , destinationDirectory , optionalCharacterEncoding , verbose , debugSource , debugLines , debugVars , warningHandlePatterns , rebuild ) ; try { compiler . compile ( sourceFiles ) ; } catch ( Exception e ) { if ( verbose ) { e . printStackTrace ( ) ; } else { System . err . println ( e . toString ( ) ) ; } System . exit ( 1 ) ; } }


private synchronized boolean incRef  ( ) { if ( _closed ) { return false ; } _referenceCount += 1 ; _log . info ( "Data store reference count updated: [id = {}, reference count = {}]" , _id , _referenceCount ) ; return true ; }

Incrementa el número de referencias al DataStore por uno.


private void typeAlphabetic  ( char c ) { if ( Character . isUpperCase ( c ) ) { controller . keyPress ( KeyEvent . VK_SHIFT ) ; } controller . keyPress ( Character . toUpperCase ( c ) ) ; controller . keyRelease ( Character . toUpperCase ( c ) ) ; if ( Character . isUpperCase ( c ) ) { controller . keyRelease ( KeyEvent . VK_SHIFT ) ; } }


public static Properties readProperties  ( String name ) { Properties props = new Properties ( ) ; if ( globalLoader != null ) { InputStream is = null ; try { String serviceFile = "META-INF/services/" + name . toLowerCase ( ) + ".properties" ; Enumeration < URL > locs = globalLoader . getResources ( serviceFile ) ; while ( locs . hasMoreElements ( ) ) { URL loc = locs . nextElement ( ) ; if ( loc != null ) { try { is = loc . openStream ( ) ; Properties p = new Properties ( ) ; p . load ( is ) ; props . putAll ( p ) ; } finally { if ( is != null ) { is . close ( ) ; } } } } } catch ( IOException ex ) { LOG . log ( Level . SEVERE , null , ex ) ; } finally { try { if ( is != null ) { is . close ( ) ; } } catch ( IOException ex ) { LOG . log ( Level . SEVERE , null , ex ) ; } } } return props ; }

Lea un archivo en el nombre de Meta-INF / Servicios nombrados adjuntos adjuntos con ".properties" si no se encuentra ningún archivo, se devolverá una instancia de una propiedad vacía


private static ArrayList < SelectableIcon > sampleIcons  ( ) { ArrayList < SelectableIcon > selectionDialogsColors = new ArrayList < > ( ) ; selectionDialogsColors . add ( new SelectableIcon ( "puzzle" , "Puzzle" , R . drawable . sample_icon_puzzle ) ) ; selectionDialogsColors . add ( new SelectableIcon ( "android" , "Android" , R . drawable . sample_icon_android ) ) ; selectionDialogsColors . add ( new SelectableIcon ( "bookmark" , "Bookmark" , R . drawable . sample_icon_bookmark ) ) ; return selectionDialogsColors ; }

Crea la lista de matriz de muestras de los iconos para mostrar en el diálogo.


private void trimToSize  ( int maxSize ) { while ( true ) { String key ; Bitmap value ; synchronized ( this ) { if ( size < 0 || ( map . isEmpty ( ) && size != 0 ) ) { throw new IllegalStateException ( getClass ( ) . getName ( ) + ".sizeOf() is reporting inconsistent results!" ) ; } if ( size <= maxSize || map . isEmpty ( ) ) { break ; } Map . Entry < String , Bitmap > toEvict = map . entrySet ( ) . iterator ( ) . next ( ) ; if ( toEvict == null ) { break ; } key = toEvict . getKey ( ) ; value = toEvict . getValue ( ) ; map . remove ( key ) ; size -= sizeOf ( key , value ) ; } } }

Retire las entradas mayores hasta que el total de las entradas restantes esté en o por debajo del tamaño solicitado.


protected void analyzePixels  ( ) { int len = pixels . length ; int nPix = len / 3 ; indexedPixels = new byte [ nPix ] ; Quant nq = new Quant ( pixels , len , sample ) ; colorTab = nq . process ( ) ; for ( int i = 0 ; i < colorTab . length ; i += 3 ) { byte temp = colorTab [ i ] ; colorTab [ i ] = colorTab [ i + 2 ] ; colorTab [ i + 2 ] = temp ; usedEntry [ i / 3 ] = false ; } int k = 0 ; for ( int i = 0 ; i < nPix ; i ++ ) { int index = nq . map ( pixels [ k ++ ] & 0xff , pixels [ k ++ ] & 0xff , pixels [ k ++ ] & 0xff ) ; usedEntry [ index ] = true ; indexedPixels [ i ] = ( byte ) index ; } pixels = null ; colorDepth = 8 ; palSize = 7 ; if ( transparent != null ) { transIndex = findClosest ( transparent ) ; } }

Analiza los colores de la imagen y crea un mapa de color.


public void removeDatatransferProgressListener  ( OnDatatransferProgressListener listener , Account account , OCFile file ) { if ( account == null || file == null || listener == null ) return ; String targetKey = buildRemoteName ( account . name , file . getRemotePath ( ) ) ; if ( mBoundListeners . get ( targetKey ) == listener ) { mBoundListeners . remove ( targetKey ) ; } }

Elimina a un oyente interesado en el progreso de la carga para un archivo de concreto.


public void writeExifData  ( ) throws IOException  { if ( this . outFile == null ) { return ; } if ( this . aperture != null ) { this . outFile . setAttribute ( ExifInterface . TAG_APERTURE , this . aperture ) ; } if ( this . datetime != null ) { this . outFile . setAttribute ( ExifInterface . TAG_DATETIME , this . datetime ) ; } if ( this . exposureTime != null ) { this . outFile . setAttribute ( ExifInterface . TAG_EXPOSURE_TIME , this . exposureTime ) ; } if ( this . flash != null ) { this . outFile . setAttribute ( ExifInterface . TAG_FLASH , this . flash ) ; } if ( this . focalLength != null ) { this . outFile . setAttribute ( ExifInterface . TAG_FOCAL_LENGTH , this . focalLength ) ; } if ( this . gpsAltitude != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_ALTITUDE , this . gpsAltitude ) ; } if ( this . gpsAltitudeRef != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_ALTITUDE_REF , this . gpsAltitudeRef ) ; } if ( this . gpsDateStamp != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_DATESTAMP , this . gpsDateStamp ) ; } if ( this . gpsLatitude != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_LATITUDE , this . gpsLatitude ) ; } if ( this . gpsLatitudeRef != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_LATITUDE_REF , this . gpsLatitudeRef ) ; } if ( this . gpsLongitude != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_LONGITUDE , this . gpsLongitude ) ; } if ( this . gpsLongitudeRef != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_LONGITUDE_REF , this . gpsLongitudeRef ) ; } if ( this . gpsProcessingMethod != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_PROCESSING_METHOD , this . gpsProcessingMethod ) ; } if ( this . gpsTimestamp != null ) { this . outFile . setAttribute ( ExifInterface . TAG_GPS_TIMESTAMP , this . gpsTimestamp ) ; } if ( this . iso != null ) { this . outFile . setAttribute ( ExifInterface . TAG_ISO , this . iso ) ; } if ( this . make != null ) { this . outFile . setAttribute ( ExifInterface . TAG_MAKE , this . make ) ; } if ( this . model != null ) { this . outFile . setAttribute ( ExifInterface . TAG_MODEL , this . model ) ; } if ( this . orientation != null ) { this . outFile . setAttribute ( ExifInterface . TAG_ORIENTATION , this . orientation ) ; } if ( this . whiteBalance != null ) { this . outFile . setAttribute ( ExifInterface . TAG_WHITE_BALANCE , this . whiteBalance ) ; } this . outFile . saveAttributes ( ) ; }

Escribe los datos exif almacenados anteriormente en el archivo de salida.