@ Override public final void confirmEquipmentStateIncorrect  ( ) { confirmEquipmentStateIncorrect ( null ) ; }

Envía una nota a la capa de negocios, para confirmar que el equipo no está configurado correctamente, o está conectado a su fuente de datos


Object computeResult  ( ) throws JobException  { if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . entering ( PrepareAndCommitJob . class . getName ( ) , "computeResult" ) ; } try { if ( ! isCompleted ( 0 ) ) throw new ResultNotReadyException ( "Cannot compute result " + "since there are jobs pending" ) ; } catch ( JobNotStartedException jnse ) { throw new ResultNotReadyException ( "Cannot compute result since" + " jobs were not created" ) ; } int prepstate = NOTCHANGED ; prepstate = ( ( Integer ) results [ 0 ] ) . intValue ( ) ; Integer result = new Integer ( prepstate ) ; if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( PrepareAndCommitJob . class . getName ( ) , "computeResult" , result ) ; } return result ; }

Recopila resultados parciales presentados por tareas y produce un solo resultado.


protected void configurePipeline  ( ) { if ( fCurrentDVFactory != fDatatypeValidatorFactory ) { fCurrentDVFactory = fDatatypeValidatorFactory ; setProperty ( DATATYPE_VALIDATOR_FACTORY , fCurrentDVFactory ) ; } if ( fCurrentDTDScanner != fDTDScanner ) { fCurrentDTDScanner = fDTDScanner ; setProperty ( DTD_SCANNER , fCurrentDTDScanner ) ; setProperty ( DTD_PROCESSOR , fDTDProcessor ) ; } fDTDScanner . setDTDHandler ( fDTDProcessor ) ; fDTDProcessor . setDTDSource ( fDTDScanner ) ; fDTDProcessor . setDTDHandler ( fDTDHandler ) ; if ( fDTDHandler != null ) { fDTDHandler . setDTDSource ( fDTDProcessor ) ; } fDTDScanner . setDTDContentModelHandler ( fDTDProcessor ) ; fDTDProcessor . setDTDContentModelSource ( fDTDScanner ) ; fDTDProcessor . setDTDContentModelHandler ( fDTDContentModelHandler ) ; if ( fDTDContentModelHandler != null ) { fDTDContentModelHandler . setDTDContentModelSource ( fDTDProcessor ) ; } if ( fFeatures . get ( NAMESPACES ) == Boolean . TRUE ) { if ( fCurrentScanner != fNamespaceScanner ) { fCurrentScanner = fNamespaceScanner ; setProperty ( DOCUMENT_SCANNER , fNamespaceScanner ) ; setProperty ( DTD_VALIDATOR , fDTDValidator ) ; } fNamespaceScanner . setDTDValidator ( fDTDValidator ) ; fNamespaceScanner . setDocumentHandler ( fDTDValidator ) ; fDTDValidator . setDocumentSource ( fNamespaceScanner ) ; fDTDValidator . setDocumentHandler ( fDocumentHandler ) ; if ( fDocumentHandler != null ) { fDocumentHandler . setDocumentSource ( fDTDValidator ) ; } fLastComponent = fDTDValidator ; } else { if ( fNonNSScanner == null ) { fNonNSScanner = new XMLDocumentScannerImpl ( ) ; fNonNSDTDValidator = new XMLDTDValidator ( ) ; addComponent ( fNonNSScanner ) ; addComponent ( fNonNSDTDValidator ) ; } if ( fCurrentScanner != fNonNSScanner ) { fCurrentScanner = fNonNSScanner ; setProperty ( DOCUMENT_SCANNER , fNonNSScanner ) ; setProperty ( DTD_VALIDATOR , fNonNSDTDValidator ) ; } fNonNSScanner . setDocumentHandler ( fNonNSDTDValidator ) ; fNonNSDTDValidator . setDocumentSource ( fNonNSScanner ) ; fNonNSDTDValidator . setDocumentHandler ( fDocumentHandler ) ; if ( fDocumentHandler != null ) { fDocumentHandler . setDocumentSource ( fNonNSDTDValidator ) ; } fLastComponent = fNonNSDTDValidator ; } }


public void verifyProcessDefinitionsDoNotShareKeys  ( Collection < ProcessDefinitionEntity > processDefinitions ) { Set < String > keySet = new LinkedHashSet < String > ( ) ; for ( ProcessDefinitionEntity processDefinition : processDefinitions ) { if ( keySet . contains ( processDefinition . getKey ( ) ) ) { throw new ActivitiException ( "The deployment contains process definitions with the same key (process id attribute), this is not allowed" ) ; } keySet . add ( processDefinition . getKey ( ) ) ; } }

Verifica que no hay dos definiciones de proceso comparten la misma clave, para evitar la violación de índice única de la base de datos.


public static void send  ( Fragment fragment , int requestCode , String ... permissions ) { with ( fragment ) . requestCode ( requestCode ) . permission ( permissions ) . send ( ) ; }


public RangePredicate ( Expression middle , Expression left , Expression right , Comparator cmp ) { this ( IN_IN , middle , left , right , cmp ) ; }

Crea una nueva gama.Se supone que ambos límites sean inclusivos.


public static final SM_SYSTEM_MESSAGE STR_MSG_HOUSING_AUCTION_FAIL  ( int address ) { return new SM_SYSTEM_MESSAGE ( 1401270 , address ) ; }


public GroupsSetCallbackSettingsQuery photoCommentNew  ( Boolean value ) { return unsafeParam ( "photo_comment_new" , value ) ; }

Nuevo comentario a las notificaciones de fotos.


@ Override public boolean hasField  ( String fldName ) { return ts . hasField ( fldName ) || s . hasField ( fldName ) ; }

Devuelve verdadero si el campo está en el esquema.


public void scale  ( Vector3D v ) { scale ( v . get ( 0 ) , v . get ( 1 ) , v . get ( 2 ) ) ; }


@ Override public boolean equals  ( Object obj ) { if ( this == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ! ( obj instanceof CarbonDimension ) ) { return false ; } CarbonDimension other = ( CarbonDimension ) obj ; if ( columnSchema == null ) { if ( other . columnSchema != null ) { return false ; } } else if ( ! columnSchema . equals ( other . columnSchema ) ) { return false ; } return true ; }

Para verificar si la dimensión es igual o no


private void deleteFinal  ( TableJson json , Storage storage ) { Delta delta = json . newDeleteStorage ( storage ) ; Audit audit = new AuditBuilder ( ) . set ( "_op" , "doDeleteFinal" ) . set ( "_uuid" , storage . getUuidString ( ) ) . build ( ) ; updateTableMetadata ( json . getTable ( ) , delta , audit , InvalidationScope . LOCAL ) ; }

Último paso para dejar caer una mesa o fachada.


public void onSuccess  ( int statusCode , JSONArray response ) { onSuccess ( response ) ; }

Disparado cuando una solicitud vuelve correctamente y contiene una matriz JSON en la base de la cadena de respuesta.Anular para manejar en su propio código.


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


public static String decompressForGzip  ( byte [ ] compressed ) { final int BUFFER_SIZE = compressed . length ; GZIPInputStream gis = null ; ByteArrayInputStream is = null ; try { is = new ByteArrayInputStream ( compressed ) ; gis = new GZIPInputStream ( is , BUFFER_SIZE ) ; StringBuilder string = new StringBuilder ( ) ; byte [ ] data = new byte [ BUFFER_SIZE ] ; int bytesRead ; while ( ( bytesRead = gis . read ( data ) ) != - 1 ) { string . append ( new String ( data , 0 , bytesRead , "UTF-8" ) ) ; } return string . toString ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } finally { okhttp3 . internal . Util . closeQuietly ( gis ) ; okhttp3 . internal . Util . closeQuietly ( is ) ; } return null ; }


public int indexType  ( ) { return idxType ; }


public static void addAcceptableFilterID  ( EntryArrivedRemoteEvent theEvent , String filterID ) { theEvent . addAcceptableFilterID ( filterID ) ; }

Supongamos que la lista de infilters iniciales () se llamó antes, filtrada o plantilla


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

Construye una JobNotFoundException con la causa dada de la excepción.


public VideoEditCommentQuery attachments  ( String ... value ) { return unsafeParam ( "attachments" , value ) ; }

Lista de objetos adjuntos al comentario, en el siguiente formato: "Tipo" "Owner_ID" _ "media_id" "" tipo "" - Tipo de archivo adjunto: "Photo" - Photo "Video" - Video "Audio" - Audio "DOC "- Documento" "Owner_ID" "- ID del propietario del archivo adjunto de medios."" Media_ID "" - ID de archivos adjuntos de medios.<p> Ejemplo: photo100172_166443618, photo66748_265827614


public void updateScreen  ( ) { if ( this . mc . playerController . isInCreativeMode ( ) ) { this . mc . displayGuiScreen ( new GuiContainerCreative ( this . mc . thePlayer ) ) ; } }

Llamado desde el bucle principal del juego para actualizar la pantalla.


public static SM_SYSTEM_MESSAGE STR_UNION_REJECT_HIM  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400563 , value0 ) ; }

% 0 La Alliance ha rechazado su invitación a unirse a la Liga de Alianza.


public void dump  ( ) { diphone . dump ( ) ; }


public boolean isSelected  ( ) { return getViewer ( ) != null && getViewer ( ) . getPcoaTab ( ) != null && getViewer ( ) . getPcoaTab ( ) . isFlipV ( ) ; }


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set description=" ) ; String description = np . getWordRespectCase ( ) ; np . matchIgnoreCase ( ";" ) ; getDoc ( ) . getSampleAttributeTable ( ) . put ( getDoc ( ) . getSampleNames ( ) . get ( 0 ) , SampleAttributeTable . DescriptionAttribute , description ) ; getDoc ( ) . setDirty ( true ) ; }


public static float exp  ( float fValue ) { return ( float ) Math . exp ( fValue ) ; }


public static float convertPixelsToDp  ( float px , Context context ) { Resources resources = context . getResources ( ) ; DisplayMetrics metrics = resources . getDisplayMetrics ( ) ; float dp = px / ( metrics . densityDpi / 160f ) ; return dp ; }

Este método convierte píxeles específicos del dispositivo a píxeles independientes de densidad.


@ Override public List < Period > generatePeriods  ( DateTimeUnit dateTimeUnit ) { Calendar cal = getCalendar ( ) ; dateTimeUnit . setMonth ( 1 ) ; dateTimeUnit . setDay ( 1 ) ; List < Period > periods = Lists . newArrayList ( ) ; int year = dateTimeUnit . getYear ( ) ; while ( dateTimeUnit . getYear ( ) == year ) { periods . add ( createPeriod ( dateTimeUnit , cal ) ) ; dateTimeUnit = cal . plusMonths ( dateTimeUnit , 1 ) ; } return periods ; }

Genera períodos mensuales para todo el año en el que existe el startdate del período dado.


public static char [ ] toCharArray  ( InputStream is , String encoding ) throws IOException { return toCharArray ( is , Charsets . toCharset ( encoding ) ) ; }

Obtenga los contenidos de un <código> inputstream </ code> como una matriz de caracteres utilizando la codificación de caracteres especificada.<p /> Los nombres de codificación de caracteres se pueden encontrar en <a href="http://www.iana.org/assignments/Character-sets"> IANA </A>.<p /> Este método almacena la entrada internamente, por lo que no es necesario usar un <código> tamponputstream </ code>.


public void addPage  ( @ NonNull List < MODEL > items ) { setAutoNotifyDataSetChanged ( false ) ; addAll ( items ) ; setAutoNotifyDataSetChanged ( true ) ; onNewItemsAdded ( items . size ( ) ) ; notifyItemRangeInsertedIfNeed ( size ( ) - ( items . size ( ) + getHeadersCount ( ) ) , items . size ( ) ) ; }

Añadir nueva página al adaptador.MÉTODO DE LLAMADA ONNEWITEMSADDDED CUÉDICO QUE VERIFICAR EL TAMAÑO DE ARRAY Y COMPUTE MALLITEMS ENCENDIDO, si los elementos.size () <mpagesize luego ocultan el progreso inferior y no más lo muestran.


public void clearAll  ( ) { if ( items != null ) { items . clear ( ) ; } if ( emptyItems != null ) { emptyItems . clear ( ) ; } }


public boolean types_for_sites  ( ) { return soot . PhaseOptions . getBoolean ( options , "types-for-sites" ) ; }

Tipos para sitios: representan objetos por su tipo real en lugar de al sitio de asignación.Cuando esta opción se establece en verdaderos, los tipos en lugar de los sitios de asignación se utilizan como elementos de los puntos a conjuntos.


public void findClosestConnection  ( ViewTransform viewTransform , float x , float y , ConnectionCandidate candidate , boolean mousePress ) { if ( mWidget instanceof Guideline ) { float distance ; Guideline guideline = ( Guideline ) mWidget ; ConstraintAnchor anchor = guideline . getAnchor ( ) ; ConstraintHandle handle = constraintHandle ( anchor ) ; if ( handle == null ) { return ; } if ( guideline . getOrientation ( ) == Guideline . VERTICAL ) { distance = ( handle . getDrawX ( ) - x ) * ( handle . getDrawX ( ) - x ) ; } else { distance = ( handle . getDrawY ( ) - y ) * ( handle . getDrawY ( ) - y ) ; } distance = viewTransform . getSwingDimensionF ( distance ) ; if ( distance < candidate . distance ) { candidate . anchorTarget = anchor ; candidate . distance = distance ; } } else if ( mWidget instanceof ConstraintWidgetContainer ) { for ( ConstraintHandle handle : mConstraintHandles ) { ConstraintAnchor anchor = handle . getAnchor ( ) ; if ( anchor . getType ( ) == ConstraintAnchor . Type . CENTER_X || anchor . getType ( ) == ConstraintAnchor . Type . CENTER_Y ) { continue ; } float distance = 0 ; boolean computed = false ; if ( ! mousePress && anchor . isSideAnchor ( ) ) { if ( ! anchor . isVerticalAnchor ( ) ) { if ( y >= mWidget . getDrawY ( ) && y <= mWidget . getDrawBottom ( ) ) { distance = ( handle . getDrawX ( ) - x ) * ( handle . getDrawX ( ) - x ) ; computed = true ; } } else { if ( x >= mWidget . getDrawX ( ) && x <= mWidget . getDrawRight ( ) ) { distance = ( handle . getDrawY ( ) - y ) * ( handle . getDrawY ( ) - y ) ; computed = true ; } } } if ( ! computed ) { distance = ( handle . getDrawX ( ) - x ) * ( handle . getDrawX ( ) - x ) + ( handle . getDrawY ( ) - y ) * ( handle . getDrawY ( ) - y ) ; } distance = viewTransform . getSwingDimensionF ( distance ) ; if ( distance < candidate . distance ) { candidate . anchorTarget = anchor ; candidate . distance = distance ; } } } else { for ( ConstraintHandle handle : mConstraintHandles ) { ConstraintAnchor anchor = handle . getAnchor ( ) ; float distance = ( handle . getDrawX ( ) - x ) * ( handle . getDrawX ( ) - x ) + ( handle . getDrawY ( ) - y ) * ( handle . getDrawY ( ) - y ) ; if ( anchor . getType ( ) == ConstraintAnchor . Type . CENTER_X || anchor . getType ( ) == ConstraintAnchor . Type . CENTER_Y ) { continue ; } if ( anchor . getType ( ) == ConstraintAnchor . Type . BASELINE ) { if ( ! anchor . getOwner ( ) . hasBaseline ( ) ) { continue ; } ConstraintWidget widget = anchor . getOwner ( ) ; int minX = widget . getDrawX ( ) ; int maxX = widget . getDrawRight ( ) ; float d = Math . abs ( handle . getDrawY ( ) - y ) ; if ( x >= minX && x <= maxX && d < 3 ) { distance = d * d ; } } distance = viewTransform . getSwingDimensionF ( distance ) ; if ( distance <= candidate . distance ) { if ( candidate . anchorTarget == null || candidate . anchorTarget . getPriorityLevel ( ) < anchor . getPriorityLevel ( ) ) { candidate . anchorTarget = anchor ; candidate . distance = distance ; } } } } }

Rellene la estructura de ConnectionCandidate con el anclaje más cercano que se encuentra en (x, y).Esta función no considerará los anclajes Center_x / Center_y.


private void do_pts_interval_merge  ( ) { for ( HeapInsIntervalManager him : new_pts . values ( ) ) { him . mergeFigures ( Parameters . max_pts_budget ) ; } }

Fusionar el contexto sensible a los tuplas, y hacer una sola tupla insensible


public void finishPhases  ( ) { if ( paddleTransformer != null ) { paddleTransformer ( ) . finishPhases ( ) ; } }

Esto se llama cuando termina de hollín ejecutando todas las fases interprocinales.Paddle lo usa para detener el perfilado si se habilita el perfil.


private void onFetchVideosInfoSuccess  ( JSONObject jsonObj ) { try { String videoRowsJson = jsonObj . getString ( TAG_CATEGORY ) ; VideoRow [ ] videoRows = new Gson ( ) . fromJson ( videoRowsJson , VideoRow [ ] . class ) ; for ( VideoRow videoRow : videoRows ) { if ( ! categoryVideosMap . containsKey ( videoRow . getCategory ( ) ) ) { categoryVideosMap . put ( videoRow . getCategory ( ) , new ArrayList < VideoCard > ( ) ) ; } categoryVideosMap . get ( videoRow . getCategory ( ) ) . addAll ( videoRow . getVideos ( ) ) ; mAdapter . addAll ( mAdapter . size ( ) , videoRow . getVideos ( ) ) ; startEntranceTransition ( ) ; } } catch ( JSONException ex ) { Log . e ( TAG , "A JSON error occurred while fetching videos: " + ex . toString ( ) ) ; } }

Llamado cuando los videos metadatos se recuperan de la URL.El resultado de esta búsqueda se devuelve en forma de un objeto JSON.


protected ResultObjectProvider executeQuery  ( Executor ex , ClassMetaData classMetaData , ClassMetaData [ ] types , boolean subClasses , ExpressionFactory [ ] factories , QueryExpressions [ ] expressions , Object [ ] parameters , Range range ) { final JpaQueryExecutor executor = JpaQueryExecutorFactory . newExecutor ( expressions [ 0 ] , classMetaData , parameters ) ; try { return executor . execute ( _store ) ; } catch ( Exception e ) { throw new RuntimeException ( e . getMessage ( ) , e ) ; } }

Ejecute la expresión dada contra la medida del candidato dado.


public static JSONArray toJSONArray  ( JSONTokener x ) throws JSONException { return toJSONArray ( rowToJSONArray ( x ) , x ) ; }

Produce un JSONARRAY de JSONOBJECTOS de una cadena de texto delimitada por comas, utilizando la primera fila como fuente de nombres.


private void transfer  ( Entry [ ] src , Entry [ ] dest ) { for ( int j = 0 ; j < src . length ; ++ j ) { Entry e = src [ j ] ; src [ j ] = null ; while ( e != null ) { Entry next = e . next ; Object key = e . get ( ) ; if ( key == null || ( timeToLive > 0 && ( ( TimedEntry ) e ) . isExpired ( timeToLive ) ) ) { e . next = null ; size -- ; } else { int i = indexFor ( e . hash , dest . length ) ; e . next = dest [ i ] ; dest [ i ] = e ; } e = next ; } } }

Transfiere todas las entradas de SRC a Dest Tables


public void clearSelection  ( ) { Iterator < Integer > iterator = selectedItems . iterator ( ) ; while ( iterator . hasNext ( ) ) { int i = iterator . next ( ) ; iterator . remove ( ) ; Log . v ( TAG , "clearSelection notifyItemChanged on position " + i ) ; notifyItemChanged ( i ) ; } }

Borre el estado de selección para todos los elementos uno por uno y no deja de animaciones en los elementos.<p /> <b> Nota 1: </ b> Los artículos se invalidarán y rebotar! <br/> <b> Nota 2: </ B> Este método usa java.util.iterator para evitar java.util.conCurrentModificationException.


public boolean isApplicable  ( ) { ExtractReadsViewer viewer = ( ExtractReadsViewer ) getParent ( ) ; return viewer != null && viewer . getMode ( ) . equals ( ClassificationType . Taxonomy . toString ( ) ) ; }

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


public String toXML  ( ) { StringBuffer result = new StringBuffer ( 200 ) ; result . append ( "  <Configuration>\n" ) ; result . append ( "  <id>" ) ; result . append ( this . id ) ; result . append ( "</id>\n" ) ; result . append ( "  <name>" ) ; result . append ( this . name ) ; result . append ( "</name>\n" ) ; result . append ( "  <description>" ) ; result . append ( this . description ) ; result . append ( "</description>\n" ) ; result . append ( "  <author>" ) ; result . append ( this . author ) ; result . append ( "</author>\n" ) ; result . append ( "  <creation-date>" ) ; result . append ( this . creationDate . toString ( ) ) ; result . append ( "</creation-date>\n" ) ; result . append ( "  </Configuration>\n" ) ; return result . toString ( ) ; }

Devuelve una descripción XML de la configuración.


public AppsGetCatalogQuery returnFriends  ( Boolean value ) { return unsafeParam ( "return_friends" , value ) ; }


public void requestAutoFocus  ( Handler handler , int message ) { if ( camera != null && previewing ) { autoFocusCallback . setHandler ( handler , message ) ; try { camera . autoFocus ( autoFocusCallback ) ; } catch ( RuntimeException re ) { Log . w ( TAG , "Unexpected exception while focusing" , re ) ; } } }

Pide al hardware de la cámara que realice un enfoque automático.


private void del  ( VisibleObject object , boolean isOutOfRange ) { if ( knownObjects . remove ( object . getObjectId ( ) ) != null ) { if ( knownPlayers != null ) { knownPlayers . remove ( object . getObjectId ( ) ) ; } delVisualObject ( object , isOutOfRange ) ; } }

Eliminar visibleObject de esta escuela conocida.


protected Set < D > computeReturnFlowFunction  ( FlowFunction < D > retFunction , D d1 , D d2 , N callSite , Collection < D > callerSideDs ) { return retFunction . computeTargets ( d2 ) ; }

Calcula la función de flujo de retorno para el conjunto dado de abstracciones del lado de las llamadas.


public int print  ( Graphics gc0 , PageFormat format , int pagenumber ) throws PrinterException { if ( pagenumber == 0 ) { Graphics2D gc = ( ( Graphics2D ) gc0 ) ; Dimension dim = frame . getContentPane ( ) . getSize ( ) ; int image_w = dim . width ; int image_h = dim . height ; double paper_x = format . getImageableX ( ) + 1 ; double paper_y = format . getImageableY ( ) + 1 ; double paper_w = format . getImageableWidth ( ) - 2 ; double paper_h = format . getImageableHeight ( ) - 2 ; double scale_x = paper_w / image_w ; double scale_y = paper_h / image_h ; double scale = ( scale_x <= scale_y ) ? scale_x : scale_y ; double shift_x = paper_x + ( paper_w - scale * image_w ) / 2.0 ; double shift_y = paper_y + ( paper_h - scale * image_h ) / 2.0 ; gc . translate ( shift_x , shift_y ) ; gc . scale ( scale , scale ) ; gc . setStroke ( new BasicStroke ( 1.0f ) ) ; gc . setColor ( Color . BLACK ) ; frame . getContentPane ( ) . paint ( gc ) ; return Printable . PAGE_EXISTS ; } else return Printable . NO_SUCH_PAGE ; }

Imprime la gráfica asociada con este visor.


private void initModel  ( ) { this . pagerManageModel = new PagerManageObject ( 0 ) ; AuthManager . getInstance ( ) . addOnWriteDataListener ( this ) ; if ( AuthManager . getInstance ( ) . getState ( ) == AuthManager . FREEDOM_STATE ) { AuthManager . getInstance ( ) . refreshPersonalProfile ( ) ; } }


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

Devolver información adicional sobre la configuración de privacidad del álbum para el usuario actual


private static String replaceTextAndTags  ( final SubstringFormatterDetails details , final String text , final String input , final String output ) { String convertedText = text ; if ( details . isKeepTags ( ) ) { convertedText = convertedText . replace ( input , output ) ; } else { convertedText = convertedText . replace ( details . getStartTag ( ) + input + details . getEndTag ( ) , output ) ; } return convertedText ; }

Reemplaza el texto de entrada dado (opcionalmente con las etiquetas configuradas) con el texto de salida dado.


protected void renumberColumns  ( ) { Iterator iter = m_names . iterator ( ) ; for ( int idx = 0 ; iter . hasNext ( ) ; ++ idx ) { String name = ( String ) iter . next ( ) ; ColumnEntry e = ( ColumnEntry ) m_entries . get ( name ) ; e . colnum = idx ; } }

Método interno que vuelva a mencionar las columnas en la eliminación de columnas.


public void generateCompressFiles  ( ) throws Exception  { String pwd = new File ( "src/test/resources" ) . getCanonicalPath ( ) ; String inputFile = pwd + "/data.csv" ; FileInputStream input = new FileInputStream ( inputFile ) ; Configuration conf = new Configuration ( ) ; String outputFile = pwd + "/data.csv.gz" ; FileOutputStream output = new FileOutputStream ( outputFile ) ; GzipCodec gzip = new GzipCodec ( ) ; gzip . setConf ( conf ) ; CompressionOutputStream outputStream = gzip . createOutputStream ( output ) ; int i = - 1 ; while ( ( i = input . read ( ) ) != - 1 ) { outputStream . write ( i ) ; } outputStream . close ( ) ; input . close ( ) ; input = new FileInputStream ( inputFile ) ; outputFile = pwd + "/data.csv.bz2" ; output = new FileOutputStream ( outputFile ) ; BZip2Codec bzip2 = new BZip2Codec ( ) ; bzip2 . setConf ( conf ) ; outputStream = bzip2 . createOutputStream ( output ) ; i = - 1 ; while ( ( i = input . read ( ) ) != - 1 ) { outputStream . write ( i ) ; } outputStream . close ( ) ; input . close ( ) ; input = new FileInputStream ( inputFile ) ; outputFile = pwd + "/data.csv.snappy" ; output = new FileOutputStream ( outputFile ) ; SnappyCodec snappy = new SnappyCodec ( ) ; snappy . setConf ( conf ) ; outputStream = snappy . createOutputStream ( output ) ; i = - 1 ; while ( ( i = input . read ( ) ) != - 1 ) { outputStream . write ( i ) ; } outputStream . close ( ) ; input . close ( ) ; input = new FileInputStream ( inputFile ) ; outputFile = pwd + "/data.csv.lz4" ; output = new FileOutputStream ( outputFile ) ; Lz4Codec lz4 = new Lz4Codec ( ) ; lz4 . setConf ( conf ) ; outputStream = lz4 . createOutputStream ( output ) ; i = - 1 ; while ( ( i = input . read ( ) ) != - 1 ) { outputStream . write ( i ) ; } outputStream . close ( ) ; input . close ( ) ; }

Generar archivos comprimidos, sin necesidad de llamar a este método.


public TypeVariable typeVariable  ( SootClass sootClass ) { return typeVariable ( hierarchy . typeNode ( sootClass . getType ( ) ) ) ; }

Obtenga una variable de tipo para la clase de hollín determinada.


public AsyncServerRequest ( RequestType type , GeneratedMessage req ) { this ( type , req , false ) ; }

Instantánea una nueva solicitud de servidor.


public boolean isShowDeleteButton  ( ) { return mShowDeleteButton ; }


public void testImportSubProjectWithCustomLocation  ( ) throws IOException , ConfigurationException  { VirtualFile projectRoot = createProjectWithSubprojects ( Collections . singletonMap ( pathToGradleName ( SAMPLE_PROJECT_NAME ) , SAMPLE_PROJECT_PATH ) ) ; Map < String , VirtualFile > subProjects = moduleListToMap ( GradleModuleImporter . getRelatedProjects ( projectRoot , getProject ( ) ) ) ; assertEquals ( 1 , subProjects . size ( ) ) ; VirtualFile moduleLocation = projectRoot . findFileByRelativePath ( SAMPLE_PROJECT_PATH ) ; assert moduleLocation != null ; assertEquals ( moduleLocation , subProjects . get ( pathToGradleName ( SAMPLE_PROJECT_NAME ) ) ) ; GradleModuleImporter . importModules ( this , subProjects , getProject ( ) , null ) ; assertModuleImported ( getProject ( ) , SAMPLE_PROJECT_NAME , moduleLocation ) ; }

Verifique el descubrimiento de proyectos con ubicaciones no predeterminadas.


public ProcessingUnitContainer createContainer  ( ) throws CannotCreateContainerException  { addConfigLocation ( getJettyPuResource ( ) ) ; if ( getClusterInfo ( ) != null ) { ClusterInfoParser . guessSchema ( getClusterInfo ( ) ) ; } final ResourceApplicationContext applicationContext = initApplicationContext ( ) ; ClassLoader origClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; JettyHolder jettyHolder = null ; List < FreePortGenerator . PortHandle > portHandles = new ArrayList < FreePortGenerator . PortHandle > ( ) ; try { try { ClassLoaderHelper . setContextClassLoader ( getJeeClassLoader ( ) , true ) ; } catch ( Exception e ) { } applicationContext . refresh ( ) ; jettyHolder = initJettyHolder ( applicationContext , portHandles ) ; initJettyJmx ( jettyHolder ) ; String [ ] filesToResolve = new String [ ] { "WEB-INF/web.xml" , "WEB-INF/jetty-web.xml" , "WEB-INF/jetty6-web.xml" , "WEB-INF/web-jetty.xml" } ; for ( String fileToResolve : filesToResolve ) { try { BeanLevelPropertiesUtils . resolvePlaceholders ( getBeanLevelProperties ( ) , new File ( getDeployPath ( ) , fileToResolve ) ) ; } catch ( IOException e ) { throw new CannotCreateContainerException ( "Failed to resolve properties on " + fileToResolve , e ) ; } } } finally { ClassLoaderHelper . setContextClassLoader ( origClassLoader , true ) ; } try { setCurrentApplicationContext ( applicationContext ) ; setCurrentBeanLevelProperties ( getBeanLevelProperties ( ) ) ; setCurrentClusterInfo ( getClusterInfo ( ) ) ; CommonClassLoader . getInstance ( ) . setDisableSmartGetUrl ( true ) ; WebAppContext webAppContext = initWebAppContext ( applicationContext ) ; HandlerContainer container = jettyHolder . getServer ( ) ; ContextHandlerCollection contextHandlerContainer = null ; Handler [ ] contexts = jettyHolder . getServer ( ) . getChildHandlersByClass ( ContextHandlerCollection . class ) ; if ( contexts != null && contexts . length > 0 ) { contextHandlerContainer = ( ContextHandlerCollection ) contexts [ 0 ] ; } else { while ( container != null ) { if ( container instanceof HandlerWrapper ) { HandlerWrapper wrapper = ( HandlerWrapper ) container ; Handler handler = wrapper . getHandler ( ) ; if ( handler == null ) break ; if ( handler instanceof HandlerContainer ) contextHandlerContainer = ( ContextHandlerCollection ) handler ; else throw new IllegalStateException ( "No container" ) ; } throw new IllegalStateException ( "No container" ) ; } } contextHandlerContainer . addHandler ( webAppContext ) ; if ( container . isStarted ( ) || container . isStarting ( ) ) { origClassLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; try { ClassLoaderHelper . setContextClassLoader ( getJeeClassLoader ( ) , true ) ; webAppContext . start ( ) ; } catch ( Exception e ) { throw new CannotCreateContainerException ( "Failed to start web app context" , e ) ; } finally { ClassLoaderHelper . setContextClassLoader ( origClassLoader , true ) ; } } if ( webAppContext . getUnavailableException ( ) != null ) { throw new CannotCreateContainerException ( "Failed to start web app context" , webAppContext . getUnavailableException ( ) ) ; } if ( webAppContext . isFailed ( ) ) { throw new CannotCreateContainerException ( "Failed to start web app context (exception should be logged)" ) ; } JettyProcessingUnitContainer processingUnitContainer = new JettyProcessingUnitContainer ( applicationContext , webAppContext , contextHandlerContainer , jettyHolder , portHandles ) ; logger . info ( "Deployed web application [" + processingUnitContainer . getJeeDetails ( ) . getDescription ( ) + "]" ) ; return processingUnitContainer ; } catch ( Exception e ) { try { jettyHolder . stop ( ) ; } catch ( Exception e1 ) { logger . debug ( "Failed to stop jetty after an error occured, ignoring" , e ) ; } if ( e instanceof CannotCreateContainerException ) { throw ( ( CannotCreateContainerException ) e ) ; } throw new CannotCreateContainerException ( "Failed to start web application" , e ) ; } finally { setCurrentApplicationContext ( null ) ; setCurrentBeanLevelProperties ( null ) ; setCurrentClusterInfo ( null ) ; CommonClassLoader . getInstance ( ) . setDisableSmartGetUrl ( false ) ; } }


@ Override public RealVector solve  ( final RealVector b ) { return pseudoInverse . operate ( b ) ; }

Resolver la ecuación lineal a y veces;X = b en lo menos cuadrado sentido.<p> El M & Times; n MATRIX A puede no ser cuadrado, la solución X es tal que || A y Times;X - b ||es mínimo</ p>


public EqException ( final String descr ) { this ( - 1 , descr ) ; }

Crea una nueva excepción de equipo con la descripción proporcionada.


public GroupsEditManagerQuery contactEmail  ( String value ) { return unsafeParam ( "contact_email" , value ) ; }


@ Override public boolean isValueLineVariableLength  ( ) { return mValueLineVariableLength ; }

Cuando la posibilidad de valor es Outsidelelice, esto permite la longitud de la línea variable


public static int subAndCheck  ( int x , int y ) { long s = ( long ) x - ( long ) y ; if ( s < Integer . MIN_VALUE || s > Integer . MAX_VALUE ) { throw new ArithmeticException ( "overflow: subtract" ) ; } return ( int ) s ; }

Restar dos enteros, comprobando el desbordamiento.


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


public BeforeExtended ( Expression expression1 , Expression expression2 ) { super ( expression1 , expression2 ) ; }

Instantánea un nuevo antes de extendido.


public AppTest ( String testName ) { super ( testName ) ; }


public static SM_SYSTEM_MESSAGE STR_MSG_ALARM_REMAIN_PLAYTIME  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400049 , value0 ) ; }

El tiempo de juego expirará en% * 0.Si desea continuar usando el servicio, haga pagos adicionales en la página de facturación del sitio web de Plaync.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_SignetBurst_A_TO_SELF  ( String skillcaster , int num0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200868 , skillcaster , num0 , skillname ) ; }

[% Skillcaster] recibió% de daño NUM0 a medida que usaba [% de habilidad].


public void stopAnimations  ( ) { if ( animatorSet != null ) { isStopSearchingAnim = true ; animatorSet . end ( ) ; animatorSet . cancel ( ) ; } }


@ Override public void onCompletion  ( MediaPlayer mp ) { Log_OC . v ( TAG , "completed" ) ; if ( mp != null ) { mVideoPreview . seekTo ( 0 ) ; } mMediaController . updatePausePlay ( ) ; }

Llamado cuando el archivo termine de jugar.<p /> termina la actividad.


protected String cmd  ( ) { return cmd ; }

La línea de comandos para ejecutar como un proceso externo.


public Object clone  ( ) { Body b = new JimpleBody ( getMethod ( ) ) ; b . importBodyContentsFrom ( this ) ; return b ; }

Clones del cuerpo actual, haciendo copias profundas de los contenidos.


public boolean canGetInt  ( ) { return canGet ( int . class ) ; }

Indica si se puede llamar a conveniencia, se puede llamar al método sin que se lanza una excepción para el tipo INT.


public PhotosGetAlbumsQuery albumIds  ( Integer ... value ) { return unsafeParam ( "album_ids" , value ) ; }


static boolean lessEqual  ( Object v1 , Object v2 ) { v1 = maybeConvertToString ( v1 ) ; v2 = maybeConvertToString ( v2 ) ; if ( Objects . equals ( v1 , v2 ) ) { return true ; } return less ( v1 , v2 ) ; }

Compara si un valor es menor o igual que el otro.


public static void write  ( File file , CharSequence data , Charset encoding , boolean append ) throws IOException { String str = data == null ? null : data . toString ( ) ; writeStringToFile ( file , str , encoding , append ) ; }

Escribe una carsidence a un archivo que crea el archivo si no existe.


@ Override public synchronized void write  ( int b ) { int inBufferPos = count - filledBufferSum ; if ( inBufferPos == currentBuffer . length ) { needNewBuffer ( count + 1 ) ; inBufferPos = 0 ; } currentBuffer [ inBufferPos ] = ( byte ) b ; count ++ ; }


public static long toSeconds  ( BigInteger eu , BigFraction unitsInSec ) { BigFraction editUnits = new BigFraction ( eu ) ; return editUnits . divide ( unitsInSec ) . longValue ( ) ; }

Convierte las unidades de edición a segundos de acuerdo con la tasa de edición dada.


private boolean isRemoteServerConfigured  ( Configuration config ) { String url = ( String ) systemSettingManager . getSystemSetting ( SettingKey . REMOTE_INSTANCE_URL ) ; String username = ( String ) systemSettingManager . getSystemSetting ( SettingKey . REMOTE_INSTANCE_USERNAME ) ; String password = ( String ) systemSettingManager . getSystemSetting ( SettingKey . REMOTE_INSTANCE_PASSWORD ) ; if ( isEmpty ( url ) ) { log . info ( "Remote server URL not set" ) ; return false ; } if ( isEmpty ( username ) || isEmpty ( password ) ) { log . info ( "Remote server username or password not set" ) ; return false ; } return true ; }

Indica si un servidor remoto se ha configurado correctamente.


public AirMapTrafficProperties ( JSONObject propertiesJson ) { constructFromJson ( propertiesJson ) ; }

Inicializa a AirMapTrafficProperties de JSON


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

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


private void expandAllNodes  ( JTree tree , TreePath parentPath ) { TreeNode node = ( TreeNode ) parentPath . getLastPathComponent ( ) ; for ( int i = 0 ; i < node . getChildCount ( ) ; i ++ ) { expandAllNodes ( tree , parentPath . pathByAddingChild ( node . getChildAt ( i ) ) ) ; } tree . expandPath ( parentPath ) ; }

Método recursivo para expandir todos los nodos de un árbol.


protected boolean isValidQuery  ( String query ) { if ( query == null ) { return true ; } return QUERY_PATTERN . matcher ( query ) . matches ( ) ; }

Devuelve VERDADERO si la consulta es nula o es una cadena de consulta correctamente formateada.


protected void addLanguageVariables  ( BundleContext context , Language language ) { if ( languageVariablesNotAdded ) { languageVariablesNotAdded = false ; try { URL resourceURL = context . getBundle ( ) . getResource ( "conf/Language-ext.properties" ) ; PropertyResourceBundle resourceBundle = new PropertyResourceBundle ( resourceURL . openStream ( ) ) ; Map < String , String > languageVariables = new HashMap < String , String > ( ) ; for ( String key : resourceBundle . keySet ( ) ) { languageVariables . put ( key , resourceBundle . getString ( key ) ) ; } addLanguageVariables ( languageVariables , language ) ; } catch ( IOException e ) { Logger . warn ( this , "Exception while registering language variables" , e ) ; } } }

Registra las variables de idioma que se guardan en el archivo conf / language-ext.properties en el idioma dado


public BoardGetTopicsQueryWithExtended order  ( BoardGetTopicsOrder value ) { return unsafeParam ( "order" , value ) ; }

Orden de clasificación Si no se especifica ningún orden de clasificación, los temas se devuelven en el pedido especificado por el administrador del grupo.Los temas fijos se devuelven primero, independientemente de la clasificación.


public static final byte rollLeft  ( final byte in , final int count ) { int tmp = ( int ) in & 0xFF ; tmp = tmp << ( count % 8 ) ; return ( byte ) ( ( tmp & 0xFF ) | ( tmp >> 8 ) ) ; }

Gira los trozos de <código> en </ code> <code> contar </ code> lugares a la izquierda.


public void listDirectory  ( OCFile directory , boolean onlyOnDevice ) { FileDataStorageManager storageManager = mContainerActivity . getStorageManager ( ) ; if ( storageManager != null ) { if ( directory == null ) { if ( mFile != null ) { directory = mFile ; } else { directory = storageManager . getFileByPath ( "/" ) ; if ( directory == null ) return ; } } if ( ! directory . isFolder ( ) ) { Log_OC . w ( TAG , "You see, that is not a directory -> " + directory . toString ( ) ) ; directory = storageManager . getFileById ( directory . getParentId ( ) ) ; } mAdapter . swapDirectory ( directory , storageManager , onlyOnDevice ) ; if ( mFile == null || ! mFile . equals ( directory ) ) { mCurrentListView . setSelection ( 0 ) ; } mFile = directory ; updateLayout ( ) ; } }

Enumera el directorio dado en la vista.Cuando el parámetro de entrada es nulo, actualizará el último directorio conocido.Enumere la raíz si nunca haya un directorio.


@ GET @ Path ( "manual-header" ) @ Produces ( "text/plain" ) public Response withHeader  ( ) { Response . ResponseBuilder builder = Response . ok ( "hello world" ) ; builder . header ( "custom" , "value" ) ; DKIMSignature signature = new DKIMSignature ( ) ; signature . setSelector ( "test" ) ; signature . setDomain ( "samplezone.org" ) ; signature . addHeader ( "custom" ) ; builder . header ( DKIMSignature . DKIM_SIGNATURE , signature ) ; return builder . build ( ) ; }

Firme un mensaje devuelto con una clave privada llamada "test._domainkey.semployzone.org" que se encuentra en el almacén de llaves.Un encabezado llamado "Personalizado" se incluye en el cálculo de la firma.El encabezado de la firma se crea manualmente aquí en lugar de usar anotaciones.


@ Override public Schema schema  ( ) { return schema ; }

Devuelve el esquema de la tabla ordenada, que es la misma que en la consulta subyacente.


public void sendToFilterModuleByDynamicTimedeadbandFilterer  ( final SourceDataTag currentSourceDataTag , final ValueUpdate update , final SourceDataTagQuality quality , final int filterType ) { doSendToFilterModule ( currentSourceDataTag , update , quality , true , filterType ) ; }

Envía un mensaje al módulo de estadísticas con Dynamic TimeadAdband.Solo debe usarse en el núcleo.


public void writeByte  ( int position , byte b ) { if ( position < 0 || position >= Page . pageSize ) { throw new PageException ( "readByte is out of bounds of page" ) ; } pageData . put ( position , b ) ; }

Escriba un solo byte en el archivo en la posición de desplazamiento.


public static void dismiss  ( Context context ) { try { if ( context instanceof Activity ) { if ( ( ( Activity ) context ) . isFinishing ( ) ) { loadDialog = null ; return ; } } if ( loadDialog != null && loadDialog . isShowing ( ) ) { Context loadContext = loadDialog . getContext ( ) ; if ( loadContext != null && loadContext instanceof Activity ) { if ( ( ( Activity ) loadContext ) . isFinishing ( ) ) { loadDialog = null ; return ; } } loadDialog . dismiss ( ) ; loadDialog = null ; } } catch ( Exception e ) { e . printStackTrace ( ) ; loadDialog = null ; } }


@ Override public void beforeTextChanged  ( CharSequence s , int start , int count , int after ) { }

Este método se le llama a notificarle que, dentro de <Code> S </ Code>, los caracteres <Code> contar </ code> que comienzan en <código> Inicio </ codigo> están a punto de ser reemplazados por un nuevo texto con longitud <Código> Después de </ código>.Es un error para intentar realizar cambios en <código> s </ code> de esta devolución de llamada.


@ Parameters ( name = "{index}: {0}" ) public static Collection < Object [ ] > data  ( ) { final List < Object [ ] > list = new ArrayList < Object [ ] > ( ) ; list . add ( new Object [ ] { new LoginData ( USER , PASS ) , LoginType . PTC , true , false } ) ; list . add ( new Object [ ] { new LoginData ( USER , EMPTY ) , LoginType . PTC , false , false } ) ; list . add ( new Object [ ] { new LoginData ( EMPTY , PASS ) , LoginType . PTC , false , false } ) ; list . add ( new Object [ ] { new LoginData ( EMPTY , EMPTY ) , LoginType . PTC , false , false } ) ; list . add ( new Object [ ] { new LoginData ( USER , null ) , LoginType . PTC , false , false } ) ; list . add ( new Object [ ] { new LoginData ( null , PASS ) , LoginType . PTC , false , false } ) ; list . add ( new Object [ ] { new LoginData ( null , null ) , LoginType . PTC , false , false } ) ; list . add ( new Object [ ] { new LoginData ( TOKEN ) , LoginType . GOOGLE_AUTH , false , true } ) ; list . add ( new Object [ ] { new LoginData ( null ) , LoginType . GOOGLE_AUTH , false , false } ) ; list . add ( new Object [ ] { new LoginData ( EMPTY ) , LoginType . GOOGLE_AUTH , false , false } ) ; list . add ( new Object [ ] { new LoginData ( USER , PASS , TOKEN ) , LoginType . ALL , true , true } ) ; list . add ( new Object [ ] { new LoginData ( EMPTY , EMPTY , EMPTY ) , LoginType . ALL , false , false } ) ; list . add ( new Object [ ] { new LoginData ( null , null , null ) , LoginType . ALL , false , false } ) ; list . add ( new Object [ ] { new LoginData ( USER , PASS , EMPTY ) , LoginType . ALL , true , false } ) ; list . add ( new Object [ ] { new LoginData ( USER , PASS , null ) , LoginType . ALL , true , false } ) ; list . add ( new Object [ ] { new LoginData ( EMPTY , EMPTY , TOKEN ) , LoginType . ALL , false , true } ) ; list . add ( new Object [ ] { new LoginData ( null , null , TOKEN ) , LoginType . ALL , false , true } ) ; return list ; }


public static String extractHostId  ( String hostId ) { AssertUtil . assertNotNull ( hostId , "hostId" ) ; int idx = hostId . indexOf ( HOST_ID_TENANT_SEPARATOR ) ; String id = hostId ; if ( idx != - 1 ) { id = hostId . substring ( idx + HOST_ID_TENANT_SEPARATOR . length ( ) ) ; } return id ; }

Extrae la identificación de un ID de host


private boolean useEquipmentConditionsCheck  ( ) { Conditions useEquipConditions = skillTemplate . getUseEquipmentconditions ( ) ; return useEquipConditions != null ? useEquipConditions . validate ( this ) : true ; }

Revise todas las condiciones de uso del equipo.


public static boolean isGenericTypeAnnotedWithPageObject  ( Field field ) { Class < ? > genericType = PageObjectProviderHelper . getGenericType ( field ) ; return genericType != null && genericType . isAnnotationPresent ( PageObject . class ) ; }

Los controles si el tipo de campo genérico se anotan con la anotación de objetos de página


public DefaultFieldMatrixChangingVisitor ( final T zero ) { this . zero = zero ; }


public boolean contains  ( ScoutCandidateGroup candidate ) { return mRect . contains ( candidate . mRect ) ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_DispelNPCDeBuffMental_A_TO_ME  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201255 , skillcaster , skillname ) ; }

Se eliminaron sus condiciones mentales anormales porque [% Skillcaster] usó [% de habilidad] en usted.


public static int expandRoman  ( String roman ) { int value = 0 ; for ( int p = 0 ; p < roman . length ( ) ; p ++ ) { char c = roman . charAt ( p ) ; if ( c == 'X' ) { value += 10 ; } else if ( c == 'V' ) { value += 5 ; } else if ( c == 'I' ) { if ( p + 1 < roman . length ( ) ) { char p1 = roman . charAt ( p + 1 ) ; if ( p1 == 'V' ) { value += 4 ; p ++ ; } else if ( p1 == 'X' ) { value += 9 ; p ++ ; } else { value += 1 ; } } else { value += 1 ; } } } return value ; }

Devuelve el valor entero de la cadena dada de números romanos.


public static final void isCommentWF  ( DOMErrorHandler errorHandler , DOMErrorImpl error , DOMLocatorImpl locator , String datavalue , boolean isXML11Version ) { if ( datavalue == null || ( datavalue . length ( ) == 0 ) ) { return ; } char [ ] dataarray = datavalue . toCharArray ( ) ; int datalength = dataarray . length ; if ( isXML11Version ) { int i = 0 ; while ( i < datalength ) { char c = dataarray [ i ++ ] ; if ( XML11Char . isXML11Invalid ( c ) ) { if ( XMLChar . isHighSurrogate ( c ) && i < datalength ) { char c2 = dataarray [ i ++ ] ; if ( XMLChar . isLowSurrogate ( c2 ) && XMLChar . isSupplemental ( XMLChar . supplemental ( c , c2 ) ) ) { continue ; } } String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . XML_DOMAIN , "InvalidCharInComment" , new Object [ ] { Integer . toString ( dataarray [ i - 1 ] , 16 ) } ) ; reportDOMError ( errorHandler , error , locator , msg , DOMError . SEVERITY_ERROR , "wf-invalid-character" ) ; } else if ( c == '-' && i < datalength && dataarray [ i ] == '-' ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . XML_DOMAIN , "DashDashInComment" , null ) ; reportDOMError ( errorHandler , error , locator , msg , DOMError . SEVERITY_ERROR , "wf-invalid-character" ) ; } } } else { int i = 0 ; while ( i < datalength ) { char c = dataarray [ i ++ ] ; if ( XMLChar . isInvalid ( c ) ) { if ( XMLChar . isHighSurrogate ( c ) && i < datalength ) { char c2 = dataarray [ i ++ ] ; if ( XMLChar . isLowSurrogate ( c2 ) && XMLChar . isSupplemental ( XMLChar . supplemental ( c , c2 ) ) ) { continue ; } } String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . XML_DOMAIN , "InvalidCharInComment" , new Object [ ] { Integer . toString ( dataarray [ i - 1 ] , 16 ) } ) ; reportDOMError ( errorHandler , error , locator , msg , DOMError . SEVERITY_ERROR , "wf-invalid-character" ) ; } else if ( c == '-' && i < datalength && dataarray [ i ] == '-' ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . XML_DOMAIN , "DashDashInComment" , null ) ; reportDOMError ( errorHandler , error , locator , msg , DOMError . SEVERITY_ERROR , "wf-invalid-character" ) ; } } } }

No DOM: Compruebe si el valor del comentario está bien formado


@ 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 ( onRangeSeekbarChangeListener != null ) { onRangeSeekbarChangeListener . valueChanged ( getSelectedMinValue ( ) , getSelectedMaxValue ( ) ) ; } } break ; case MotionEvent . ACTION_UP : if ( mIsDragging ) { trackTouchEvent ( event ) ; onStopTrackingTouch ( ) ; setPressed ( false ) ; touchUp ( event . getX ( pointerIndex ) , event . getY ( pointerIndex ) ) ; if ( onRangeSeekbarFinalValueListener != null ) { onRangeSeekbarFinalValueListener . finalValue ( getSelectedMinValue ( ) , getSelectedMaxValue ( ) ) ; } } else { onStartTrackingTouch ( ) ; trackTouchEvent ( event ) ; onStopTrackingTouch ( ) ; } pressedThumb = null ; invalidate ( ) ; if ( onRangeSeekbarChangeListener != null ) { onRangeSeekbarChangeListener . valueChanged ( getSelectedMinValue ( ) , getSelectedMaxValue ( ) ) ; } 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 schedule  ( String jobName , String poolName , String serviceName , Map < String , ? extends Object > context , long startTime , int frequency , int interval , int count , long endTime , int maxRetry , String eventId ) throws GenericServiceException { Transaction suspendedTransaction = null ; try { boolean beganTransaction = false ; suspendedTransaction = TransactionUtil . suspend ( ) ; try { beganTransaction = TransactionUtil . begin ( ) ; try { getJobManager ( ) . schedule ( jobName , poolName , serviceName , context , startTime , frequency , interval , count , endTime , maxRetry , eventId ) ; if ( Debug . verboseOn ( ) ) { Debug . logVerbose ( "[LocalDispatcher.schedule] : Current time : " + ( new Date ( ) ) . getTime ( ) , module ) ; Debug . logVerbose ( "[LocalDispatcher.schedule] : Runtime      : " + startTime , module ) ; Debug . logVerbose ( "[LocalDispatcher.schedule] : Frequency    : " + frequency , module ) ; Debug . logVerbose ( "[LocalDispatcher.schedule] : Interval     : " + interval , module ) ; Debug . logVerbose ( "[LocalDispatcher.schedule] : Count        : " + count , module ) ; Debug . logVerbose ( "[LocalDispatcher.schedule] : EndTime      : " + endTime , module ) ; Debug . logVerbose ( "[LocalDispatcher.schedule] : MaxRetry     : " + maxRetry , module ) ; Debug . logVerbose ( "[LocalDispatcher.schedule] : Event ID     : " + eventId , module ) ; } } catch ( JobManagerException jme ) { throw new GenericServiceException ( jme . getMessage ( ) , jme ) ; } } catch ( Exception e ) { String errMsg = "General error while scheduling job" ; Debug . logError ( e , errMsg , module ) ; try { TransactionUtil . rollback ( beganTransaction , errMsg , e ) ; } catch ( GenericTransactionException gte1 ) { Debug . logError ( gte1 , "Unable to rollback transaction" , module ) ; } } finally { try { TransactionUtil . commit ( beganTransaction ) ; } catch ( GenericTransactionException gte2 ) { Debug . logError ( gte2 , "Unable to commit scheduled job" , module ) ; } } } catch ( GenericTransactionException gte ) { Debug . logError ( gte , "Error suspending transaction while scheduling job" , module ) ; } finally { if ( suspendedTransaction != null ) { try { TransactionUtil . resume ( suspendedTransaction ) ; } catch ( GenericTransactionException gte3 ) { Debug . logError ( gte3 , "Error resuming suspended transaction after scheduling job" , module ) ; } } } }

Scipio: modificado para aceptar un eventid


private static void createTmpFile  ( CompletableFuture < NewFile > fileCreation , Path destDir , List < TSData > files ) { LOG . log ( Level . FINE , "starting temporary file creation..." ) ; try { Collections . sort ( files , Comparator . comparing ( null ) ) ; final FileChannel fd = FileUtil . createTempFile ( destDir , "monsoon-" , ".optimize-tmp" ) ; try { final DateTime begin ; try ( ToXdrTables output = new ToXdrTables ( fd , Compression . DEFAULT_OPTIMIZED ) ) { while ( ! files . isEmpty ( ) ) { TSData tsdata = files . remove ( 0 ) ; if ( fileCreation . isCancelled ( ) ) throw new IOException ( "aborted due to canceled execution" ) ; output . addAll ( tsdata ) ; } begin = new DateTime ( output . getHdrBegin ( ) , DateTimeZone . UTC ) ; if ( fileCreation . isCancelled ( ) ) throw new IOException ( "aborted due to canceled execution" ) ; } if ( fileCreation . isCancelled ( ) ) throw new IOException ( "aborted due to canceled execution" ) ; INSTALL_POOL . execute ( null ) ; } catch ( Error | RuntimeException | IOException ex ) { try { fd . close ( ) ; } catch ( Error | RuntimeException | IOException ex1 ) { ex . addSuppressed ( ex1 ) ; } throw ex ; } } catch ( Error | RuntimeException | IOException ex ) { LOG . log ( Level . WARNING , "temporary file for optimization failure" , ex ) ; synchronized ( OUTSTANDING ) { OUTSTANDING . remove ( fileCreation ) ; } fileCreation . completeExceptionally ( ex ) ; } }

La tarea de unirse a la horquilla que crea un nuevo archivo.Esta función crea un archivo temporal con los contenidos de resultados, luego lo pasa al hilo de instalación que colocará el archivo final en su lugar.


private void bitmapUpdated  ( ) { ConfigurationManager configurationManager = myFacet . getConfigurationManager ( false ) ; if ( configurationManager != null ) { IAndroidTarget target = configurationManager . getTarget ( ) ; if ( target != null ) { Module module = myFacet . getModule ( ) ; AndroidTargetData targetData = AndroidTargetData . getTargetData ( target , module ) ; if ( targetData != null ) { targetData . clearLayoutBitmapCache ( module ) ; } } } }

Llamado cuando un mapa de bits ha sido cambiado / eliminado.En ese caso, debemos eliminar los cachés para esa imagen mantenidos por el diseño lib.


public FormScalingUtil ( Class clazz , float scaleFactor ) { this . myClazz = clazz ; this . myScaleFactor = scaleFactor ; }

Construye un <CÓDIGO> FORMSCALINGUTIL </ CODE> para la clase Dada <código> .form </ code> usando un factor de escala explícito.


public boolean canZoomOutMoreY  ( ) { return ( mScaleY > mMinScaleY ) ; }

Devuelve verdadero si el gráfico aún no está completamente alejado en el eje y


public static < T > Set < T > toSet  ( T obj1 , T obj2 , T obj3 , T obj4 ) { Set < T > theSet = new LinkedHashSet < T > ( ) ; theSet . add ( obj1 ) ; theSet . add ( obj2 ) ; theSet . add ( obj3 ) ; theSet . add ( obj4 ) ; return theSet ; }

Crear un conjunto de parámetros objx pasados


private int addDEPHeads  ( NLPNode [ ] dTree , CTTree cTree ) { int currId , headId , size = dTree . length , rootCount = 0 ; CTNode cNode , ante ; NLPNode dNode ; String label ; for ( currId = 1 ; currId < size ; currId ++ ) { dNode = dTree [ currId ] ; cNode = cTree . getToken ( currId - 1 ) ; headId = cNode . getC2DInfo ( ) . getTerminalHead ( ) . getTokenID ( ) + 1 ; if ( currId == headId ) { dNode . setDependencyHead ( dTree [ 0 ] , DEPTagEn . DEP_ROOT ) ; rootCount ++ ; } else { label = cNode . getC2DInfo ( ) . getLabel ( ) ; if ( cNode . isConstituentTagAny ( S_MARK ) && cNode . getParent ( ) . isConstituentTag ( PTBTag . C_SBAR ) ) label = DEPTagEn . DEP_MARK ; dNode . setDependencyHead ( dTree [ headId ] , label ) ; } if ( ( ante = cNode . getAntecedent ( ) ) != null ) dNode . addSecondaryHead ( getNLPNode ( dTree , ante ) , DEPTagEn . DEP2_REF ) ; } return rootCount ; }


public boolean hasProgramIncidentStartDate  ( ) { return programIncidentStartDate != null ; }

Indica si estos parámetros especifican una fecha de inicio del incidente del programa.


public static IBlockState handle  ( World world , IBlockState state , BlockPos pos ) { xyz . openmodloader . event . impl . BlockEvent . Place event = new xyz . openmodloader . event . impl . BlockEvent . Place ( world , state , pos ) ; return OpenModLoader . getEventBus ( ) . post ( event ) ? event . getBlockState ( ) : null ; }

Hoja para hacer parches relacionados mucho más limpios.


public void clear  ( ) { id2row . clear ( ) ; clearSelection ( ) ; while ( model . getRowCount ( ) > 0 ) model . removeRow ( model . getRowCount ( ) - 1 ) ; model . getDataVector ( ) . clear ( ) ; }


public boolean isValid  ( String value ) { if ( value == null ) { return false ; } for ( int i = 0 ; i < patterns . length ; i ++ ) { if ( patterns [ i ] . matcher ( value ) . matches ( ) ) { return true ; } } return false ; }

Validar un valor contra el conjunto de expresiones regulares.


public void scale  ( Vector3f scale ) { m00 *= scale . getX ( ) ; m10 *= scale . getX ( ) ; m20 *= scale . getX ( ) ; m30 *= scale . getX ( ) ; m01 *= scale . getY ( ) ; m11 *= scale . getY ( ) ; m21 *= scale . getY ( ) ; m31 *= scale . getY ( ) ; m02 *= scale . getZ ( ) ; m12 *= scale . getZ ( ) ; m22 *= scale . getZ ( ) ; m32 *= scale . getZ ( ) ; }


public static String charToString  ( int value ) { return ( String . valueOf ( Character . toChars ( value ) ) ) ; }

Char a cadena.Convierta un número de carácter entero a una cadena de Java estándar (es decir, codificar el carácter como texto UTF-16).Esto aísla una de las diferencias de código entre Java 1.4 y Java 5.0 dentro de un solo método común.


public static String operationCodeToString  ( Integer code ) { return fieldsMap . get ( code ) ; }

Devuelva una representación de cadena del código de operación.


public EvolutionResult ( PokemonGo api , EvolvePokemonResponseOuterClass . EvolvePokemonResponse proto ) { this . proto = proto ; this . pokemon = new Pokemon ( api , proto . getEvolvedPokemonData ( ) ) ; }


public static SimplifiedIntervalList collectBucketedIntervalsIntersectingIntervalList  ( SimplifiedIntervalList supplyIntervals , SimplifiedIntervalList bucketedIntervals , Granularity granularity ) { Iterable < Interval > bucketedIterable = granularity . intervalsIterable ( bucketedIntervals ) ; Predicate < Interval > isIntersecting = new SimplifiedIntervalList . SkippingIntervalPredicate ( supplyIntervals , null , false ) ; return StreamSupport . stream ( bucketedIterable . spliterator ( ) , false ) . filter ( isIntersecting ) . collect ( SimplifiedIntervalList . getCollector ( ) ) ; }

Recoge todos los subintervals de una lista de intervalo de un tamaño cubierto de grano que son subintervalos de otra lista de intervalos de suministro.


public GSQueueConnectionFactoryImpl ( IJSpace space , IMessageConverter messageConverter ) throws JMSException { super ( space , messageConverter ) ; }

Construye un <código> gsqueueconnectionfactoryimpl </ code>.


public GroupsEditPlaceQuery ( VkApiClient client , UserActor actor , int groupId ) { super ( client , "groups.editPlace" , EditPlaceResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; groupId ( groupId ) ; }

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


private void postBufferAccess  ( ) { _lock . lock ( ) ; try { if ( -- _bufferUseCount == 0 ) { _flushReady . signalAll ( ) ; } } finally { _lock . unlock ( ) ; } }

Llamado después de que se lea un bloque o escrito.


public AdsGetSuggestionsQueryWithRegions country  ( Integer value ) { return unsafeParam ( "country" , value ) ; }


public double secondsSinceLast  ( ) { return ( timeSinceLast ( ) ) / 1000.0 ; }

Devuelve el número de segundos desde la última vez que se llamó temporizador


public static boolean isAtLeastJava16  ( ) { return getMajorJavaVersion ( ) >= JAVA_16 ; }

Método de conveniencia para determinar si el JVM actual es al menos Java 1.6 (Java 6).


public static SM_SYSTEM_MESSAGE STR_MSG_TOYPET_FEED_ATE_FOOD_2  ( String value0 , String value1 ) { return new SM_SYSTEM_MESSAGE ( 1400621 , value0 , value1 ) ; }

% 0 ha disfrutado comiendo% 1 y se ve contento.


public IteratorBuilder iteratorScope  ( IteratorScope iteratorScope ) { iteratorConfig . setIteratorScope ( iteratorScope ) ; return this ; }

Determina el alcance del iterador: entradas actuales, entradas futuras o ambas.


public static void writeStringToFile  ( File file , String data , Charset encoding ) throws IOException { writeStringToFile ( file , data , encoding , false ) ; }

Escribe una cadena a un archivo que crea el archivo si no existe.Nota: A partir de V1.3, los directorios de los padres del archivo se crearán si no existen.


public boolean updateCursor  ( @ NotNull ScreenView screenView , @ AndroidCoordinate int x , @ AndroidCoordinate int y ) { return false ; }

Permite que ViewGroupHandler actualice el cursor del mouse


public void loadFromFile  ( String fileName ) throws IOException { clear ( ) ; System . err . print ( "Loading " + Basic . getFileNameWithoutPath ( fileName ) + ": " ) ; try ( BufferedReader r = new BufferedReader ( new InputStreamReader ( ResourceManager . getFileAsStream ( fileName ) ) ) ) { read ( r , true ) ; } for ( Node v = getFirstNode ( ) ; v != null ; v = v . getNext ( ) ) { if ( Basic . isInteger ( getLabel ( v ) ) ) { int id = Integer . parseInt ( getLabel ( v ) ) ; setInfo ( v , id ) ; addId2Node ( id , v ) ; if ( v . getInDegree ( ) > 1 ) System . err . println ( "Reticulate node: " + id ) ; } else throw new IOException ( "Node has illegal label: " + getLabel ( v ) ) ; } if ( id2Node . get ( IdMapper . UNASSIGNED_ID ) == null ) { Node v = newNode ( ) ; addId2Node ( IdMapper . UNASSIGNED_ID , v ) ; name2IdMap . put ( IdMapper . UNASSIGNED_LABEL , IdMapper . UNASSIGNED_ID ) ; name2IdMap . setRank ( IdMapper . UNASSIGNED_ID , 0 ) ; newEdge ( getRoot ( ) , v ) ; } setInfo ( getANode ( IdMapper . UNASSIGNED_ID ) , IdMapper . UNASSIGNED_ID ) ; if ( id2Node . get ( IdMapper . LOW_COMPLEXITY_ID ) == null ) { Node v = newNode ( ) ; addId2Node ( IdMapper . LOW_COMPLEXITY_ID , v ) ; name2IdMap . put ( IdMapper . LOW_COMPLEXITY_LABEL , IdMapper . LOW_COMPLEXITY_ID ) ; name2IdMap . setRank ( IdMapper . LOW_COMPLEXITY_ID , 0 ) ; newEdge ( getRoot ( ) , v ) ; } setInfo ( getANode ( IdMapper . LOW_COMPLEXITY_ID ) , IdMapper . LOW_COMPLEXITY_ID ) ; if ( id2Node . get ( IdMapper . NOHITS_ID ) == null ) { Node v = newNode ( ) ; addId2Node ( IdMapper . NOHITS_ID , v ) ; name2IdMap . put ( IdMapper . NOHITS_LABEL , IdMapper . NOHITS_ID ) ; name2IdMap . setRank ( IdMapper . NOHITS_ID , 0 ) ; newEdge ( getRoot ( ) , v ) ; } setInfo ( getANode ( IdMapper . NOHITS_ID ) , IdMapper . NOHITS_ID ) ; if ( getName ( ) . equals ( Classification . Taxonomy ) ) { Integer taxId = name2IdMap . get ( "Bacteria" ) ; if ( taxId > 0 ) name2IdMap . setRank ( taxId , 127 ) ; taxId = name2IdMap . get ( "Archaea" ) ; if ( taxId > 0 ) name2IdMap . setRank ( taxId , 127 ) ; taxId = name2IdMap . get ( "Eukaryota" ) ; if ( taxId > 0 ) name2IdMap . setRank ( taxId , 127 ) ; } LCAAddressing . computeAddresses ( this , id2Address , address2Id ) ; System . err . println ( String . format ( "%,9d" , getNumberOfNodes ( ) ) ) ; }


private boolean handleVirtualOpcode  ( String owner , String name , String desc , boolean itf ) { if ( DEBUG ) { System . out . println ( "Virtual Method : " + name + ":" + desc + ":" + itf + ":" + isStatic ) ; } AccessRight accessRight = getMethodAccessRight ( owner , name , desc ) ; if ( accessRight == AccessRight . PUBLIC ) { return false ; } pushMethodRedirectArgumentsOnStack ( name , desc ) ; invokeStatic ( RUNTIME_TYPE , Method . getMethod ( "Object invokeProtectedMethod(Object, Object[], Class[], String)" ) ) ; handleReturnType ( desc ) ; return true ; }

Reescribe las llamadas de los métodos invocados.<P /> Las llamadas virtuales a los métodos protegidos se reescriben de acuerdo con el siguiente pseudo código: antes: <código> $ valor = $ instance.protectedVirtual (arg1, arg2);</ Código> Después de: <CÓDIGO> $ VALOR = (UNBOX) $ PAQUETES / ANDROIDESSTANTRUNTIMIE.INVOCEPROTETETETETHOD ($ instancia, objeto nuevo [] {arg1, arg2}, nueva clase [] {string.class, entero.class}, "protectedvirtual ");</ código>


public MonsterDamageCursor queryMonsterDamage  ( long id ) { return mHelper . queryMonsterDamage ( id ) ; }


private void startComponents  ( boolean spaceIsPrimary ) { for ( Iterator < ISpaceComponentsHandler > iterator = _componentsHandlers . iterator ( ) ; iterator . hasNext ( ) ; ) { ISpaceComponentsHandler handler = iterator . next ( ) ; handler . startComponents ( spaceIsPrimary ) ; } }


public static Bitmap cropBitmap  ( Bitmap bitmap , float [ ] points , int degreesRotated , boolean fixAspectRatio , int aspectRatioX , int aspectRatioY ) { Rect rect = getRectFromPoints ( points , bitmap . getWidth ( ) , bitmap . getHeight ( ) , fixAspectRatio , aspectRatioX , aspectRatioY ) ; Matrix matrix = new Matrix ( ) ; matrix . setRotate ( degreesRotated , bitmap . getWidth ( ) / 2 , bitmap . getHeight ( ) / 2 ) ; Bitmap result = Bitmap . createBitmap ( bitmap , rect . left , rect . top , rect . width ( ) , rect . height ( ) , matrix , true ) ; if ( result == bitmap ) { result = bitmap . copy ( bitmap . getConfig ( ) , false ) ; } if ( degreesRotated % 90 != 0 ) { result = cropForRotatedImage ( result , points , rect , degreesRotated , fixAspectRatio , aspectRatioX , aspectRatioY ) ; } return result ; }

Mapa de bits de imagen de recorte de mapa de bits dado con los puntos dados en el mapa de bits original y la rotación dada. <br> Si la rotación no es 0,90,1800 o 270 grados, entonces debemos recortar primero un área más grande de la imagen que contiene el rectángulo requiere el rectángulo.Gire y luego vuelva a recortar un subtangular.


public int size  ( ) { return listOfFileData . size ( ) ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_RESISTED_MAGIC_OTHER_FRIENDLY  ( String skilltarget , String skillcaster ) { return new SM_SYSTEM_MESSAGE ( 1240220 , skilltarget , skillcaster ) ; }

[% SkillTarget] resistió la magia [% Skillcaster].


public boolean isLogSegmentSequenceNumberValidationEnabled  ( ) { return this . getBoolean ( BKDL_LOGSEGMENT_SEQUENCE_NUMBER_VALIDATION_ENABLED , BKDL_LOGSEGMENT_SEQUENCE_NUMBER_VALIDATION_ENABLED_DEFAULT ) ; }

¿Se habilita si la validación del número de secuencia del segmento de registro está habilitado?


public static Collection < Menu > filterAccess  ( List < Menu > list , User me ) { if ( list == null ) { return null ; } Map < Integer , Menu > map = new TreeMap < Integer , Menu > ( ) ; for ( Menu m : list ) { String access = m . getAccess ( ) ; boolean has = false ; if ( X . isEmpty ( access ) ) { has = true ; } if ( ! has && me != null ) { if ( access . indexOf ( "|" ) > 0 ) { String [ ] ss = access . split ( "\\|" ) ; if ( me . hasAccess ( ss ) ) { has = true ; } } else if ( access . indexOf ( "&" ) > 0 ) { String [ ] ss = access . split ( "\\&" ) ; for ( String s : ss ) { if ( ! me . hasAccess ( s ) ) { has = false ; break ; } } } else if ( me . hasAccess ( access ) ) { has = true ; } } if ( has ) { int seq = m . getSeq ( ) ; while ( map . containsKey ( seq ) ) seq ++ ; map . put ( seq , m ) ; } } return map . values ( ) ; }


public void removeClassLoaderStateListener  ( Long classLoaderKey , IClassLoaderCacheStateListener listener ) { ClassLoaderContext classLoaderContext = _classLoaders . get ( classLoaderKey ) ; if ( classLoaderContext == null ) return ; classLoaderContext . removeListener ( listener ) ; }

Eliminar un oyente específico de un oyente de clase específico


Construir un URI nuevo y no inicializado.


private SimpleGroupPath ( List < String > path ) { path_ = unmodifiableList ( new ArrayList < > ( path ) ) ; }


public static int arraySize  ( final int expected , final float f ) { final long s = Math . max ( 2 , nextPowerOfTwo ( ( long ) Math . ceil ( expected / f ) ) ) ; if ( s > ( 1 << 30 ) ) throw new IllegalArgumentException ( "Too large (" + expected + " expected elements with load factor " + f + ")" ) ; return ( int ) s ; }

Devuelve la menor potencia de dos más pequeños que o igualeshorshorterofboth a 2 <sup> 30 </ sup> y mayor que o igualeshorterofboth a <Code> math.ceil (esperado / f) </ codigo>.


public boolean pageScroll  ( int direction ) { boolean toRight = direction == View . FOCUS_RIGHT ; int width = getWidth ( ) ; if ( toRight ) { mTempRect . left = getScrollX ( ) + width ; int count = getChildCount ( ) ; if ( count > 0 ) { View view = getChildAt ( count - 1 ) ; if ( mTempRect . left + width > view . getRight ( ) ) { mTempRect . left = view . getRight ( ) - width ; } } } else { mTempRect . left = getScrollX ( ) - width ; if ( mTempRect . left < 0 ) { mTempRect . left = 0 ; } } mTempRect . right = mTempRect . left + width ; return scrollAndFocus ( direction , mTempRect . left , mTempRect . right ) ; }

Maneles Desplazamiento en respuesta a una pulsación de acceso directo de "página arriba / abajo".Este método desplazará la vista por una página hacia arriba o hacia abajo y dará el enfoque al componente superior / bottomestom en el nuevo área visible.Si ningún componente es un buen candidato para el enfoque, este ScrollView reclama el enfoque.


public ScrollableContainer ( JComponent view ) { this ( view , VERTICAL_SCROLLBAR_AS_NEEDED , HORIZONTAL_SCROLLBAR_AS_NEEDED ) ; }

Crea nueva instancia de ScrollableContainer.


public SparseFieldMatrix ( final Field < T > field ) { super ( field ) ; rows = 0 ; columns = 0 ; entries = new OpenIntToFieldHashMap < T > ( field ) ; }


public static void open  ( File file ) throws IOException { Desktop . getDesktop ( ) . open ( file ) ; }

Realiza escritorio.getdesktop (). Abrir (archivo).


protected boolean isPunctuation  ( Element token ) { if ( token == null ) throw new NullPointerException ( "Received null token" ) ; if ( ! token . getTagName ( ) . equals ( MaryXML . TOKEN ) ) throw new IllegalArgumentException ( "Expected <" + MaryXML . TOKEN + "> element, got <" + token . getTagName ( ) + ">" ) ; String tokenText = MaryDomUtils . tokenText ( token ) ; return tokenText . equals ( "," ) || tokenText . equals ( "." ) || tokenText . equals ( "?" ) || tokenText . equals ( "!" ) || tokenText . equals ( ":" ) || tokenText . equals ( ";" ) ; }

Verifique si un token dado es una puntuación.


protected ContentCreateOptions newContentCreateOptions  ( DocumentMetadata meta ) { ContentCreateOptions opt = ( ContentCreateOptions ) options . clone ( ) ; if ( meta != null ) { if ( opt . getQuality ( ) == 0 ) { opt . setQuality ( meta . quality ) ; } HashSet < String > colSet = new HashSet < String > ( meta . collectionsList ) ; if ( opt . getCollections ( ) != null ) { for ( String s : opt . getCollections ( ) ) { colSet . add ( s ) ; } } opt . setCollections ( colSet . toArray ( new String [ colSet . size ( ) ] ) ) ; HashSet < ContentPermission > pSet = new HashSet < ContentPermission > ( meta . permissionsList ) ; if ( opt . getPermissions ( ) != null ) { for ( ContentPermission p : opt . getPermissions ( ) ) { pSet . add ( p ) ; } } opt . setPermissions ( pSet . toArray ( new ContentPermission [ pSet . size ( ) ] ) ) ; opt . setMetadata ( meta . meta ) ; } return opt ; }

Obtenga la información de las opciones de Conf y Metadata, configurada en el campo "Opciones"


public static String factoryLinkByStateLink  ( String stateLink ) { if ( null == stateLink ) { return null ; } List < RegistryEntry > list = entries . stream ( ) . filter ( null ) . collect ( Collectors . toList ( ) ) ; if ( list . isEmpty ( ) ) { return null ; } return list . get ( 0 ) . stateFactoryLink ; }

Recupere el enlace de fábrica para un estado de componente por el enlace del estado (instancia) del componente.


public void put  ( int i , double real , double imag ) { re [ i ] = real ; im [ i ] = imag ; }

Establece las partes reales e imaginarias del elemento ITH de A Z1.


public ClusterUnitSelector ( URL url , ClusterUnitNamer unitNamer ) throws IOException { if ( url == null ) { throw new IOException ( "Can't load cluster unit database" ) ; } boolean binary = url . getPath ( ) . endsWith ( ".bin" ) ; clunitDB = new ClusterUnitDatabase ( url , binary ) ; this . unitNamer = unitNamer ; }


public TextEditor replaceAll  ( Pattern pattern , Replacement replacement ) { Matcher m = pattern . matcher ( text ) ; int lastIndex = 0 ; StringBuilder sb = new StringBuilder ( ) ; while ( m . find ( ) ) { sb . append ( text . subSequence ( lastIndex , m . start ( ) ) ) ; sb . append ( replacement . replacement ( m ) ) ; lastIndex = m . end ( ) ; } sb . append ( text . subSequence ( lastIndex , text . length ( ) ) ) ; text = sb ; return this ; }

Reemplazar todas las apariciones del patrón.El método reemplazar () del objeto () de reemplazo se llama en cada coincidencia, y proporciona un reemplazo, que se coloca literalmente (es decir, sin interpretar $ 1, $ 2, etc.)


public static Map < String , Object > findOrdersFull  ( DispatchContext dctx , Map < String , ? extends Object > context ) { return findOrders ( dctx , context , true ) ; }

Scipio: Forderders sin limitaciones de tamaño de vista.


@ VisibleForTesting static OMAInfo parseDownloadDescriptor  ( InputStream is ) { try { XmlPullParserFactory factory = XmlPullParserFactory . newInstance ( ) ; factory . setNamespaceAware ( true ) ; XmlPullParser parser = factory . newPullParser ( ) ; parser . setInput ( is , null ) ; int eventType = parser . getEventType ( ) ; String currentAttribute = null ; OMAInfo info = new OMAInfo ( ) ; StringBuilder sb = null ; List < String > attributeList = new ArrayList < String > ( Arrays . asList ( OMA_TYPE , OMA_SIZE , OMA_OBJECT_URI , OMA_INSTALL_NOTIFY_URI , OMA_NEXT_URL , OMA_DD_VERSION , OMA_NAME , OMA_DESCRIPTION , OMA_VENDOR , OMA_INFO_URL , OMA_ICON_URI , OMA_INSTALL_PARAM ) ) ; while ( eventType != XmlPullParser . END_DOCUMENT ) { if ( eventType == XmlPullParser . START_DOCUMENT ) { if ( ! info . isEmpty ( ) ) return null ; } else if ( eventType == XmlPullParser . START_TAG ) { String tagName = parser . getName ( ) ; if ( attributeList . contains ( tagName ) ) { if ( currentAttribute != null ) { Log . w ( TAG , "Nested attributes was found in the download descriptor" ) ; return null ; } sb = new StringBuilder ( ) ; currentAttribute = tagName ; } } else if ( eventType == XmlPullParser . END_TAG ) { if ( currentAttribute != null ) { if ( ! currentAttribute . equals ( parser . getName ( ) ) ) { Log . w ( TAG , "Nested attributes was found in the download descriptor" ) ; return null ; } info . addAttributeValue ( currentAttribute , sb . toString ( ) . trim ( ) ) ; currentAttribute = null ; sb = null ; } } else if ( eventType == XmlPullParser . TEXT ) { if ( currentAttribute != null ) { sb . append ( parser . getText ( ) ) ; } } eventType = parser . next ( ) ; } return info ; } catch ( XmlPullParserException e ) { Log . w ( TAG , "Failed to parse download descriptor." , e ) ; return null ; } catch ( IOException e ) { Log . w ( TAG , "Failed to read download descriptor." , e ) ; return null ; } }

Analiza la corriente de entrada y devuelve la información de OMA.


private static double sinQ  ( double xa , double xb ) { int idx = ( int ) ( ( xa * 8.0 ) + 0.5 ) ; final double epsilon = xa - EIGHTHS [ idx ] ; final double sintA = SINE_TABLE_A [ idx ] ; final double sintB = SINE_TABLE_B [ idx ] ; final double costA = COSINE_TABLE_A [ idx ] ; final double costB = COSINE_TABLE_B [ idx ] ; double sinEpsA = epsilon ; double sinEpsB = polySine ( epsilon ) ; final double cosEpsA = 1.0 ; final double cosEpsB = polyCosine ( epsilon ) ; final double temp = sinEpsA * HEX_40000000 ; double temp2 = ( sinEpsA + temp ) - temp ; sinEpsB += sinEpsA - temp2 ; sinEpsA = temp2 ; double result ; double a = 0 ; double b = 0 ; double t = sintA ; double c = a + t ; double d = - ( c - a - t ) ; a = c ; b += d ; t = costA * sinEpsA ; c = a + t ; d = - ( c - a - t ) ; a = c ; b += d ; b = b + sintA * cosEpsB + costA * sinEpsB ; b = b + sintB + costB * sinEpsA + sintB * cosEpsB + costB * sinEpsB ; if ( xb != 0.0 ) { t = ( ( costA + costB ) * ( cosEpsA + cosEpsB ) - ( sintA + sintB ) * ( sinEpsA + sinEpsB ) ) * xb ; c = a + t ; d = - ( c - a - t ) ; a = c ; b += d ; } result = a + b ; return result ; }

Calcule sine sobre el primer cuadrante (0 <x <PI / 2).Use la combinación de la búsqueda de la tabla y la expansión polinomial racional.


@ Override public final void finalize  ( ) { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "finalize() - Removing the references to the fallbackManager and the dataRecoveryThread" ) ; } dataRecovery . stop ( ) ; dataRecovery = null ; fallbackManager . finalize ( ) ; }

Este método será llamado por el cliente cuando este último quiera liberar sus recursos antes de que se destruya.Se encarga de detener el hilo a cargo de leer el archivo de retroceso y eliminar la referencia desde el hilo a este objeto actual, por lo que el recolector de basura lo identifique como aislado.


public final Observable . Transformer < T , T > readWithLoader  ( final Object group ) { return null ; }

Lea de caché por grupo, pero si no se dispone de datos disponibles, lea del cargador y caché su elemento.


private static byte [ ] encode3to4  ( byte [ ] source , int srcOffset , int numSigBytes , byte [ ] destination , int destOffset , int options ) { byte [ ] ALPHABET = getAlphabet ( options ) ; 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 como para acomodar <var> srcoffset </ var> + 3 para la matriz </ var> para la matriz de </ var> o <var> DATOFFSET </ var> + 4 para el <var> destino </ var> matriz.El número real de bytes significativos en su matriz se proporciona por <var> numsigbytes </ var>.

 Este es el nivel más bajo de los métodos de codificación con todos los parámetros posibles.


public NelderMeadSimplex ( final int n , double sideLength , final double rho , final double khi , final double gamma , final double sigma ) { super ( n , sideLength ) ; this . rho = rho ; this . khi = khi ; this . gamma = gamma ; this . sigma = sigma ; }

Construye un simple simple con coeficientes especificados.


@ Override public Point3D clone  ( ) throws CloneNotSupportedException  { return new Point3D ( this ) ; }


public BooleanProperty showProperty  ( ) { return show ; }


public ClearModifiers add  ( ClearModifiers modifiers ) { return createIfNeeded ( super . add ( modifiers ) ) ; }

Crea una nueva instancia de modificadores que es una unión de los modificadores especificados y esta instancia.


private void writeUnknownOrDroppedTable  ( int offset , Exception e ) { byte [ ] exceptionBytes = JsonHelper . asJson ( e ) . getBytes ( Charsets . UTF_8 ) ; _buffer . position ( offset ) ; _buffer . putInt ( e instanceof UnknownTableException ? UNKNOWN : DROPPED ) ; _buffer . putInt ( exceptionBytes . length ) ; _buffer . put ( exceptionBytes ) ; }

Registra la excepción cuando una tabla fue desconocida o desconocida, por lo que se puede retirar una excepción equivalente cada vez que se lea la mesa en caché.


public JsonObject add  ( String name , long value ) { add ( name , Json . value ( value ) ) ; return this ; }

Anexa a un nuevo miembro hasta el final de este objeto, con el nombre especificado y la representación de JSON del valor <código> largo </ código> especificado.<P> Este método <strong> no evita nombres duplicados </ strong>.Llamar a este método con un nombre que ya existe en el objeto agregará a otro miembro con el mismo nombre.Para reemplazar a los miembros existentes, use el método <código> set (nombre, valor) </ código> en su lugar.Sin embargo, <strong> <em> agregue </ em> es mucho más rápido que <em> establecido </ em> </ strong> (porque no necesita buscar miembros existentes).Por lo tanto, se debe preferir agregar </ em> cuando se construyen nuevos objetos.</ p>


public INDArray asMatrix  ( BufferedImage image ) { if ( channels == 3 ) { return toBgr ( image ) ; } else { image = scalingIfNeed ( image , true ) ; int w = image . getWidth ( ) ; int h = image . getHeight ( ) ; INDArray ret = Nd4j . create ( h , w ) ; for ( int i = 0 ; i < h ; i ++ ) { for ( int j = 0 ; j < w ; j ++ ) { ret . putScalar ( new int [ ] { i , j } , image . getRGB ( i , j ) ) ; } } return ret ; } }


public ChangeModifiers ( ChangeModifiers modifiers1 , ChangeModifiers modifiers2 , ChangeModifiers modifiers3 ) { super ( modifiers1 , modifiers2 , modifiers3 ) ; }

Crea un nuevo modificador de los modificadores especificados.


private void splitOn  ( String ... columnNames ) { List < Column > columns = sortedOriginal . columns ( columnNames ) ; int byteSize = getByteSize ( columns ) ; byte [ ] currentKey = null ; String currentStringKey = null ; TemporaryView view ; Selection selection = new BitmapBackedSelection ( ) ; for ( int row = 0 ; row < sortedOriginal . rowCount ( ) ; row ++ ) { ByteBuffer byteBuffer = ByteBuffer . allocate ( byteSize ) ; String newStringKey = "" ; for ( int col = 0 ; col < columnNames . length ; col ++ ) { if ( col > 0 ) { newStringKey = newStringKey + SPLIT_STRING ; } Column c = sortedOriginal . column ( columnNames [ col ] ) ; String groupKey = sortedOriginal . get ( sortedOriginal . columnIndex ( c ) , row ) ; newStringKey = newStringKey + groupKey ; byteBuffer . put ( c . asBytes ( row ) ) ; } byte [ ] newKey = byteBuffer . array ( ) ; if ( row == 0 ) { currentKey = newKey ; currentStringKey = newStringKey ; } if ( ! Arrays . equals ( newKey , currentKey ) ) { currentKey = newKey ; view = new TemporaryView ( sortedOriginal , selection ) ; view . setName ( currentStringKey ) ; currentStringKey = newStringKey ; addViewToSubTables ( view ) ; selection = new BitmapBackedSelection ( ) ; selection . add ( row ) ; } else { selection . add ( row ) ; } } if ( ! selection . isEmpty ( ) ) { view = new TemporaryView ( sortedOriginal , selection ) ; view . setName ( currentStringKey ) ; addViewToSubTables ( view ) ; } }

Divide la tabla de clasificación en las sub-tablas, agrupando las columnas cuyos nombres se dan en SplitColumnAnames


public static void logPromoTapsRemaining  ( int promoTapsRemaining ) { if ( promoTapsRemaining >= 0 ) { RecordHistogram . recordCountHistogram ( "Search.ContextualSearchPromoTapsRemaining" , promoTapsRemaining ) ; } }

Registra el número dado de toques de promoción restante.Debe llamarse solo para los usuarios que aún están indecisos.


public TeamsExample ( ) { oredCriteria = new ArrayList < Criteria > ( ) ; }

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


protected PhotosReorderAlbumsQuery albumId  ( int value ) { return unsafeParam ( "album_id" , value ) ; }


public static boolean isNumeric  ( String value ) { return value != null && DOUBLE_VALIDATOR . isValid ( value , LOCALE ) && NUMERIC_PATTERN . matcher ( value ) . matches ( ) && value . length ( ) < NUMBER_MAX_LENGTH ; }

Devuelve VERDADERO si el argumento de cadena proporcionado debe considerarse numérico.


public static Bitmap byteToBitmap  ( byte [ ] b ) { return ( b == null || b . length == 0 ) ? null : BitmapFactory . decodeByteArray ( b , 0 , b . length ) ; }

Convertir matriz de bytes a mapa de bits


public Rectangle [ ] computeGaps  ( ) { ArrayList < Rectangle > ret = new ArrayList < > ( ) ; Rectangle gap = new Rectangle ( ) ; for ( int i = 0 ; i < mRectList . length ; i ++ ) { Rectangle rectangleA = mRectList [ i ] ; for ( int j = i + 1 ; j < mRectList . length ; j ++ ) { Rectangle rectangleB = mRectList [ j ] ; boolean viable = calculateGap ( rectangleA , rectangleB , gap ) ; if ( viable ) { for ( int k = 0 ; k < mRectList . length ; k ++ ) { if ( k != j && k != i ) { if ( gap . intersects ( mRectList [ k ] ) ) { viable = false ; break ; } } } } if ( viable ) { ret . add ( new Rectangle ( gap ) ) ; } } } return ret . toArray ( new Rectangle [ ret . size ( ) ] ) ; }

construir una matriz de rectángulos que representan las brechas utilizadas para fines de depuración


public static < R > Observable < R > ifThen  ( BooleanSupplier condition , ObservableSource < ? extends R > then , Scheduler scheduler ) { return ifThen ( condition , then , Observable . < R > empty ( ) . subscribeOn ( scheduler ) ) ; }

Devuelva un observable que emite las emisiones de un observable específico si una condición se evalúa a VERDADERO, de lo contrario, devuelve un observable vacío que se ejecuta en un programador específico.<p> <img anchth = "640" src = "https://raw.github.com/wiki/reactivex/rxjava/images/rx- operadores/ifthen.s.png" alt = "">


private int readSkipWs  ( ) throws IOException  { for ( ; ; ) { int c = _in . read ( ) ; if ( c == - 1 || c > ' ' ) { return c ; } } }

Obtenga el próximo char en la corriente, saltando espacios en blanco.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "addSample" ) ; Set < Pair < String , String > > sampleAndSources = new HashSet < > ( ) ; do { String sampleName = "ALL" ; if ( np . peekMatchIgnoreCase ( "sample" ) ) { np . matchIgnoreCase ( "sample=" ) ; sampleName = np . getWordRespectCase ( ) ; } np . matchIgnoreCase ( "source=" ) ; String source = np . getWordFileNamePunctuation ( ) ; sampleAndSources . add ( new Pair < > ( sampleName , source ) ) ; } while ( np . peekMatchAnyTokenIgnoreCase ( "sample source" ) ) ; boolean overwrite = false ; if ( np . peekMatchIgnoreCase ( "overwrite" ) ) { np . matchIgnoreCase ( "overwrite=" ) ; overwrite = np . getBoolean ( ) ; } np . matchIgnoreCase ( ";" ) ; final SamplesViewer samplesViewer = ( SamplesViewer ) getDir ( ) . getViewerByClass ( SamplesViewer . class ) ; if ( samplesViewer != null ) samplesViewer . getSamplesTable ( ) . getDataGrid ( ) . save ( samplesViewer . getSampleAttributeTable ( ) , null ) ; LinkedList < String > skipped = new LinkedList < > ( ) ; Document doc = ( ( Director ) getDir ( ) ) . getDocument ( ) ; int count = 0 ; for ( Pair < String , String > pair : sampleAndSources ) { String sampleName = pair . get1 ( ) ; String source = pair . get2 ( ) ; if ( Basic . isInteger ( source ) ) { Director sourceDir = ( Director ) ProjectManager . getProject ( Basic . parseInt ( source ) ) ; if ( sourceDir == null ) throw new IOException ( "Document not found (pid=" + source + ")" ) ; if ( ! sampleName . equalsIgnoreCase ( "ALL" ) && ! sourceDir . getDocument ( ) . getSampleNames ( ) . contains ( sampleName ) ) throw new IOException ( "Sample not found in document (pid=" + source + "): " + sampleName ) ; if ( sampleName . equalsIgnoreCase ( "ALL" ) ) { for ( String sample : sourceDir . getDocument ( ) . getSampleNames ( ) ) { if ( ! overwrite && doc . getSampleNames ( ) . contains ( sample ) ) { skipped . add ( sample ) ; } else { doc . addSample ( sample , sourceDir . getDocument ( ) ) ; count ++ ; } } } else { if ( ! overwrite && doc . getSampleNames ( ) . contains ( sampleName ) ) { skipped . add ( sampleName ) ; } else { doc . addSample ( sampleName , sourceDir . getDocument ( ) ) ; count ++ ; } } } else { if ( ! ( new File ( source ) ) . isFile ( ) ) throw new IOException ( "File not found: " + source ) ; Director sourceDir = Director . newProject ( ) ; try { sourceDir . executeImmediately ( "open file='" + source + "';update;" , sourceDir . getMainViewer ( ) . getCommandManager ( ) ) ; if ( ! sampleName . equalsIgnoreCase ( "ALL" ) && ! sourceDir . getDocument ( ) . getSampleNames ( ) . contains ( sampleName ) ) throw new IOException ( "Sample not found in document (pid=" + source + "): " + sampleName ) ; if ( sampleName . equalsIgnoreCase ( "ALL" ) ) { for ( String sample : sourceDir . getDocument ( ) . getSampleNames ( ) ) { if ( ! overwrite && doc . getSampleNames ( ) . contains ( sample ) ) { skipped . add ( sample ) ; } else { doc . addSample ( sample , sourceDir . getDocument ( ) ) ; count ++ ; } } } else { if ( ! overwrite && doc . getSampleNames ( ) . contains ( sampleName ) ) { skipped . add ( sampleName ) ; } else { doc . addSample ( sampleName , sourceDir . getDocument ( ) ) ; count ++ ; } } } finally { sourceDir . close ( ) ; } } } if ( skipped . size ( ) > 0 ) { NotificationsInSwing . showWarning ( getViewer ( ) . getFrame ( ) , String . format ( "Skipped %d samples because their names are already present, e.g.: %s" , skipped . size ( ) , skipped . iterator ( ) . next ( ) ) ) ; } if ( count > 0 ) { doc . setDirty ( true ) ; if ( samplesViewer != null ) samplesViewer . getSamplesTable ( ) . getDataGrid ( ) . load ( doc . getSampleAttributeTable ( ) ) ; try { doc . processReadHits ( ) ; NotificationsInSwing . showInformation ( getViewer ( ) . getFrame ( ) , String . format ( "Added %d reads to file '%s'" , count , doc . getMeganFile ( ) . getName ( ) ) ) ; } catch ( CanceledException e ) { Basic . caught ( e ) ; } ( ( Director ) getDir ( ) ) . getMainViewer ( ) . setDoReInduce ( true ) ; } }


public static TableModel findPragmaTableInfo  ( String tableName , SQLiteDatabase db ) { if ( isTableExists ( tableName , db ) ) { List < String > uniqueColumns = findUniqueColumns ( tableName , db ) ; TableModel tableModelDB = new TableModel ( ) ; tableModelDB . setTableName ( tableName ) ; String checkingColumnSQL = "pragma table_info(" + tableName + ")" ; Cursor cursor = null ; try { cursor = db . rawQuery ( checkingColumnSQL , null ) ; if ( cursor . moveToFirst ( ) ) { do { ColumnModel columnModel = new ColumnModel ( ) ; String name = cursor . getString ( cursor . getColumnIndexOrThrow ( "name" ) ) ; String type = cursor . getString ( cursor . getColumnIndexOrThrow ( "type" ) ) ; boolean nullable = cursor . getInt ( cursor . getColumnIndexOrThrow ( "notnull" ) ) != 1 ; boolean unique = uniqueColumns . contains ( name ) ; String defaultValue = cursor . getString ( cursor . getColumnIndexOrThrow ( "dflt_value" ) ) ; columnModel . setColumnName ( name ) ; columnModel . setColumnType ( type ) ; columnModel . setIsNullable ( nullable ) ; columnModel . setIsUnique ( unique ) ; if ( defaultValue != null ) { defaultValue = defaultValue . replace ( "'" , "" ) ; } else { defaultValue = "" ; } columnModel . setDefaultValue ( defaultValue ) ; tableModelDB . addColumnModel ( columnModel ) ; } while ( cursor . moveToNext ( ) ) ; } } catch ( Exception e ) { e . printStackTrace ( ) ; throw new DatabaseGenerateException ( e . getMessage ( ) ) ; } finally { if ( cursor != null ) { cursor . close ( ) ; } } return tableModelDB ; } else { throw new DatabaseGenerateException ( DatabaseGenerateException . TABLE_DOES_NOT_EXIST_WHEN_EXECUTING + tableName ) ; } }

Mire desde la base de datos para encontrar una tabla llamada la misma que el nombre de la tabla en el modelo de tabla.Luego ite las columnas y los tipos de esta tabla para crear una nueva instancia de modelo de tabla.Si no hay una tabla de este tipo en la base de datos, luego lanza la base de datos de la base de datos.


public Application createJmxApplication  ( String connectionString , String displayName , EnvironmentProvider provider , boolean persistent ) throws JmxApplicationException { String username = getUsername ( provider ) ; String suggestedName = JmxApplicationProvider . getSuggestedName ( displayName , connectionString , username ) ; return createJmxApplicationImpl ( connectionString , displayName , suggestedName , provider , persistent , false ) ; }

Crea nueva aplicación definida por la conexión JMX y la agrega al árbol de aplicaciones.Lanza una excepción JMxApplicationException si no se puede crear la solicitud.


public void clearDeclinedPaymentMethods  ( Delegator delegator ) { String orderId = this . getOrderId ( ) ; if ( UtilValidate . isNotEmpty ( orderId ) ) { try { List < GenericValue > declinedPaymentMethods = EntityQuery . use ( delegator ) . from ( "OrderPaymentPreference" ) . where ( "orderId" , orderId , "statusId" , "PAYMENT_DECLINED" ) . queryList ( ) ; if ( ! UtilValidate . isEmpty ( declinedPaymentMethods ) ) { List < String > paymentMethodIdsToRemove = new ArrayList < String > ( ) ; for ( GenericValue opp : declinedPaymentMethods ) { paymentMethodIdsToRemove . add ( opp . getString ( "paymentMethodId" ) ) ; } clearPaymentMethodsById ( paymentMethodIdsToRemove ) ; } } catch ( GenericEntityException ex ) { Debug . logError ( "Unable to remove declined payment methods from cart due to " + ex . getMessage ( ) , module ) ; return ; } } }

Eliminar métodos de pago rechazados para un pedido desde el carrito.La idea es llamar a esto después de rechazar un intento de orden.


public void clear  ( ) { if ( data != null ) { for ( int i = 0 ; i < ( length * 5 ) ; i ++ ) data [ i ] = null ; } length = 0 ; }

Borre la lista de atributos para reutilizar.<p> <p> Tenga en cuenta que la pequeña memoria se libera con esta llamada: la matriz actual se mantiene para que se pueda reutilizar.</ p>


public static boolean isSupported  ( DataFlavor source , DataFlavor destination ) { if ( supportedMap . isEmpty ( ) ) { populateSupportedMap ( ) ; } List < DataFlavor > list = supportedMap . get ( destination ) ; if ( list != null ) { return list . contains ( source ) ; } return false ; }


public Builder addScanRange  ( String groupId , String tokenRangeId , ScanRange scanRange ) { ImmutableList . Builder < ScanRange > tokenRangeScanRanges = _scanRangesByGroupAndAndTokenRange . get ( groupId , tokenRangeId ) ; if ( tokenRangeScanRanges == null ) { tokenRangeScanRanges = ImmutableList . builder ( ) ; _scanRangesByGroupAndAndTokenRange . put ( groupId , tokenRangeId , tokenRangeScanRanges ) ; } tokenRangeScanRanges . add ( scanRange ) ; return this ; }

Agrega un rango de escaneo para un rango de token en particular en un grupo.Normalmente, el grupo corresponde a un bastidor de Cassandra (o zona de disponibilidad en Amazon) y la gama de token corresponde al identificador único para el servidor físico que "posee" el rango de token en el bastidor.Las ID reales no son importantes, siempre que el mismo valor se use constantemente para cada grupo y rango de token.


public boolean hasColumn  ( String columnName ) { Integer idx = columnNamesIndex . get ( columnName ) ; return idx != null ; }

Determine si el esquema tiene una columna con el nombre especificado


public static < T > Response < T > startRequestSync  ( IParserRequest < T > request ) { return startRequestSync ( DiskCacheStore . INSTANCE , request ) ; }

Iniciar una solicitud de sincronización.


public static void insertMagicString  ( JTextComponent target , int dot , String toInsert ) throws BadLocationException { Document doc = target . getDocument ( ) ; if ( toInsert . indexOf ( '|' ) >= 0 ) { int ofst = toInsert . indexOf ( '|' ) ; int ofst2 = toInsert . indexOf ( '|' , ofst + 1 ) ; toInsert = toInsert . replace ( "|" , "" ) ; doc . insertString ( dot , toInsert , null ) ; dot = target . getCaretPosition ( ) ; final int strLength = toInsert . length ( ) ; if ( ofst2 > 0 ) { target . select ( dot + ofst - strLength , dot + ofst2 - strLength - 1 ) ; } else { target . setCaretPosition ( dot + ofst - strLength ) ; } } else { doc . insertString ( dot , toInsert , null ) ; } }

Inserte la cadena dada en el componente de texto.Si la cadena contiene el |Barra vertical Char, entonces no se insertará, y el cursor se establecerá en su ubicación.Si hay dos barras verticales, entonces se seleccionará el texto entre ellos <B> FixMe: Agregar siguiente función Si la cadena es multilínea, se sangrará con la misma indentación que la línea con POS. </ B>


public String writeDataFile  ( ) throws DataFileException  { ByteArrayOutputStream bos = new ByteArrayOutputStream ( ) ; writeDataFile ( bos ) ; String outString = bos . toString ( ) ; try { if ( bos != null ) bos . close ( ) ; } catch ( IOException e ) { Debug . logWarning ( e , module ) ; } return outString ; }

Devuelve los registros en este objeto de archivo de datos como contenido de archivo de datos de texto simple


@ Override public void attributeSelection  ( String field ) { }