private void downloadPhotoSuccess  ( Context c , long missionId ) { for ( int i = 0 ; i < DownloadHelper . getInstance ( c ) . entityList . size ( ) ; i ++ ) { if ( DownloadHelper . getInstance ( c ) . entityList . get ( i ) . missionId == missionId ) { DownloadMissionEntity entity = DownloadHelper . getInstance ( c ) . entityList . get ( i ) ; c . sendBroadcast ( new Intent ( Intent . ACTION_MEDIA_SCANNER_SCAN_FILE , Uri . parse ( "file://" + Environment . getExternalStorageDirectory ( ) + Mysplash . DOWNLOAD_PATH + entity . photoId + Mysplash . DOWNLOAD_FORMAT ) ) ) ; switch ( entity . downloadType ) { case DownloadHelper . DOWNLOAD_TYPE : if ( Mysplash . getInstance ( ) != null && Mysplash . getInstance ( ) . getTopActivity ( ) != null ) { simpleDownloadSuccess ( entity ) ; } break ; case DownloadHelper . SHARE_TYPE : { if ( Mysplash . getInstance ( ) != null && Mysplash . getInstance ( ) . getTopActivity ( ) != null ) { shareDownloadSuccess ( entity ) ; } break ; } case DownloadHelper . WALLPAPER_TYPE : { if ( Mysplash . getInstance ( ) != null && Mysplash . getInstance ( ) . getTopActivity ( ) != null ) { wallpaperDownloadSuccess ( entity ) ; } break ; } } DownloadHelper . getInstance ( c ) . downloadPhotoSuccess ( i ) ; return ; } } }


public boolean hasASTForSootName  ( String name ) { if ( sootNameToAST == null ) return false ; if ( sootNameToAST . containsKey ( name ) ) return true ; return false ; }

Devuelve VERDADERO si hay una AST disponibles para la clase de hollín determinada


public int [ ] [ ] fromFile  ( File file ) throws IOException { BufferedImage image = ImageIO . read ( file ) ; image = scalingIfNeed ( image , true ) ; return toIntArrayArray ( image ) ; }


public static boolean isInternationalPhoneNumber  ( String s ) { if ( isEmpty ( s ) ) return defaultEmptyOK ; String normalizedPhone = stripCharsInBag ( s , phoneNumberDelimiters ) ; return isPositiveInteger ( normalizedPhone ) ; }

isinternationalphonenenumber devuelve verdadero si la cadena S es un número de teléfono internacional válido.Deben ser solo dígitos;Cualquier longitud ok.Puede ser prefijado por + carácter.


private void drawShadows  ( Canvas canvas ) { int height = ( int ) ( 3 * getItemHeight ( ) ) ; topShadow . setBounds ( 0 , 0 , getWidth ( ) , height ) ; topShadow . draw ( canvas ) ; bottomShadow . setBounds ( 0 , getHeight ( ) - height , getWidth ( ) , getHeight ( ) ) ; bottomShadow . draw ( canvas ) ; }

Dibuja sombras en la parte superior e inferior del control.


public String resolveNotation  ( String notationName , String publicId , String systemId ) throws IOException { String resolved = null ; catalogManager . debug . message ( 3 , "resolveNotation(" + notationName + "," + publicId + "," + systemId + ")" ) ; systemId = normalizeURI ( systemId ) ; if ( publicId != null && publicId . startsWith ( "urn:publicid:" ) ) { publicId = PublicId . decodeURN ( publicId ) ; } if ( systemId != null && systemId . startsWith ( "urn:publicid:" ) ) { systemId = PublicId . decodeURN ( systemId ) ; if ( publicId != null && ! publicId . equals ( systemId ) ) { catalogManager . debug . message ( 1 , "urn:publicid: system identifier differs from public identifier; using public identifier" ) ; systemId = null ; } else { publicId = systemId ; systemId = null ; } } if ( systemId != null ) { resolved = resolveLocalSystem ( systemId ) ; if ( resolved != null ) { return resolved ; } } if ( publicId != null ) { resolved = resolveLocalPublic ( NOTATION , notationName , publicId , systemId ) ; if ( resolved != null ) { return resolved ; } } boolean over = default_override ; Enumeration en = catalogEntries . elements ( ) ; while ( en . hasMoreElements ( ) ) { CatalogEntry e = ( CatalogEntry ) en . nextElement ( ) ; if ( e . getEntryType ( ) == OVERRIDE ) { over = e . getEntryArg ( 0 ) . equalsIgnoreCase ( "YES" ) ; continue ; } if ( e . getEntryType ( ) == NOTATION && e . getEntryArg ( 0 ) . equals ( notationName ) ) { if ( over || systemId == null ) { return e . getEntryArg ( 1 ) ; } } } return resolveSubordinateCatalogs ( NOTATION , notationName , publicId , systemId ) ; }

Devuelva el identificador del sistema de notación aplicable.


private void initLabels  ( ) { CompareConfiguration cc = getCompareConfiguration ( ) ; cc . setLeftEditable ( ! readOnly ) ; cc . setRightEditable ( false ) ; String title ; String leftLabel ; String rightLabel ; if ( resources . length > 1 ) { title = Policy . bind ( "SVNLocalBaseCompareInput.0" ) + remoteRevision ; leftLabel = Policy . bind ( "SVNLocalBaseCompareInput.1" ) ; rightLabel = remoteRevision . toString ( ) ; } else { title = Policy . bind ( "SVNCompareRevisionsInput.compareResourceAndVersions" , new Object [ ] { resources [ 0 ] . getName ( ) } ) ; leftLabel = Policy . bind ( "SVNCompareRevisionsInput.workspace" , new Object [ ] { resources [ 0 ] . getName ( ) } ) ; rightLabel = Policy . bind ( "SVNCompareRevisionsInput.repository" , new Object [ ] { resources [ 0 ] . getName ( ) } ) ; } setTitle ( title ) ; cc . setLeftLabel ( leftLabel ) ; cc . setRightLabel ( rightLabel ) ; }

Inicialice las etiquetas: el título, la etiqueta LFT y la derecha.


public Criteria or  ( ) { Criteria criteria = createCriteriaInternal ( ) ; oredCriteria . add ( criteria ) ; return criteria ; }

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


public static boolean isCoordinate  ( String value ) { try { String [ ] lnglat = value . trim ( ) . split ( "," ) ; float lng = Float . parseFloat ( lnglat [ 0 ] ) ; float lat = Float . parseFloat ( lnglat [ 1 ] ) ; return ( lng >= - 180 && lng <= 180 && lat >= - 90 && lat <= 90 ) ; } catch ( Exception x ) { return false ; } }

Devuelve VERDADERO si el argumento de cadena proporcionado debe considerarse una coordenada.


public ColumnMetadata ( Table table , String column , Comparator cmp , boolean dynamic ) { m_table = table ; m_field = column ; m_cmp = cmp ; m_dynamic = dynamic ; }

Crea una nueva instancia de CollopTetAdata.


public String [ ] listUsers  ( ) { ResponseEntity < String [ ] > response = restTemplate . exchange ( url + RMAControllerMappings . LIST_USERS_MAPPING , HttpMethod . GET , request , String [ ] . class ) ; return response . getBody ( ) ; }


public boolean testValue  ( String sldContentString , TreeSelectionData selectionData , FieldIdEnum field , XMLFieldBase testValue ) { boolean passed = false ; Document doc = getXMLDocument ( sldContentString ) ; String extractedString = getString ( doc , selectionData , field , null ) ; if ( testValue instanceof XMLSetFieldLiteralString ) { XMLSetFieldLiteralString stringLiteral = ( XMLSetFieldLiteralString ) testValue ; String valueToTest = stringLiteral . getValue ( ) ; passed = ( valueToTest . compareTo ( extractedString ) == 0 ) ; } else if ( testValue instanceof XMLSetFieldLiteralDouble ) { XMLSetFieldLiteralDouble doubleLiteral = ( XMLSetFieldLiteralDouble ) testValue ; if ( ( extractedString != null ) && ! extractedString . isEmpty ( ) ) { Double convertedValue = Double . valueOf ( extractedString ) ; passed = ( Math . abs ( convertedValue - doubleLiteral . getValue ( ) ) < 0.001 ) ; } } else if ( testValue instanceof XMLSetFieldLiteralInt ) { XMLSetFieldLiteralInt intLiteral = ( XMLSetFieldLiteralInt ) testValue ; if ( ( extractedString != null ) && ! extractedString . isEmpty ( ) ) { passed = ( Integer . valueOf ( extractedString ) . intValue ( ) == intLiteral . getValue ( ) . intValue ( ) ) ; } } else if ( testValue instanceof XMLSetFieldLiteralBoolean ) { XMLSetFieldLiteralBoolean booleanLiteral = ( XMLSetFieldLiteralBoolean ) testValue ; if ( ( extractedString != null ) && ! extractedString . isEmpty ( ) ) { passed = ( Boolean . valueOf ( extractedString ) == booleanLiteral . isValue ( ) ) ; } } System . out . println ( "Checking : " + field + " " + extractedString + " " + ( passed ? "PASS" : "FAIL" ) ) ; return passed ; }


private String saveFileOnDisk  ( String filePathToSave , String fileContent ) throws IOException { File file = new File ( filePathToSave ) ; Files . createParentDirs ( file ) ; Files . write ( fileContent , file , Charset . defaultCharset ( ) ) ; return filePathToSave ; }

Guarda el archivo individual en el disco con el FileContent.


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


final void triangulateYMonotonePolygon  ( MonotonePolygon < DoubleEdgeListVertex > monotonePolygon ) { List < MonotoneVertex < DoubleEdgeListVertex > > stack = new ArrayList < MonotoneVertex < DoubleEdgeListVertex > > ( ) ; List < MonotoneVertex < DoubleEdgeListVertex > > vertices = monotonePolygon . vertices ; stack . add ( vertices . get ( 0 ) ) ; stack . add ( vertices . get ( 1 ) ) ; int i = 2 ; while ( ! stack . isEmpty ( ) ) { MonotoneVertex < DoubleEdgeListVertex > v = vertices . get ( i ) ; MonotoneVertex < DoubleEdgeListVertex > vBot = stack . get ( 0 ) ; MonotoneVertex < DoubleEdgeListVertex > vTop = stack . get ( stack . size ( ) - 1 ) ; if ( v . isAdjacent ( vBot ) && ! v . isAdjacent ( vTop ) ) { while ( stack . size ( ) > 1 ) { MonotoneVertex < DoubleEdgeListVertex > vt = stack . remove ( stack . size ( ) - 1 ) ; this . addHalfEdges ( v . data , vt . data ) ; } stack . clear ( ) ; stack . add ( vTop ) ; stack . add ( v ) ; } else if ( v . isAdjacent ( vTop ) && ! v . isAdjacent ( vBot ) ) { double cross = 0 ; int sSize = stack . size ( ) ; while ( sSize > 1 ) { MonotoneVertex < DoubleEdgeListVertex > vt = stack . get ( sSize - 1 ) ; MonotoneVertex < DoubleEdgeListVertex > vt1 = stack . get ( sSize - 2 ) ; Vector2 p1 = v . data . point ; Vector2 p2 = vt . data . point ; Vector2 p3 = vt1 . data . point ; if ( v . chainType == MonotoneChainType . LEFT || v . chainType == MonotoneChainType . BOTTOM ) { Vector2 v1 = p2 . to ( p3 ) ; Vector2 v2 = p2 . to ( p1 ) ; cross = v1 . cross ( v2 ) ; } else { Vector2 v1 = p1 . to ( p2 ) ; Vector2 v2 = p3 . to ( p2 ) ; cross = v1 . cross ( v2 ) ; } if ( cross < Epsilon . E ) { this . addHalfEdges ( v . data , vt1 . data ) ; stack . remove ( sSize - 1 ) ; sSize -- ; } else { break ; } } stack . add ( v ) ; } else if ( v . isAdjacent ( vTop ) && v . isAdjacent ( vBot ) ) { stack . remove ( stack . size ( ) - 1 ) ; while ( stack . size ( ) > 1 ) { MonotoneVertex < DoubleEdgeListVertex > vt = stack . remove ( stack . size ( ) - 1 ) ; this . addHalfEdges ( v . data , vt . data ) ; } break ; } i ++ ; } }

Triangula el polígono Y-monotono dado que agrega las nuevas diagonales a esta DCEL.


public void populateAll  ( ) throws GeneralException  { ArtifactInfoContext infoContext = new ArtifactInfoContext ( ) ; ArtifactInfoGatherer infoGatherer = new ArtifactInfoGatherer ( infoContext ) ; try { if ( this . modelForm instanceof ModelSingleForm ) { infoGatherer . visit ( ( ModelSingleForm ) this . modelForm ) ; } else { infoGatherer . visit ( ( ModelGrid ) this . modelForm ) ; } } catch ( Exception e ) { throw new GeneralException ( e ) ; } populateEntitiesFromNameSet ( infoContext . getEntityNames ( ) ) ; populateServicesFromNameSet ( infoContext . getServiceNames ( ) ) ; this . populateFormExtended ( ) ; this . populateLinkedRequests ( infoContext . getRequestLocations ( ) ) ; this . populateTargetedRequests ( infoContext . getTargetLocations ( ) ) ; }

Nota Esto es malo de ser llamado después de que se cree el objeto y se agrega al artifactinfofactory.allforminfos en artifactinfofactory.getFormWidgetArtifactinfo


public static String escapeString  ( String str , char escapeChar , char charToEscape ) { return escapeString ( str , escapeChar , new char [ ] { charToEscape } ) ; }

Escape <Code> Charoescape </ código> En la cadena con el escape char <code> escapechar </ code>


public synchronized void close  ( ) throws IOException  { if ( journalWriter == null ) { return ; } for ( Entry entry : new ArrayList < Entry > ( lruEntries . values ( ) ) ) { if ( entry . currentEditor != null ) { entry . currentEditor . abort ( ) ; } } trimToSize ( ) ; journalWriter . close ( ) ; journalWriter = null ; }

Cierra este caché.Los valores almacenados permanecerán en el sistema de archivos.


public static String utf8Encode  ( String str , String defultReturn ) { if ( ! isEmpty ( str ) && str . getBytes ( ) . length != str . length ( ) ) { try { return URLEncoder . encode ( str , "UTF-8" ) ; } catch ( UnsupportedEncodingException e ) { return defultReturn ; } } return str ; }

codificado en UTF-8, si la excepción, devuelva afultreturn


private void openMainAndFinish  ( @ NonNull SplashLibrary splashLibrary ) { final String initialized = splashLibrary . initializedString ( ) ; Toast . makeText ( this , initialized , Toast . LENGTH_SHORT ) . show ( ) ; Intent intent = new Intent ( this , MainActivity . class ) ; intent . putExtra ( MainActivity . EXTRA_USEFUL_STRING , splashLibrary . usefulString ( ) ) ; startActivity ( intent ) ; finish ( ) ; }

Mostrar pan tostado, iniciar nueva actividad y terminar la actividad actual.


public boolean syncStarted  ( boolean notifyUser ) { synchronized ( myLock ) { if ( mySyncInProgress ) { LOG . info ( String . format ( "Sync already in progress for project '%1$s'." , myProject . getName ( ) ) ) ; return false ; } mySyncInProgress = true ; } LOG . info ( String . format ( "Started sync with Gradle for project '%1$s'." , myProject . getName ( ) ) ) ; addInfoToEventLog ( "Gradle sync started" ) ; cleanUpProjectPreferences ( ) ; if ( notifyUser ) { notifyUser ( ) ; } syncPublisher ( null ) ; trackSyncEvent ( ACTION_GRADLE_SYNC_STARTED ) ; return true ; }

Notificación que ha comenzado una sincronización.


private void saveRepositoryLocaleWithCycleCheck  ( RepositoryLocale repositoryLocale , Map < String , RepositoryLocale > repositoryLocalesMap , Set < String > bcp47TagsInParents , Set < String > addedBcp47Tags ) throws RepositoryLocaleCreationException { checkCycle ( repositoryLocale , bcp47TagsInParents ) ; if ( repositoryLocale . getParentLocale ( ) != null ) { logger . debug ( "Repository locale has a parent, process it first" ) ; RepositoryLocale parentRepositoryLocaleFromMap = repositoryLocalesMap . get ( repositoryLocale . getParentLocale ( ) . getLocale ( ) . getBcp47Tag ( ) ) ; if ( parentRepositoryLocaleFromMap == null ) { throw new RepositoryLocaleCreationException ( "The parent RepositoryLocale was not specified in the 1st level set" ) ; } else { saveRepositoryLocaleWithCycleCheck ( parentRepositoryLocaleFromMap , repositoryLocalesMap , bcp47TagsInParents , addedBcp47Tags ) ; } } String bcp47Tag = repositoryLocale . getLocale ( ) . getBcp47Tag ( ) ; if ( ! addedBcp47Tags . contains ( bcp47Tag ) ) { addRepositoryLocale ( repositoryLocale . getRepository ( ) , bcp47Tag , repositoryLocale . getParentLocale ( ) != null ? repositoryLocale . getParentLocale ( ) . getLocale ( ) . getBcp47Tag ( ) : null , repositoryLocale . isToBeFullyTranslated ( ) ) ; addedBcp47Tags . add ( bcp47Tag ) ; } else { logger . debug ( bcp47Tag + " has already been added.  Don't need to add again" ) ; } }

Función de recursión utilizada para atravesar la cadena de jerarquía de la configuración regional del repositorio y verificar el ciclo.


public boolean isSelected  ( ) { ClusterViewer viewer = getViewer ( ) ; return viewer . getPcoaTab ( ) != null && viewer . getPcoaTab ( ) . getFirstPC ( ) == 0 && viewer . getPcoaTab ( ) . getSecondPC ( ) == 2 && ! viewer . getPcoaTab ( ) . isIs3dMode ( ) ; }


public FinderPatternFinder ( BitMatrix image ) { this ( image , null ) ; }

crea un buscador que buscará la imagen para tres patrones de buscadores.


public FunctionTableModel ( ) { columnList . add  ( Localisation . getString ( FunctionTableModel . class , "FunctionTableModel.parameter" ) ) ; columnList . add ( Localisation . getString ( FunctionTableModel . class , "FunctionTableModel.type" ) ) ; columnList . add ( Localisation . getString ( FunctionTableModel . class , "FunctionTableModel.optional" ) ) ; columnList . add ( Localisation . getString ( FunctionTableModel . class , "FunctionTableModel.value" ) ) ; }

Instantánea un nuevo modelo de tabla de funciones.


public static boolean isFileOlder  ( File file , File reference ) { if ( reference == null ) { throw new IllegalArgumentException ( "No specified reference file" ) ; } if ( ! reference . exists ( ) ) { throw new IllegalArgumentException ( "The reference file '" + reference + "' doesn't exist" ) ; } return isFileOlder ( file , reference . lastModified ( ) ) ; }

Pruebas Si el archivo <código> especificado </ el código> es más antiguo que el archivo <código> de referencia </ code>.


@ Override public void onAddCommandTag  ( final ISourceCommandTag sourceCommandTag , final ChangeReport changeReport ) { changeReport . appendError ( "The equipment has no implementation to" + " add command tags. You have to restart the DAQ." ) ; changeReport . setState ( CHANGE_STATE . REBOOT ) ; }

Llamado cuando se agrega una etiqueta de comando.Cada llamada de este método requeriría una reacción específica del equipo.Por lo tanto, siempre establecerá el estado de reinicio en el informe.


protected Map < String , Object > runService  ( MapMessage message ) { Map < String , ? extends Object > context = null ; String serviceName = null ; String xmlContext = null ; try { serviceName = message . getString ( "serviceName" ) ; xmlContext = message . getString ( "serviceContext" ) ; if ( serviceName == null || xmlContext == null ) { Debug . logError ( "Message received is not an OFB service message. Ignored!" , module ) ; return null ; } Object o = XmlSerializer . deserialize ( xmlContext , dispatcher . getDelegator ( ) ) ; if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "De-Serialized Context --> " + o , module ) ; if ( ObjectType . instanceOf ( o , "java.util.Map" ) ) context = UtilGenerics . checkMap ( o ) ; } catch ( JMSException je ) { Debug . logError ( je , "Problems reading message." , module ) ; } catch ( Exception e ) { Debug . logError ( e , "Problems deserializing the service context." , module ) ; } try { ModelService model = dispatcher . getDispatchContext ( ) . getModelService ( serviceName ) ; if ( ! model . export ) { Debug . logWarning ( "Attempt to invoke a non-exported service: " + serviceName , module ) ; return null ; } } catch ( GenericServiceException e ) { Debug . logError ( e , "Unable to get ModelService for service : " + serviceName , module ) ; } if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "Running service: " + serviceName , module ) ; Map < String , Object > result = null ; if ( context != null ) { try { result = dispatcher . runSync ( serviceName , context ) ; } catch ( GenericServiceException gse ) { Debug . logError ( gse , "Problems with service invocation." , module ) ; } } return result ; }

Ejecuta el servicio definido en el MapMessage.


public Asn1Object read  ( ) throws IOException  { int tag = in . read ( ) ; if ( tag == - 1 ) throw new IOException ( "Invalid DER: stream too short, missing tag" ) ; int length = getLength ( ) ; byte [ ] value = new byte [ length ] ; int n = in . read ( value ) ; if ( n < length ) throw new IOException ( "Invalid DER: stream too short, missing value" ) ; Asn1Object o = new Asn1Object ( tag , length , value ) ; return o ; }

Lea el siguiente objeto.Si está construido, el valor contiene contenido codificado y debe analizarse con un nuevo analizador de <código> asn1object.getparser </ code>.


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

Permite que la línea se dibuje en modo discontinuo, por ejemplo.Me gusta esto "- - - - - -".Esto solo funciona si se apaga la aceleración de hardware.Tenga en cuenta que la aceleración de hardware aumenta el rendimiento.


@ Override public void run  ( ) { try { if ( _delay > 0 ) { fallAsleep ( _delay ) ; } while ( ! isInterrupted ( ) ) { super . run ( ) ; fallAsleep ( ) ; } } catch ( InterruptedException ie ) { interrupt ( ) ; } }

Ejecute el método <código> Ejecutar </ código> de Runnable Objetivo después de cada intervalo de suspensión a menos que se invoque el método </ codigo> se invocó, o si se interrumpió este hilo.


public static void writeSwappedFloat  ( OutputStream output , float value ) throws IOException { writeSwappedInteger ( output , Float . floatToIntBits ( value ) ) ; }

Escribe un valor de "flotador" a una corriente de salida.El valor se convierte en el sistema de endian opuesto mientras está escribiendo.


@ Override public Constant asConstant  ( ) { throw new ClassCastException ( ) ; }

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


public SM_LOGIN_FAIL ( AionAuthResponse response ) { super ( 0x01 ) ; this . response = response ; }

Construye la nueva instancia de <tt> sm_login_fail </ tt> Packet.


protected void initLookup  ( ) { m_lookup = new HashMap ( ) ; for ( int i = 0 ; i < m_names . length ; ++ i ) { m_lookup . put ( m_names [ i ] , new Integer ( i ) ) ; } }

Lazily construye la tabla de búsqueda para este esquema.Se utiliza para acelerar las búsquedas basadas en el nombre de la información del esquema.


public PokemonTableController ( final GridPane gridPane ) { super ( ) ; this . gridPane = gridPane ; initializeController ( ) ; }

Instancia del PokemontableController en el panel Padre.


default String resourceName  ( String tableName , String type ) { return String . format ( RESOURCE_NAME , tableName , type ) ; }

Obtenga el nombre de una relación entre un objeto y un recurso


public int append_file1  ( String appender_file_id , byte [ ] file_buff ) throws IOException , MyException { String [ ] parts = new String [ 2 ] ; this . errno = this . split_file_id ( appender_file_id , parts ) ; if ( this . errno != 0 ) { return this . errno ; } return this . append_file ( parts [ 0 ] , parts [ 1 ] , file_buff ) ; }

Anexar archivo al servidor de almacenamiento (por archivo Buff)


@ Deployment public void testNonInterruptingSignal  ( ) { ProcessInstance pi = runtimeService . startProcessInstanceByKey ( "nonInterruptingSignalEvent" ) ; List < Task > tasks = taskService . createTaskQuery ( ) . processInstanceId ( pi . getProcessInstanceId ( ) ) . list ( ) ; assertEquals ( 1 , tasks . size ( ) ) ; Task currentTask = tasks . get ( 0 ) ; assertEquals ( "My User Task" , currentTask . getName ( ) ) ; runtimeService . signalEventReceived ( "alert" ) ; tasks = taskService . createTaskQuery ( ) . processInstanceId ( pi . getProcessInstanceId ( ) ) . list ( ) ; assertEquals ( 2 , tasks . size ( ) ) ; for ( Task task : tasks ) { if ( ! task . getName ( ) . equals ( "My User Task" ) && ! task . getName ( ) . equals ( "My Second User Task" ) ) { fail ( "Expected: <My User Task> or <My Second User Task> but was <" + task . getName ( ) + ">." ) ; } } taskService . complete ( taskService . createTaskQuery ( ) . taskName ( "My User Task" ) . singleResult ( ) . getId ( ) ) ; tasks = taskService . createTaskQuery ( ) . processInstanceId ( pi . getProcessInstanceId ( ) ) . list ( ) ; assertEquals ( 1 , tasks . size ( ) ) ; currentTask = tasks . get ( 0 ) ; assertEquals ( "My Second User Task" , currentTask . getName ( ) ) ; }

Testacase para reproducir la Ley de emisión-1344


private void validateType  ( TypeImpl conceptType ) { if ( conceptType . isAbstract ( ) && ! ValidateGlobalRules . validateIsAbstractHasNoIncomingIsaEdges ( conceptType ) ) errorsFound . add ( ErrorMessage . VALIDATION_IS_ABSTRACT . getMessage ( conceptType . getId ( ) ) ) ; }

Reglas de validación exclusivas de los tipos.


public Future < ? > scheduleHpRestoreTask  ( CreatureLifeStats < ? extends Creature > lifeStats ) { return ThreadPoolManager . getInstance ( ) . scheduleAtFixedRate ( new HpRestoreTask ( lifeStats ) , 1700 , DEFAULT_DELAY ) ; }


@ Override public boolean remove  ( Object o ) { return backedSet . remove ( o ) ; }

Elimina el elemento especificado de esta solicitud de solicitud de solicitud, si está presente (operación opcional).Más formalmente, elimina un elemento <tt> e </ tt> tal que <tt> (o == null y nbsp;? & Nbsp; e == null & nbsp; & nbsp; o.equals (e)) </ tt>, si estoAplyTransformToDestination contiene tal elemento.Devuelve <TT> True </ TT> Si esta aplicación de forma de solicitud contenía el elemento (o equivalentemente, si esta solicitud se modificó como resultado de la llamada).(Esta solicitud de información no contendrá el elemento una vez que se devuelva la llamada).


public static Link valueOf  ( String val ) { Matcher matcher = parse . matcher ( val ) ; if ( ! matcher . matches ( ) ) throw new RuntimeException ( "Failed to parse link: " + val ) ; Link link = new Link ( ) ; link . href = matcher . group ( 1 ) ; String [ ] props = matcher . group ( 2 ) . split ( ";" ) ; HashMap < String , String > map = new HashMap ( ) ; for ( String prop : props ) { String [ ] split = prop . split ( "=" ) ; map . put ( split [ 0 ] . trim ( ) , split [ 1 ] . trim ( ) ) ; } if ( map . containsKey ( "rel" ) ) { link . relationship = map . get ( "rel" ) ; } if ( map . containsKey ( "type" ) ) { link . type = map . get ( "type" ) ; } return link ; }

Para los encabezados de Link de Unmarshalling.No es un algoritmo eficiente o perfecto y hace algunas suposiciones.


public static JsonObject createBackground  ( ITextBackground background ) { if ( instance != null ) { return instance . internal_createBackground ( background ) ; } return null ; }


void insertedNode  ( NodeImpl node , NodeImpl newInternal , boolean replace ) { }

Un método que se debe llamar cuando se ha insertado un nodo en el árbol.


public boolean isCompatible  ( Split split ) { return ! ( getA ( ) . intersects ( split . getA ( ) ) && getA ( ) . intersects ( split . getB ( ) ) && getB ( ) . intersects ( split . getA ( ) ) && getB ( ) . intersects ( split . getB ( ) ) ) ; }

¿Es esta división compatible con el dado?


public static void buildMouseOverData  ( JsonObject json ) { float partialTicks = 0 ; Entity viewer = Minecraft . getMinecraft ( ) . thePlayer ; float depth = 50 ; Vec3 eyePos = viewer . getPositionEyes ( partialTicks ) ; Vec3 lookVec = viewer . getLook ( partialTicks ) ; Vec3 searchVec = eyePos . addVector ( lookVec . xCoord * depth , lookVec . yCoord * depth , lookVec . zCoord * depth ) ; MovingObjectPosition mop = Minecraft . getMinecraft ( ) . theWorld . rayTraceBlocks ( eyePos , searchVec , false , false , false ) ; MovingObjectPosition mopEnt = findEntity ( eyePos , lookVec , depth , mop , true ) ; if ( mopEnt != null ) mop = mopEnt ; if ( mop == null ) { return ; } double hitDist = mop . hitVec . distanceTo ( eyePos ) ; double blockReach = Minecraft . getMinecraft ( ) . playerController . getBlockReachDistance ( ) ; double entityReach = Minecraft . getMinecraft ( ) . playerController . extendedReach ( ) ? 6.0 : 3.0 ; JsonObject jsonMop = new JsonObject ( ) ; if ( mop . typeOfHit == MovingObjectPosition . MovingObjectType . BLOCK ) { jsonMop . addProperty ( "hitType" , "block" ) ; jsonMop . addProperty ( "x" , mop . hitVec . xCoord ) ; jsonMop . addProperty ( "y" , mop . hitVec . yCoord ) ; jsonMop . addProperty ( "z" , mop . hitVec . zCoord ) ; IBlockState state = Minecraft . getMinecraft ( ) . theWorld . getBlockState ( mop . getBlockPos ( ) ) ; List < IProperty > extraProperties = new ArrayList < IProperty > ( ) ; DrawBlock db = MinecraftTypeHelper . getDrawBlockFromBlockState ( state , extraProperties ) ; jsonMop . addProperty ( "type" , db . getType ( ) . value ( ) ) ; if ( db . getColour ( ) != null ) jsonMop . addProperty ( "colour" , db . getColour ( ) . value ( ) ) ; if ( db . getVariant ( ) != null ) jsonMop . addProperty ( "variant" , db . getVariant ( ) . getValue ( ) ) ; if ( db . getFace ( ) != null ) jsonMop . addProperty ( "facing" , db . getFace ( ) . value ( ) ) ; if ( extraProperties . size ( ) > 0 ) { for ( IProperty prop : extraProperties ) { String key = "prop_" + prop . getName ( ) ; if ( prop . getValueClass ( ) == Boolean . class ) jsonMop . addProperty ( key , Boolean . valueOf ( state . getValue ( prop ) . toString ( ) ) ) ; else if ( prop . getValueClass ( ) == Integer . class ) jsonMop . addProperty ( key , Integer . valueOf ( state . getValue ( prop ) . toString ( ) ) ) ; else jsonMop . addProperty ( key , state . getValue ( prop ) . toString ( ) ) ; } } jsonMop . addProperty ( "inRange" , hitDist <= blockReach ) ; } else if ( mop . typeOfHit == MovingObjectPosition . MovingObjectType . ENTITY ) { Entity entity = mop . entityHit ; if ( entity != null ) { jsonMop . addProperty ( "x" , entity . posX ) ; jsonMop . addProperty ( "y" , entity . posY ) ; jsonMop . addProperty ( "z" , entity . posZ ) ; String name = entity . getName ( ) ; String hitType = "entity" ; if ( entity instanceof EntityItem ) { ItemStack is = ( ( EntityItem ) entity ) . getEntityItem ( ) ; DrawItem di = MinecraftTypeHelper . getDrawItemFromItemStack ( is ) ; if ( di . getColour ( ) != null ) jsonMop . addProperty ( "colour" , di . getColour ( ) . value ( ) ) ; if ( di . getVariant ( ) != null ) jsonMop . addProperty ( "variant" , di . getVariant ( ) . getValue ( ) ) ; jsonMop . addProperty ( "stackSize" , is . stackSize ) ; name = di . getType ( ) ; hitType = "item" ; } jsonMop . addProperty ( "type" , name ) ; jsonMop . addProperty ( "hitType" , hitType ) ; } jsonMop . addProperty ( "inRange" , hitDist <= entityReach ) ; } json . add ( "LineOfSight" , jsonMop ) ; }

Construye el objeto JSON para el objeto debajo del cursor, ya sea un bloqueo o una criatura. Si se devuelven los datos, el JSON se agregará en un Subnodo llamado "Linefsight".


public WriteEntriesSpaceOperationRequest ( ) { }


public static RequestQueue newRequestQueue  ( int threadPoolSize ) { return NoHttp . newRequestQueue ( DiskCacheStore . INSTANCE , OkHttpRestConnection . getInstance ( ) , threadPoolSize ) ; }

Cree una nueva cola de solicitud, utilizando la configuración predeterminada NOHTTP.


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

ID del usuario o comunidad que posee los videos (s).


@ Override public int fillChunkData  ( byte [ ] data , int offset , int rowId , KeyStructureInfo restructuringInfo ) { byte [ ] maskedKey = getMaskedKey ( dataChunk , rowId * chunkAttributes . getColumnValueSize ( ) , restructuringInfo ) ; System . arraycopy ( maskedKey , 0 , data , offset , maskedKey . length ) ; return maskedKey . length ; }

Se utilizará por debajo del método para llenar los datos en función de la ID de desplazamiento y en la fila


protected void animateToNearestState  ( ) { final PanelState nearestState = findNearestPanelStateFromHeight ( getHeight ( ) ) ; final float displacement = getPanelHeightFromState ( nearestState ) - getHeight ( ) ; final long duration = calculateAnimationDuration ( INITIAL_ANIMATION_VELOCITY_DP_PER_SECOND , displacement ) ; animatePanelToState ( nearestState , StateChangeReason . SWIPE , duration ) ; }


public boolean isCutOffApproximation  ( ) { return this . cutOffApproximation ; }

Obtiene si esta ruta de acceso ha sido (transitivamente) construida de una que se cortó por la limitación de la longitud de la ruta de acceso.Si este es el caso, este AP podría no ser preciso.


@ Override public String toString  ( ) { String str = null ; if ( denominator == 1 ) { str = Integer . toString ( numerator ) ; } else if ( numerator == 0 ) { str = "0" ; } else { str = numerator + " / " + denominator ; } return str ; }

Devuelve la cadena <código> </ código> que representa esta fracción, es decir, "NUM / DEM" o simplemente "NUM" si el denominador es uno.


public EquipmentLogger ( final String eqNameAndId , final String className , final String handlerClassName ) { if ( className != null && ! className . equals ( "" ) ) { logger = Logger . getLogger ( eqNameAndId + "." + className ) ; } else { logger = Logger . getLogger ( eqNameAndId ) ; } ndcPush = handlerClassName ; this . eqNameAndId = eqNameAndId ; }


private RectangleNode mergeOneToOne  ( ) { long x_min = Long . MAX_VALUE , y_min = Long . MAX_VALUE ; long x_max = Long . MIN_VALUE , y_max = Long . MIN_VALUE ; SegmentNode p = header [ GeometricManager . ONE_TO_ONE ] ; header [ GeometricManager . ONE_TO_ONE ] = null ; size [ GeometricManager . ONE_TO_ONE ] = 0 ; while ( p != null ) { if ( p . I1 < x_min ) x_min = p . I1 ; if ( p . I2 < y_min ) y_min = p . I2 ; if ( p . I1 + p . L > x_max ) x_max = p . I1 + p . L ; if ( p . I2 + p . L > y_max ) y_max = p . I2 + p . L ; p = reclaimSegmentNode ( p ) ; } RectangleNode q = getRectangleNode ( ) ; q . I1 = x_min ; q . I2 = y_min ; q . L = x_max - x_min ; q . L_prime = y_max - y_min ; return q ; }

Encuentra el rectángulo delimitador para todas las figuras del segmento.


public static MessageType create  ( ProtoContainerElement parent , DescriptorProto proto , String path , ExtensionPool extensionPool ) { return new MessageType ( parent , proto , path , extensionPool ) ; }

Crea un mensaje respaldado por el proto determinado.


public CovarianceSingularityException ( PointList list ) { super ( "Covariance matrix got singular;" ) ; this . list = list ; }

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


@ Override public int compareTo  ( @ Nullable final ReadableVersionNumber other ) { int result = 0 ; if ( other == null ) { result = - 1 ; } else { Check . notNull ( other . getGroups ( ) , "other.getGroups()" ) ; final int length = groups . size ( ) < other . getGroups ( ) . size ( ) ? groups . size ( ) : other . getGroups ( ) . size ( ) ; final AlphanumComparator comparator = new AlphanumComparator ( ) ; result = comparator . compare ( toVersionString ( groups . subList ( 0 , length ) ) , toVersionString ( other . getGroups ( ) . subList ( 0 , length ) ) ) ; if ( result == 0 ) { result = groups . size ( ) > other . getGroups ( ) . size ( ) ? 1 : groups . size ( ) < other . getGroups ( ) . size ( ) ? - 1 : 0 ; } if ( result == 0 ) { result = extension . compareTo ( other . getExtension ( ) ) ; } if ( result == 0 ) { result = comparator . compare ( toVersionString ( ) , other . toVersionString ( ) ) ; } } return result ; }

Compara este número de versión con el número de versión especificado para el pedido.Devuelve un entero adicional, cero o un entero positivo, ya que este número de versión es menor que, igual o mayor que el número de versión especificado.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_SubTypeExtendDuration_A_TO_SELF  ( String skillcaster , String value0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200879 , skillcaster , value0 , skillname ) ; }

[% Skillcaster] cambió su% 0 Duración de la habilidad mediante el uso de [% de habilidad].


public static Map < String , Object > testService  ( DispatchContext dctx , Map < String , ? > context ) { Map < String , Object > response = ServiceUtil . returnSuccess ( ) ; if ( context . size ( ) > 0 ) { for ( Map . Entry < String , ? > entry : context . entrySet ( ) ) { Object cKey = entry . getKey ( ) ; Object value = entry . getValue ( ) ; System . out . println ( "---- SVC-CONTEXT: " + cKey + " => " + value ) ; } } if ( ! context . containsKey ( "message" ) ) { response . put ( "resp" , "no message found" ) ; } else { System . out . println ( "-----SERVICE TEST----- : " + ( String ) context . get ( "message" ) ) ; response . put ( "resp" , "service done" ) ; } System . out . println ( "----- SVC: " + dctx . getName ( ) + " -----" ) ; return response ; }


public static void displayToastTop  ( Context context , String msg , int durationInSeconds , int yOffset ) { int toastDurationInMilliSeconds = durationInSeconds * 1000 ; int toastRefreshRateInMilliSeconds = 2 * 1000 ; SpannableString s = new SpannableString ( msg ) ; s . setSpan ( new TypefaceSpan ( context , RELATIVE_PATH_TO_TYPEFACE ) , 0 , s . length ( ) , Spannable . SPAN_EXCLUSIVE_EXCLUSIVE ) ; final Toast toast = Toast . makeText ( context , s , Toast . LENGTH_LONG ) ; toast . setGravity ( Gravity . TOP , 0 , yOffset ) ; runCustomToast ( toast , toastDurationInMilliSeconds , toastRefreshRateInMilliSeconds ) ; }

Muestra un MSG de tostadas por una cantidad de tiempo específica (segundos) en la posición Gravity.top junto con un desplazamiento y.


public static Histogram syncHistogram  ( Histogram hist ) { double maxRecs = 0.0 ; for ( String fld : hist . fields ( ) ) { double numRecs = 0.0 ; for ( Bucket bkt : hist . buckets ( fld ) ) numRecs += bkt . frequency ( ) ; if ( Double . compare ( numRecs , maxRecs ) > 0 ) maxRecs = numRecs ; } Histogram syncHist = new Histogram ( hist . fields ( ) ) ; for ( String fld : hist . fields ( ) ) { double numRecs = 0.0 ; for ( Bucket bkt : hist . buckets ( fld ) ) numRecs += bkt . frequency ( ) ; double extrapolation = maxRecs / numRecs ; for ( Bucket bkt : hist . buckets ( fld ) ) syncHist . addBucket ( fld , new Bucket ( bkt . valueRange ( ) , extrapolation * bkt . frequency ( ) , bkt . distinctValues ( ) , bkt . valuePercentiles ( ) ) ) ; } return syncHist ; }

Los cubos de un campo pueden descartarse durante la estimación del costo si su frecuencia es menor que 1. Como resultado, las frecuencias totales de los cubos pueden ser diversos en diferentes campos.Este método sincroniza las frecuencias totales de diferentes campos en el histograma especificado.


public Response doPatch  ( String url ) { return doPatch ( url , null ) ; }


public boolean isInInstance  ( ) { return getPosition ( ) . isInstanceMap ( ) ; }


public double calculateReplicaUsableCapacity  ( int vmthinsizeparentvm , int poolsnapshotcount , int desktoppoolcount , int datastorecount , int storageoverhead , String storagetiering ) { boolean b = false ; if ( storagetiering . equalsIgnoreCase ( "On" ) ) { b = true ; } else { b = false ; } double d = 0 ; if ( b ) { d = ( vmthinsizeparentvm * desktoppoolcount * poolsnapshotcount ) / 1048576.0 ; } else { d = ( vmthinsizeparentvm * poolsnapshotcount * desktoppoolcount * datastorecount ) / 1048576.0 ; } d *= ( 1.0 + ( storageoverhead / 100.0 ) ) ; d = ( double ) Math . round ( d * 100 ) / 100 ; return d ; }

Calcular la cantidad de capacidad de almacenamiento para ser utilizada por las réplicas.


public ClassSource find  ( String className ) { String fileName = className . replace ( '.' , '/' ) + ".class" ; SourceLocator . FoundFile file = SourceLocator . v ( ) . lookupInClassPath ( fileName ) ; if ( file == null ) return null ; return new CoffiClassSource ( className , file . inputStream ( ) , file . inputFile ( ) . getAbsolutePath ( ) , file . zipFile == null ? null : file . zipFile . getName ( ) ) ; }

Busque la clase especificada.Devuelva una clase de clase si se encuentra, o nulo si no se encontró.


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

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


public static String gmlCoordinatesToString  ( String coordinates , String precision ) throws ParseException { int nDecimals = Integer . parseInt ( precision ) ; StringBuilder sb = new StringBuilder ( ) ; for ( String coordinate : coordinates . trim ( ) . split ( "\\s" ) ) { String [ ] point = coordinate . split ( "," ) ; String lat = parseCoordinate ( point [ 0 ] , nDecimals , NF ) , lon = parseCoordinate ( point [ 1 ] , nDecimals , NF ) ; sb . append ( "[" ) . append ( lat ) . append ( "," ) . append ( lon ) . append ( "]," ) ; } return sb . length ( ) > 0 ? sb . deleteCharAt ( sb . length ( ) - 1 ) . toString ( ) : "" ; }

Parses A GML: Coordina el elemento y sale una cadena GeoJson.


public DocumentNGramDistroGraph allNotIn  ( DocumentNGramDistroGraph dgOtherGraph ) { EdgeCachedLocator eclLocator = new EdgeCachedLocator ( 100 ) ; DocumentNGramDistroGraph dgClone = ( DocumentNGramDistroGraph ) clone ( ) ; for ( int iCurLvl = MinSize ; iCurLvl <= MaxSize ; iCurLvl ++ ) { UniqueVertexGraph gCloneLevel = dgClone . getGraphLevelByNGramSize ( iCurLvl ) ; UniqueVertexGraph gOtherGraphLevel = dgOtherGraph . getGraphLevelByNGramSize ( iCurLvl ) ; if ( gOtherGraphLevel == null ) continue ; java . util . Iterator iIter = gCloneLevel . getEdgeSet ( ) . iterator ( ) ; while ( iIter . hasNext ( ) ) { WeightedEdge weCurItem = ( WeightedEdge ) iIter . next ( ) ; Edge eEdge = eclLocator . locateDirectedEdgeInGraph ( gOtherGraphLevel , weCurItem . getVertexA ( ) , weCurItem . getVertexB ( ) ) ; if ( eEdge != null ) try { gCloneLevel . removeEdge ( weCurItem ) ; dgClone . getEdgesToDistros ( ) . remove ( weCurItem ) ; iIter = gCloneLevel . getEdgeSet ( ) . iterator ( ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } } } return dgClone ; }

Devuelve todos los bordes que no existen en otro gráfico.


public static void initTxMgr  ( ) { txMgr = new TransactionMgr ( ) ; }

Inicializa el administrador de transacciones.


public static GenericEntity createGenericEntity  ( GenericEntity value ) { if ( value == null ) { throw new IllegalArgumentException ( "Cannot create a GenericEntity with a null value parameter" ) ; } GenericEntity newEntity = new GenericEntity ( ) ; newEntity . init ( value ) ; return newEntity ; }

Copie el método de fábrica: crea nueva generización de la generización existente.


private static boolean intersectsLatEdge  ( S2Point a , S2Point b , double lat , S1Interval lng ) { S2Point z = S2Point . normalize ( S2 . robustCrossProd ( a , b ) ) ; if ( z . z < 0 ) { z = S2Point . neg ( z ) ; } S2Point y = S2Point . normalize ( S2 . robustCrossProd ( z , new S2Point ( 0 , 0 , 1 ) ) ) ; S2Point x = S2Point . crossProd ( y , z ) ; double sinLat = Math . sin ( lat ) ; if ( Math . abs ( sinLat ) >= x . z ) { return false ; } double cosTheta = sinLat / x . z ; double sinTheta = Math . sqrt ( 1 - cosTheta * cosTheta ) ; double theta = Math . atan2 ( sinTheta , cosTheta ) ; S1Interval abTheta = S1Interval . fromPointPair ( Math . atan2 ( a . dotProd ( y ) , a . dotProd ( x ) ) , Math . atan2 ( b . dotProd ( y ) , b . dotProd ( x ) ) ) ; if ( abTheta . contains ( theta ) ) { S2Point isect = S2Point . add ( S2Point . mul ( x , cosTheta ) , S2Point . mul ( y , sinTheta ) ) ; if ( lng . contains ( Math . atan2 ( isect . y , isect . x ) ) ) { return true ; } } if ( abTheta . contains ( - theta ) ) { S2Point intersection = S2Point . sub ( S2Point . mul ( x , cosTheta ) , S2Point . mul ( y , sinTheta ) ) ; if ( lng . contains ( Math . atan2 ( intersection . y , intersection . x ) ) ) { return true ; } } return false ; }

Devuelva VERDADERO si el borde AB intersecta el borde dado de la latitud constante.


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


public GroupsGetMembersQuery count  ( Integer value ) { return unsafeParam ( "count" , value ) ; }

Número de miembros de la comunidad para regresar.


public static boolean expressionHasErrors  ( String expression ) { final JEP parser = getJep ( ) ; parser . parseExpression ( expression ) ; return parser . hasError ( ) ; }

Investiga si la expresión es válida o tiene errores.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "hide attribute=" ) ; Set < String > attributes = new HashSet < > ( ) ; while ( ! np . peekMatchIgnoreCase ( ";" ) ) { String attribute = np . getWordRespectCase ( ) ; attributes . add ( attribute ) ; } np . matchIgnoreCase ( ";" ) ; if ( attributes . size ( ) > 0 ) { final SamplesViewer viewer = ( ( SamplesViewer ) getViewer ( ) ) ; viewer . getSamplesTable ( ) . hideColumns ( attributes . toArray ( new String [ attributes . size ( ) ] ) ) ; } }


public ProductPlan ( Plan p1 , Plan p2 ) { this . p1 = p1 ; this . p2 = p2 ; schema . addAll ( p1 . schema ( ) ) ; schema . addAll ( p2 . schema ( ) ) ; hist = productHistogram ( p1 . histogram ( ) , p2 . histogram ( ) ) ; }

Crea un nuevo nodo de producto en el árbol de consulta, que tiene las dos subconsultas específicas.


public int order  ( ) { return coeffs . length ; }

Obtenga el pedido, es decir, el número de coeficientes Mel-Cepstrum.


@ Override public void execute  ( ActionInvocation invocation ) throws Exception { JFreeChart stackChart = ( JFreeChart ) invocation . getStack ( ) . findValue ( "chart" ) ; chart = stackChart != null ? stackChart : chart ; Integer stackHeight = ( Integer ) invocation . getStack ( ) . findValue ( "height" ) ; height = stackHeight != null && stackHeight > 0 ? stackHeight : height != null ? height : DEFAULT_HEIGHT ; Integer stackWidth = ( Integer ) invocation . getStack ( ) . findValue ( "width" ) ; width = stackWidth != null && stackWidth > 0 ? stackWidth : width != null ? width : DEFAULT_WIDTH ; String stackFilename = ( String ) invocation . getStack ( ) . findValue ( "filename" ) ; filename = StringUtils . defaultIfEmpty ( stackFilename , DEFAULT_FILENAME ) ; if ( chart == null ) { log . warn ( "No chart found" ) ; return ; } HttpServletResponse response = ServletActionContext . getResponse ( ) ; ContextUtils . configureResponse ( response , ContextUtils . CONTENT_TYPE_PNG , true , filename , false ) ; OutputStream os = response . getOutputStream ( ) ; ChartUtilities . writeChartAsPNG ( os , chart , width , height ) ; os . flush ( ) ; }

Ejecuta el resultado.Escribe la tabla dada como PNG a la corriente de salida del servlet.


@ Override public void actionPerformed  ( ActionEvent ev ) { String input = JOptionPane . showInputDialog ( getViewer ( ) . getFrame ( ) , "Enter label of node to scroll to" , "None" ) ; if ( input != null ) { input = input . trim ( ) ; if ( input . length ( ) > 0 ) execute ( "scrollTo node='" + input + "';" ) ; } }


private void saveInstantUploadPathOnPreferences  ( ) { SharedPreferences appPrefs = PreferenceManager . getDefaultSharedPreferences ( getApplicationContext ( ) ) ; SharedPreferences . Editor editor = appPrefs . edit ( ) ; editor . putString ( "instant_upload_path" , mUploadPath ) ; editor . commit ( ) ; }

Guarde la "Ruta de carga instantánea" en las preferencias


public Latin1Reader ( InputStream inputStream , byte [ ] buffer ) { fInputStream = inputStream ; fBuffer = buffer ; }

Construye un lector ISO-8859-1 del flujo de entrada y el búfer especificado.


public RateLimitFilter ( ) throws SystemConfigException  { rateLimiter = new RateLimiter ( ) ; }


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


public static SM_SYSTEM_MESSAGE STR_REMOVE_ITEM_OPTION_NOT_ENOUGH_GOLD  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300472 , value0 ) ; }

No tiene suficiente Kinah para eliminar la manastona de% 0.


public XMLStreamException ( String msg ) { super ( msg ) ; }

Construir una excepción con el mensaje asociado.


public static byte [ ] objectToByteBuffer  ( Object obj ) throws Exception { byte [ ] result = null ; synchronized ( outStream ) { outStream . reset ( ) ; ObjectOutputStream out = new ObjectOutputStream ( outStream ) ; out . writeObject ( obj ) ; out . flush ( ) ; result = outStream . toByteArray ( ) ; out . close ( ) ; } return result ; }

Serializa un objeto en un búfer de bytes.El objeto tiene que implementar la interfaz serializable o externalizable.


protected void writeLSD  ( ) throws IOException  { writeShort ( width ) ; writeShort ( height ) ; out . write ( ( 0x80 | 0x70 | 0x00 | palSize ) ) ; out . write ( 0 ) ; out . write ( 0 ) ; }

Escribe el descriptor de pantalla lógica


public static void launch  ( Context context , String startLabelId , int activeSensorIndex , boolean fromRecord , boolean createTask , Bundle options ) { final Intent intent = new Intent ( context , RunReviewActivity . class ) ; intent . putExtra ( RunReviewFragment . ARG_START_LABEL_ID , startLabelId ) ; intent . putExtra ( RunReviewFragment . ARG_SENSOR_INDEX , activeSensorIndex ) ; intent . putExtra ( EXTRA_FROM_RECORD , fromRecord ) ; intent . putExtra ( EXTRA_CREATE_TASK , createTask ) ; context . startActivity ( intent , options ) ; }

Lanza una nueva actividad de revisión de ejecución


public static byte [ ] decode  ( String s ) throws Base64DecoderException  { byte [ ] bytes = s . getBytes ( ) ; return decode ( bytes , 0 , bytes . length ) ; }


private void checkHttpParameterConditions  ( Method method , Field field , Set < MessageType > visited ) { TypeRef type = field . getType ( ) ; WellKnownType wkt = type . getWellKnownType ( ) ; if ( type . isMap ( ) ) { error ( method , "map field '%s' referred to by message '%s' cannot be mapped as an HTTP parameter." , field . getFullName ( ) , getInputMessageName ( method ) ) ; return ; } if ( type . isMessage ( ) ) { if ( wkt . allowedAsHttpParameter ( ) ) { return ; } if ( ! visited . add ( type . getMessageType ( ) ) ) { error ( method , "cyclic message field '%s' referred to by message '%s' cannot be mapped " + "as an HTTP parameter." , field . getFullName ( ) , getInputMessageName ( method ) ) ; return ; } if ( type . isRepeated ( ) ) { error ( method , "repeated message field '%s' referred to by message '%s' cannot be mapped " + "as an HTTP parameter." , field . getFullName ( ) , getInputMessageName ( method ) ) ; } checkHttpParameterConditions ( method , type . getMessageType ( ) . getFields ( ) , visited ) ; visited . remove ( type . getMessageType ( ) ) ; } }

Verifique las condiciones de contexto en los parámetros HTTP.


public static < S extends  RealFieldElement < S >> FieldODEStateAndDerivative < S > taylor ( final FieldEquationsMapper < S > equationsMapper , final FieldODEStateAndDerivative < S > reference , final S time , final S stepSize , final S [ ] scaled , final Array2DRowFieldMatrix < S > nordsieck )  { final S x = time . subtract ( reference . getTime ( ) ) ; final S normalizedAbscissa = x . divide ( stepSize ) ; S [ ] stateVariation = MathArrays . buildArray ( time . getField ( ) , scaled . length ) ; Arrays . fill ( stateVariation , time . getField ( ) . getZero ( ) ) ; S [ ] estimatedDerivatives = MathArrays . buildArray ( time . getField ( ) , scaled . length ) ; Arrays . fill ( estimatedDerivatives , time . getField ( ) . getZero ( ) ) ; final S [ ] [ ] nData = nordsieck . getDataRef ( ) ; for ( int i = nData . length - 1 ; i >= 0 ; -- i ) { final int order = i + 2 ; final S [ ] nDataI = nData [ i ] ; final S power = normalizedAbscissa . pow ( order ) ; for ( int j = 0 ; j < nDataI . length ; ++ j ) { final S d = nDataI [ j ] . multiply ( power ) ; stateVariation [ j ] = stateVariation [ j ] . add ( d ) ; estimatedDerivatives [ j ] = estimatedDerivatives [ j ] . add ( d . multiply ( order ) ) ; } } S [ ] estimatedState = reference . getCompleteState ( ) ; for ( int j = 0 ; j < stateVariation . length ; ++ j ) { stateVariation [ j ] = stateVariation [ j ] . add ( scaled [ j ] . multiply ( normalizedAbscissa ) ) ; estimatedState [ j ] = estimatedState [ j ] . add ( stateVariation [ j ] ) ; estimatedDerivatives [ j ] = estimatedDerivatives [ j ] . add ( scaled [ j ] . multiply ( normalizedAbscissa ) ) . divide ( x ) ; } return equationsMapper . mapStateAndDerivative ( time , estimatedState , estimatedDerivatives ) ; }

Estimar el estado aplicando la fórmula de Taylor.


protected boolean isAffectAllLines  ( Object ... conditions ) { if ( conditions != null && conditions . length == 0 ) { return true ; } return false ; }

Verifique que las condiciones de aprobación representen para afectar a todas las líneas o no.<br> No pase nada a las condiciones Los medios de parámetros afectan a todas las líneas.


public void addTokenRangeToCurrentBatchForCluster  ( String cluster , String placement , Collection < ScanRange > ranges ) { PlanBatch batch = _clusterTails . get ( cluster ) ; if ( batch == null ) { batch = new PlanBatch ( ) ; _clusterHeads . put ( cluster , batch ) ; _clusterTails . put ( cluster , batch ) ; } batch . addPlanItem ( new PlanItem ( placement , ranges ) ) ; }

Agrega una colección de rangos de escaneo al plan para una colocación específica.La colección de rango debe pertenecer a un solo rango de token en el anillo.


public Tailer ( File file , TailerListener listener , long delayMillis , boolean end ) { this ( file , listener , delayMillis , end , DEFAULT_BUFSIZE ) ; }

Crea un remolque para el archivo dado, con un retraso que no sea el predeterminado 1.0s.


public SoftReferenceGrammarPool ( ) { fGrammars = new Entry [ TABLE_SIZE ] ; fPoolIsLocked = false ; }

Construye una piscina de gramática con un número predeterminado de cubos.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_SubTypeBoostResist_A_TO_B  ( String skilltarget , String value0 , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201031 , skilltarget , value0 , skillcaster , skillname ) ; }

[% SkillTarget] 's% 0 Los efectos de resistencia se debilitaron porque [% Skillcaster] usó [% de habilidad].


public static < U > AtomicIntegerFieldUpdater < U > newUpdater  ( Class < U > tclass , String fieldName ) { if ( UnsafeHolder . isAvailable ( ) ) { return new AtomicIntegerFieldUpdaterImpl < U > ( tclass , fieldName ) ; } return AtomicIntegerFieldUpdater . newUpdater ( tclass , fieldName ) ; }

Crea un actualizador para objetos con el campo dado.Se necesita el argumento de la clase para verificar que los tipos de reflexión y los tipos genéricos coincidan.


public void zoomToFit  ( int availableWidth , int availableHeight , boolean allowZoomIn , int horizontalMargin , int verticalMargin ) { int sceneWidth = myImage . getWidth ( ) ; int sceneHeight = myImage . getHeight ( ) ; int shadowSize = hasDropShadow ( ) ? myUseLargeShadows ? SHADOW_SIZE : SMALL_SHADOW_SIZE : 0 ; availableWidth -= shadowSize ; availableHeight -= shadowSize ; if ( sceneWidth > 0 && sceneHeight > 0 ) { int hDelta = availableWidth - sceneWidth ; int xMargin = 0 ; if ( hDelta > 2 * horizontalMargin ) { xMargin = horizontalMargin ; } else if ( hDelta > 0 ) { xMargin = hDelta / 2 ; } int vDelta = availableHeight - sceneHeight ; int yMargin = 0 ; if ( vDelta > 2 * verticalMargin ) { yMargin = verticalMargin ; } else if ( vDelta > 0 ) { yMargin = vDelta / 2 ; } double hScale = ( availableWidth - 2 * xMargin ) / ( double ) sceneWidth ; double vScale = ( availableHeight - 2 * yMargin ) / ( double ) sceneHeight ; double scale = Math . min ( hScale , vScale ) ; if ( ! allowZoomIn ) { scale = Math . min ( 1.0 , scale ) ; } setScale ( scale ) ; } }


@ Override public void remove  ( ) { throw new UnsupportedOperationException ( ) ; }


public static boolean putLong  ( Context context , String key , long value ) { SharedPreferences settings = context . getSharedPreferences ( PREFERENCE_NAME , Context . MODE_PRIVATE ) ; SharedPreferences . Editor editor = settings . edit ( ) ; editor . putLong ( key , value ) ; return editor . commit ( ) ; }


public void notifyListeners  ( double oldValue , double newValue ) { for ( SpinnerNotifyInterface observer : observers ) { observer . notify ( oldValue , newValue ) ; } }


public static NativePage createNativePageForURL  ( String url , NativePage candidatePage , Tab tab , TabModelSelector tabModelSelector , Activity activity ) { return createNativePageForURL ( url , candidatePage , tab , tabModelSelector , activity , tab . isIncognito ( ) ) ; }

Devuelve una nativa para mostrar la URL dada si la URL es una URL válida de cromo nativa, o NULL de otra manera.Si el candidato no es nulo y corresponde a la URL, se devolverá.De lo contrario, se construirá una nueva nativa.


public synchronized boolean isCompleted  ( ) { return completed ; }

Devuelve VERDADERO si este artículo de la cola ha sido procesado.


public int lowerEndpoint  ( ) { return lowerBound . endpoint ( ) ; }

Devuelve el punto final inferior de este rango.


public void populateComplete  ( GeoServerConnection connection ) { updateButtonState ( ) ; }


@ Override public int length  ( ) { return Histogram . length ( ) + Graph . length ( ) ; }

Devuelve el tamaño del objeto de documento completo, sumando los tamaños de gráfico e histograma del documento.


public AudioInputStream convertToAudioInputStream  ( AudioFormat audioFormat ) throws IOException { if ( ram ) { assert os instanceof ByteArrayOutputStream ; assert f == null ; byte [ ] audioData = ( ( ByteArrayOutputStream ) os ) . toByteArray ( ) ; return new AudioInputStream ( new ByteArrayInputStream ( audioData ) , audioFormat , audioData . length / audioFormat . getFrameSize ( ) ) ; } else { assert os instanceof FileOutputStream ; assert f != null ; os . close ( ) ; long byteLength = f . length ( ) ; return new AudioInputStream ( new FileInputStream ( f ) , audioFormat , byteLength / audioFormat . getFrameSize ( ) ) ; } }

Convierta los datos de audio en un AudioInputStream de AudioFormat adecuado.


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

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


private static int calculateNumberOfRows  ( int m , int k , int c ) { int r = ( ( m + 1 + k ) / c ) + 1 ; if ( c * r >= ( m + 1 + k + c ) ) { r -- ; } return r ; }

Calcula el número necesario de filas como se describe en el Anexo P de ISO / IEC 15438: 2001 (e).


public int backend  ( ) { String s = soot . PhaseOptions . getString ( options , "backend" ) ; if ( s . equalsIgnoreCase ( "auto" ) ) return backend_auto ; if ( s . equalsIgnoreCase ( "buddy" ) ) return backend_buddy ; if ( s . equalsIgnoreCase ( "cudd" ) ) return backend_cudd ; if ( s . equalsIgnoreCase ( "sable" ) ) return backend_sable ; if ( s . equalsIgnoreCase ( "javabdd" ) ) return backend_javabdd ; if ( s . equalsIgnoreCase ( "none" ) ) return backend_none ; throw new RuntimeException ( "Invalid value " + s + " of phase option backend" ) ; }

Backend - Seleccione BDD Backend.Esta opción cuenta la paleta que la implementación de BDDS para usar.


public Matrix3f invertLocal  ( ) { float det = determinant ( ) ; if ( FastMath . abs ( det ) <= FastMath . FLT_EPSILON ) { return zero ( ) ; } float f00 = m11 * m22 - m12 * m21 ; float f01 = m02 * m21 - m01 * m22 ; float f02 = m01 * m12 - m02 * m11 ; float f10 = m12 * m20 - m10 * m22 ; float f11 = m00 * m22 - m02 * m20 ; float f12 = m02 * m10 - m00 * m12 ; float f20 = m10 * m21 - m11 * m20 ; float f21 = m01 * m20 - m00 * m21 ; float f22 = m00 * m11 - m01 * m10 ; m00 = f00 ; m01 = f01 ; m02 = f02 ; m10 = f10 ; m11 = f11 ; m12 = f12 ; m20 = f20 ; m21 = f21 ; m22 = f22 ; multLocal ( 1f / det ) ; return this ; }


private static double log  ( final double x , final double [ ] hiPrec ) { if ( x == 0 ) { return Double . NEGATIVE_INFINITY ; } long bits = Double . doubleToRawLongBits ( x ) ; if ( ( ( bits & 0x8000000000000000L ) != 0 || Double . isNaN ( x ) ) && x != 0.0 ) { if ( hiPrec != null ) { hiPrec [ 0 ] = Double . NaN ; } return Double . NaN ; } if ( x == Double . POSITIVE_INFINITY ) { if ( hiPrec != null ) { hiPrec [ 0 ] = Double . POSITIVE_INFINITY ; } return Double . POSITIVE_INFINITY ; } int exp = ( int ) ( bits >> 52 ) - 1023 ; if ( ( bits & 0x7ff0000000000000L ) == 0 ) { if ( x == 0 ) { if ( hiPrec != null ) { hiPrec [ 0 ] = Double . NEGATIVE_INFINITY ; } return Double . NEGATIVE_INFINITY ; } bits <<= 1 ; while ( ( bits & 0x0010000000000000L ) == 0 ) { -- exp ; bits <<= 1 ; } } if ( ( exp == - 1 || exp == 0 ) && x < 1.01 && x > 0.99 && hiPrec == null ) { double xa = x - 1.0 ; double xb = xa - x + 1.0 ; double tmp = xa * HEX_40000000 ; double aa = xa + tmp - tmp ; double ab = xa - aa ; xa = aa ; xb = ab ; final double [ ] lnCoef_last = LN_QUICK_COEF [ LN_QUICK_COEF . length - 1 ] ; double ya = lnCoef_last [ 0 ] ; double yb = lnCoef_last [ 1 ] ; for ( int i = LN_QUICK_COEF . length - 2 ; i >= 0 ; i -- ) { aa = ya * xa ; ab = ya * xb + yb * xa + yb * xb ; tmp = aa * HEX_40000000 ; ya = aa + tmp - tmp ; yb = aa - ya + ab ; final double [ ] lnCoef_i = LN_QUICK_COEF [ i ] ; aa = ya + lnCoef_i [ 0 ] ; ab = yb + lnCoef_i [ 1 ] ; tmp = aa * HEX_40000000 ; ya = aa + tmp - tmp ; yb = aa - ya + ab ; } aa = ya * xa ; ab = ya * xb + yb * xa + yb * xb ; tmp = aa * HEX_40000000 ; ya = aa + tmp - tmp ; yb = aa - ya + ab ; return ya + yb ; } final double [ ] lnm = lnMant . LN_MANT [ ( int ) ( ( bits & 0x000ffc0000000000L ) >> 42 ) ] ; final double epsilon = ( bits & 0x3ffffffffffL ) / ( TWO_POWER_52 + ( bits & 0x000ffc0000000000L ) ) ; double lnza = 0.0 ; double lnzb = 0.0 ; if ( hiPrec != null ) { double tmp = epsilon * HEX_40000000 ; double aa = epsilon + tmp - tmp ; double ab = epsilon - aa ; double xa = aa ; double xb = ab ; final double numer = bits & 0x3ffffffffffL ; final double denom = TWO_POWER_52 + ( bits & 0x000ffc0000000000L ) ; aa = numer - xa * denom - xb * denom ; xb += aa / denom ; final double [ ] lnCoef_last = LN_HI_PREC_COEF [ LN_HI_PREC_COEF . length - 1 ] ; double ya = lnCoef_last [ 0 ] ; double yb = lnCoef_last [ 1 ] ; for ( int i = LN_HI_PREC_COEF . length - 2 ; i >= 0 ; i -- ) { aa = ya * xa ; ab = ya * xb + yb * xa + yb * xb ; tmp = aa * HEX_40000000 ; ya = aa + tmp - tmp ; yb = aa - ya + ab ; final double [ ] lnCoef_i = LN_HI_PREC_COEF [ i ] ; aa = ya + lnCoef_i [ 0 ] ; ab = yb + lnCoef_i [ 1 ] ; tmp = aa * HEX_40000000 ; ya = aa + tmp - tmp ; yb = aa - ya + ab ; } aa = ya * xa ; ab = ya * xb + yb * xa + yb * xb ; lnza = aa + ab ; lnzb = - ( lnza - aa - ab ) ; } else { lnza = - 0.16624882440418567 ; lnza = lnza * epsilon + 0.19999954120254515 ; lnza = lnza * epsilon + - 0.2499999997677497 ; lnza = lnza * epsilon + 0.3333333333332802 ; lnza = lnza * epsilon + - 0.5 ; lnza = lnza * epsilon + 1.0 ; lnza *= epsilon ; } double a = LN_2_A * exp ; double b = 0.0 ; double c = a + lnm [ 0 ] ; double d = - ( c - a - lnm [ 0 ] ) ; a = c ; b += d ; c = a + lnza ; d = - ( c - a - lnza ) ; a = c ; b += d ; c = a + LN_2_B * exp ; d = - ( c - a - LN_2_B * exp ) ; a = c ; b += d ; c = a + lnm [ 1 ] ; d = - ( c - a - lnm [ 1 ] ) ; a = c ; b += d ; c = a + lnzb ; d = - ( c - a - lnzb ) ; a = c ; b += d ; if ( hiPrec != null ) { hiPrec [ 0 ] = a ; hiPrec [ 1 ] = b ; } return a + b ; }

Método de ayudante interno para la función Logaritmo natural.


protected StmtBody ( SootMethod m ) { super ( m ) ; }

Crea un cuerpo de STMT asociado con el método dado.


public static void pickImage  ( Activity activity ) { String chooserTitle = activity . getString ( R . string . pick_image_intent_text ) ; pickImage ( activity , chooserTitle ) ; }

Inicie un diálogo para elegir una imagen de las aplicaciones de la cámara / galería.


public static List < String > prepContentPurposeList  ( Map < String , Object > context ) { List < String > contentPurposeList = UtilGenerics . checkList ( context . get ( "contentPurposeList" ) ) ; String contentPurposeString = ( String ) context . get ( "contentPurposeString" ) ; if ( Debug . infoOn ( ) ) { Debug . logInfo ( "in prepContentPurposeList, contentPurposeString(0):" + contentPurposeString , "" ) ; } if ( UtilValidate . isNotEmpty ( contentPurposeString ) ) { List < String > purposesFromString = StringUtil . split ( contentPurposeString , "|" ) ; if ( UtilValidate . isEmpty ( contentPurposeList ) ) { contentPurposeList = FastList . newInstance ( ) ; } contentPurposeList . addAll ( purposesFromString ) ; } if ( UtilValidate . isEmpty ( contentPurposeList ) ) { contentPurposeList = FastList . newInstance ( ) ; } if ( Debug . infoOn ( ) ) { Debug . logInfo ( "in prepContentPurposeList, contentPurposeList(0):" + contentPurposeList , "" ) ; } return contentPurposeList ; }

Los controles para ver si hay una cadena de propósito (delimitada por tuberías) y la convierte en una lista y los concantos a cualquier lista de fines existentes.


protected void resetOptions  ( ) { m_InfoGains = null ; m_missing_merge = true ; m_Binarize = false ; }

Restablecer opciones a sus valores predeterminados


public static void w  ( String tag , String s ) { if ( LOG . WARN >= LOGLEVEL ) Log . w ( tag , s ) ; }


@ Override public void redoAction  ( UndoInterface undoRedoObject ) { if ( ( checkBox != null ) && ( undoRedoObject != null ) ) { if ( undoRedoObject . getNewValue ( ) instanceof Boolean ) { Boolean newValue = ( Boolean ) undoRedoObject . getNewValue ( ) ; checkBox . setSelected ( newValue . booleanValue ( ) ) ; } } }


public static < T > String  join ( Collection < T > collection , String separator , Function < T , String > stringMapper )  { if ( collection == null ) { return null ; } List < String > list = collection . stream ( ) . map ( stringMapper ) . collect ( Collectors . toList ( ) ) ; return StringUtils . join ( list , separator ) ; }

Se une a los elementos de la colección proporcionada en una cadena.La función de asignación de cadenas proporcionada se usa para producir la cadena para cada objeto.Null se devuelve si la colección proporcionada es nula.


protected boolean handleStartElement  ( QName element , XMLAttributes attributes , Augmentations augs ) throws XNIException { if ( ! fSeenRootElement ) { fPerformValidation = validate ( ) ; fSeenRootElement = true ; fValidationManager . setEntityState ( fDTDGrammar ) ; fValidationManager . setGrammarFound ( fSeenDoctypeDecl ) ; rootElementSpecified ( element ) ; } if ( fDTDGrammar == null ) { if ( ! fPerformValidation ) { fCurrentElementIndex = - 1 ; fCurrentContentSpecType = - 1 ; fInElementContent = false ; } if ( fPerformValidation ) { fErrorReporter . reportError ( XMLMessageFormatter . XML_DOMAIN , "MSG_GRAMMAR_NOT_FOUND" , new Object [ ] { element . rawname } , XMLErrorReporter . SEVERITY_ERROR ) ; } if ( fDocumentSource != null ) { fDocumentSource . setDocumentHandler ( fDocumentHandler ) ; if ( fDocumentHandler != null ) fDocumentHandler . setDocumentSource ( fDocumentSource ) ; return true ; } } else { fCurrentElementIndex = fDTDGrammar . getElementDeclIndex ( element ) ; fCurrentContentSpecType = fDTDGrammar . getContentSpecType ( fCurrentElementIndex ) ; if ( fCurrentContentSpecType == - 1 && fPerformValidation ) { fErrorReporter . reportError ( XMLMessageFormatter . XML_DOMAIN , "MSG_ELEMENT_NOT_DECLARED" , new Object [ ] { element . rawname } , XMLErrorReporter . SEVERITY_ERROR ) ; } addDTDDefaultAttrsAndValidate ( element , fCurrentElementIndex , attributes ) ; } fInElementContent = fCurrentContentSpecType == XMLElementDecl . TYPE_CHILDREN ; fElementDepth ++ ; if ( fPerformValidation ) { if ( fElementChildrenOffsetStack . length <= fElementDepth ) { int newarray [ ] = new int [ fElementChildrenOffsetStack . length * 2 ] ; System . arraycopy ( fElementChildrenOffsetStack , 0 , newarray , 0 , fElementChildrenOffsetStack . length ) ; fElementChildrenOffsetStack = newarray ; } fElementChildrenOffsetStack [ fElementDepth ] = fElementChildrenLength ; if ( fElementChildren . length <= fElementChildrenLength ) { QName [ ] newarray = new QName [ fElementChildrenLength * 2 ] ; System . arraycopy ( fElementChildren , 0 , newarray , 0 , fElementChildren . length ) ; fElementChildren = newarray ; } QName qname = fElementChildren [ fElementChildrenLength ] ; if ( qname == null ) { for ( int i = fElementChildrenLength ; i < fElementChildren . length ; i ++ ) { fElementChildren [ i ] = new QName ( ) ; } qname = fElementChildren [ fElementChildrenLength ] ; } qname . setValues ( element ) ; fElementChildrenLength ++ ; } fCurrentElement . setValues ( element ) ; ensureStackCapacity ( fElementDepth ) ; fElementQNamePartsStack [ fElementDepth ] . setValues ( fCurrentElement ) ; fElementIndexStack [ fElementDepth ] = fCurrentElementIndex ; fContentSpecTypeStack [ fElementDepth ] = fCurrentContentSpecType ; startNamespaceScope ( element , attributes , augs ) ; return false ; }


public static EnumType create  ( ProtoContainerElement parent , EnumDescriptorProto proto , String path ) { return new EnumType ( parent , proto , path ) ; }

Crea un enumeración respaldado por el proto determinado.


public static boolean calculatePhysicalDodgeRate  ( Creature attacker , Creature attacked , int accMod ) { if ( attacker . getObserveController ( ) . checkAttackerStatus ( AttackStatus . DODGE ) ) { return true ; } if ( attacked . getObserveController ( ) . checkAttackStatus ( AttackStatus . DODGE ) ) { return true ; } float accuracy = attacker . getGameStats ( ) . getMainHandPAccuracy ( ) . getCurrent ( ) + accMod ; float dodge = 0 ; if ( attacked instanceof Player ) { dodge = attacked . getGameStats ( ) . getEvasion ( ) . getBonus ( ) + getMovementModifier ( attacked , StatEnum . EVASION , attacked . getGameStats ( ) . getEvasion ( ) . getBase ( ) ) + attacked . getGameStats ( ) . getStat ( StatEnum . PVP_DODGE , 0 ) . getCurrent ( ) ; } else { dodge = attacked . getGameStats ( ) . getEvasion ( ) . getBonus ( ) + getMovementModifier ( attacked , StatEnum . EVASION , attacked . getGameStats ( ) . getEvasion ( ) . getBase ( ) ) ; } float dodgeRate = dodge - accuracy ; if ( attacked instanceof Npc ) { int levelDiff = attacked . getLevel ( ) - attacker . getLevel ( ) ; dodgeRate *= 1 + getNpcLevelDiffMod ( levelDiff , 0 ) ; if ( ( ( Npc ) attacked ) . hasStatic ( ) ) { return false ; } } return calculatePhysicalEvasion ( dodgeRate , 300 ) ; }


public Well44497b ( int seed ) { super ( K , seed ) ; }

Crea un nuevo generador de números aleatorios usando una sola semilla INT.


public Memory ( String name , int amount ) { this . name = name ; this . amount = amount ; }


public FloatColumn neg  ( ) { FloatColumn newColumn = FloatColumn . create ( name ( ) + "[neg]" , size ( ) ) ; for ( float value : this ) { newColumn . add ( value * - 1 ) ; } return newColumn ; }

Para cada elemento en la columna, devuelve el mismo número con el signo cambiado.Por ejemplo: -1.3 Devoluciones 1.3, 2.135 Devoluciones -2.135 0 Devoluciones 0


Comience un mensaje de texto claro firmado.


private String convertTimeStampToString  ( String factTimeStamp ) { SimpleDateFormat parser = new SimpleDateFormat ( CarbonCommonConstants . CARBON_TIMESTAMP ) ; Date dateToStr = null ; try { dateToStr = parser . parse ( factTimeStamp ) ; return Long . toString ( dateToStr . getTime ( ) ) ; } catch ( ParseException e ) { LOGGER . error ( "Cannot convert" + factTimeStamp + " to Time/Long type value" + e . getMessage ( ) ) ; return null ; } }

Este método convertirá una marca de tiempo dada a un valor prolongado y luego retrocederá


@ deprecated public char current  ( ) { if ( ( this . pos >= this . begin ) && ( this . pos < this . end ) ) { return this . text . charAt ( this . pos ) ; } return 65535 ; }


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


protected DfpDec ( final DfpField factory , double x ) { super ( factory , x ) ; round ( 0 ) ; }


public static final Edge locateDirectedEdgeInGraph  ( UniqueVertexGraph gGraph , Vertex vHead , Vertex vTail ) { try { vHead = locateVertexInGraph ( gGraph , vHead ) ; if ( vHead == null ) return null ; vTail = locateVertexInGraph ( gGraph , vTail ) ; if ( vTail == null ) return null ; List lEdges = gGraph . getEdges ( vHead ) ; java . util . Iterator iIter = lEdges . iterator ( ) ; String sTailLbl = vTail . getLabel ( ) ; while ( iIter . hasNext ( ) ) { Edge eCurrent = ( Edge ) iIter . next ( ) ; if ( vHead != vTail ) { if ( eCurrent . getVertexB ( ) . getLabel ( ) . compareTo ( sTailLbl ) == 0 ) return eCurrent ; } else { if ( ( eCurrent . getVertexA ( ) . getLabel ( ) . equals ( sTailLbl ) ) && ( eCurrent . getVertexB ( ) . getLabel ( ) . equals ( sTailLbl ) ) ) return eCurrent ; } } return null ; } catch ( NullPointerException e ) { return null ; } }

Busca un borde dirigido dado en un gráfico seleccionado.El borde se describe en función de la etiqueta de sus vértices.


public boolean removeTuple  ( Tuple t ) { if ( t instanceof Node ) { return removeNode ( ( Node ) t ) ; } else if ( t instanceof Edge ) { return removeEdge ( ( Edge ) t ) ; } else { throw new IllegalArgumentException ( "Input tuple must be part of this graph" ) ; } }

Si la tupla dada es un nodo o borde en este gráfico, retírelo.


public String reflection_log  ( ) { return soot . PhaseOptions . getString ( options , "reflection-log" ) ; }

Registro de reflexiones: utiliza un registro de reflexión para resolver llamadas reflexivas. Cargue un registro de reflexión del archivo dado y use este registro para resolver los sitios de llamadas reflectantes.Tenga en cuenta que cuando se administra un registro, las siguientes opciones no tienen ningún efecto: Safe-forname, Safe-NewInstance.


public static List < X509Certificate > decodeCertificates  ( byte [ ] certificateBytes ) throws UaException { Preconditions . checkNotNull ( certificateBytes , "certificateBytes cannot be null" ) ; CertificateFactory factory ; try { factory = CertificateFactory . getInstance ( "X.509" ) ; } catch ( CertificateException e ) { throw new UaException ( StatusCodes . Bad_InternalError , e ) ; } try { Collection < ? extends Certificate > certificates = factory . generateCertificates ( new ByteArrayInputStream ( certificateBytes ) ) ; return certificates . stream ( ) . map ( null ) . collect ( Collectors . toList ( ) ) ; } catch ( CertificateException e ) { throw new UaException ( StatusCodes . Bad_CertificateInvalid , e ) ; } }

Decodifique una secuencia de certificados X.509 codificados por Der o una cadena de certificados PKCS # 7.


public static void addGlue  ( JComponent b , boolean horiz ) { b . add ( horiz ? Box . createHorizontalGlue ( ) : Box . createVerticalGlue ( ) ) ; }

Agregue un pegamento, o espaciado variable, a un componente de UI


static String encodeHighLevel  ( String msg , Compaction compaction , Charset encoding ) throws WriterException { StringBuilder sb = new StringBuilder ( msg . length ( ) ) ; if ( encoding == null ) { encoding = DEFAULT_ENCODING ; } else if ( ! DEFAULT_ENCODING . equals ( encoding ) ) { CharacterSetECI eci = CharacterSetECI . getCharacterSetECIByName ( encoding . name ( ) ) ; if ( eci != null ) { encodingECI ( eci . getValue ( ) , sb ) ; } } int len = msg . length ( ) ; int p = 0 ; int textSubMode = SUBMODE_ALPHA ; if ( compaction == Compaction . TEXT ) { encodeText ( msg , p , len , sb , textSubMode ) ; } else if ( compaction == Compaction . BYTE ) { byte [ ] bytes = msg . getBytes ( encoding ) ; encodeBinary ( bytes , p , bytes . length , BYTE_COMPACTION , sb ) ; } else if ( compaction == Compaction . NUMERIC ) { sb . append ( ( char ) LATCH_TO_NUMERIC ) ; encodeNumeric ( msg , p , len , sb ) ; } else { int encodingMode = TEXT_COMPACTION ; while ( p < len ) { int n = determineConsecutiveDigitCount ( msg , p ) ; if ( n >= 13 ) { sb . append ( ( char ) LATCH_TO_NUMERIC ) ; encodingMode = NUMERIC_COMPACTION ; textSubMode = SUBMODE_ALPHA ; encodeNumeric ( msg , p , n , sb ) ; p += n ; } else { int t = determineConsecutiveTextCount ( msg , p ) ; if ( t >= 5 || n == len ) { if ( encodingMode != TEXT_COMPACTION ) { sb . append ( ( char ) LATCH_TO_TEXT ) ; encodingMode = TEXT_COMPACTION ; textSubMode = SUBMODE_ALPHA ; } textSubMode = encodeText ( msg , p , t , sb , textSubMode ) ; p += t ; } else { int b = determineConsecutiveBinaryCount ( msg , p , encoding ) ; if ( b == 0 ) { b = 1 ; } byte [ ] bytes = msg . substring ( p , p + b ) . getBytes ( encoding ) ; if ( bytes . length == 1 && encodingMode == TEXT_COMPACTION ) { encodeBinary ( bytes , 0 , 1 , TEXT_COMPACTION , sb ) ; } else { encodeBinary ( bytes , 0 , bytes . length , encodingMode , sb ) ; encodingMode = BYTE_COMPACTION ; textSubMode = SUBMODE_ALPHA ; } p += b ; } } } } return sb . toString ( ) ; }

Realiza la codificación de alto nivel de un mensaje PDF417 utilizando el algoritmo descrito en el Anexo P de ISO / IEC 15438: 2001 (E).Si se ha seleccionado la compactación de byte, entonces se utiliza solo la compactación de bytes.


public SwapReadOnlyIterator ( long inSwapStartIndex ) { _memoryIteratorExhausted = true ; _memoryIterator = null ; try { _externalIterator = _externalStorage . readOnlyIterator ( inSwapStartIndex ) ; } catch ( StorageException e ) { throw new SwapStorageException ( e ) ; } }

Cree un iterador que comience directamente al iterar sobre el almacenamiento, saltando así el archivo de registro de redo de memoria


public boolean hasSuperClassAccess  ( ) { return getSuperClassAccessOpt ( ) . getNumChild ( ) != 0 ; }

Compruebe si existe el hijo Opcional SuperClassAccess.


public static < T > OperatorSemaphore < T > semaphore  ( Observable < Boolean > go ) { return new OperatorSemaphore < > ( go ) ; }

Devuelve un operador que retrasa las emisiones de ONNEXT, OnComplete y OnError hasta que se haya recibido un valor real recibido de un observable.Cuando el observable se emite falso, el operador comienza a retrasar las emisiones nuevamente.


public void clear  ( ) { if ( mSize != 0 ) { freeArrays ( mHashes , mArray , mSize ) ; mHashes = ContainerHelpers . EMPTY_INTS ; mArray = ContainerHelpers . EMPTY_OBJECTS ; mSize = 0 ; } }

Haz que el mapa de la matriz vacía.Todo el almacenamiento se libera.


private void createVirtualDisplay  ( ) { Point size = new Point ( ) ; display . getSize ( size ) ; width = size . x ; height = size . y ; imageReader = ImageReader . newInstance ( width , height , PixelFormat . RGBA_8888 , 2 ) ; virtualDisplay = mediaProjection . createVirtualDisplay ( SCREENCAP_NAME , width , height , density , VIRTUAL_DISPLAY_FLAGS , imageReader . getSurface ( ) , null , handler ) ; handler . postDelayed ( getRunnableThatTakesScreenshot ( ) , 2 ) ; }

Factorización de la creación de visualización virtual


public Set < Type > possibleTypes  ( ) { return Collections . emptySet ( ) ; }

Conjunto de todos los posibles tipos de objetos de tiempo de ejecución en el conjunto.


public IsSubinterval ( SimplifiedIntervalList supplyList ) { super ( supplyList , IS_SUBINTERVAL , false ) ; }

Construir un predicado subinterval que se cierra sobre un suministro de intervalos.


public static void write  ( String data , Writer output ) throws IOException { if ( data != null ) { output . write ( data ) ; } }

Escribe caracteres de una cadena </ código> a un escritor </ código>.


@ Nullable public static NlComponent findImmediateComponent  ( @ NotNull ScreenView view , @ SwingCoordinate int swingX , @ SwingCoordinate int swingY ) { if ( view . getModel ( ) . getComponents ( ) . isEmpty ( ) ) { return null ; } SelectionModel selectionModel = view . getSelectionModel ( ) ; NlComponent start = null ; if ( selectionModel . isEmpty ( ) ) { start = view . getModel ( ) . getComponents ( ) . get ( 0 ) . getRoot ( ) ; } else { start = selectionModel . getPrimary ( ) ; } NlComponent found = start . findImmediateLeafAt ( getAndroidX ( view , swingX ) , getAndroidY ( view , swingY ) ) ; if ( found == null ) { found = findComponent ( view , swingX , swingY ) ; } return found ; }

Devuelve el componente en la coordenada dada (x, y) en el sistema de coordenadas de swing, que es el niño inmediato de la selección actual (o la selección en sí, si no se han encontrado niños y la selección se interseca).


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

[% SkillTarget] ha recuperado% NUM0 HP debido a [% de habilidad].


private static boolean isTextObscured  ( JComponent c , String s ) { Graphics g = c . getGraphics ( ) ; FontMetrics fm = g . getFontMetrics ( c . getFont ( ) ) ; int sw = fm . stringWidth ( s ) ; return ( sw > c . getWidth ( ) ) ; }

Compruebe si se oscurece cualquier texto de etiqueta.


public Window ( Collection < String > words , int begin , int end ) { this ( words , 5 , begin , end ) ; }

Crea una ventana con un contexto de tamaño 3.


public S2Point toPointRaw  ( ) { MutableInteger i = new MutableInteger ( 0 ) ; MutableInteger j = new MutableInteger ( 0 ) ; int face = toFaceIJOrientation ( i , j , null ) ; int delta = isLeaf ( ) ? 1 : ( ( ( i . intValue ( ) ^ ( ( ( int ) id ) >>> 2 ) ) & 1 ) != 0 ) ? 2 : 0 ; int si = ( i . intValue ( ) << 1 ) + delta - MAX_SIZE ; int ti = ( j . intValue ( ) << 1 ) + delta - MAX_SIZE ; return faceSiTiToXYZ ( face , si , ti ) ; }

Devuelva el vector de dirección correspondiente al centro de la celda dada.El vector devuelto por TOURPOINTRAW no es necesariamente una longitud de la unidad.


public static void createWorkerDialog  ( final Task < ? > readAndProcess ) { final Alert dialog = new Alert ( AlertType . INFORMATION ) ; dialog . setTitle ( readAndProcess . getTitle ( ) ) ; dialog . setHeaderText ( null ) ; final ButtonType bgButtonType = new ButtonType ( "Run in background" , ButtonData . APPLY ) ; dialog . getButtonTypes ( ) . setAll ( ButtonType . CANCEL , bgButtonType ) ; final Label progressMessage = new Label ( ) ; progressMessage . textProperty ( ) . bind ( readAndProcess . messageProperty ( ) ) ; dialog . setResultConverter ( null ) ; final WorkerProgressPane content = new WorkerProgressPane ( dialog ) ; content . setMaxWidth ( Double . MAX_VALUE ) ; VBox vbox = new VBox ( 10 , progressMessage , content ) ; vbox . setMaxWidth ( Double . MAX_VALUE ) ; vbox . setPrefSize ( 400 , 80 ) ; dialog . getDialogPane ( ) . setContent ( vbox ) ; content . setWorker ( readAndProcess ) ; }

Muestra un diálogo trabajador / progreso.


El identificador único de 64 bits para esta celda.


public org . datavec . api . berkeley . PriorityQueue < E > asMinPriorityQueue  ( ) { org . datavec . api . berkeley . PriorityQueue < E > pq = new org . datavec . api . berkeley . PriorityQueue < E > ( entries . size ( ) ) ; for ( Entry < E , Double > entry : entries . entrySet ( ) ) { pq . add ( entry . getKey ( ) , - entry . getValue ( ) ) ; } return pq ; }

ADVERTENCIA: Todas las prioridades son lo negativo de sus conteos en el mostrador aquí.


public IElementType advance  ( ) throws java . io . IOException { int zzInput ; int zzAction ; int zzCurrentPosL ; int zzMarkedPosL ; int zzEndReadL = zzEndRead ; CharSequence zzBufferL = zzBuffer ; char [ ] zzCMapL = ZZ_CMAP ; int [ ] zzTransL = ZZ_TRANS ; int [ ] zzRowMapL = ZZ_ROWMAP ; int [ ] zzAttrL = ZZ_ATTRIBUTE ; while ( true ) { zzMarkedPosL = zzMarkedPos ; zzAction = - 1 ; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL ; zzState = ZZ_LEXSTATE [ zzLexicalState ] ; int zzAttributes = zzAttrL [ zzState ] ; if ( ( zzAttributes & 1 ) == 1 ) { zzAction = zzState ; } zzForAction : { while ( true ) { if ( zzCurrentPosL < zzEndReadL ) { zzInput = Character . codePointAt ( zzBufferL , zzCurrentPosL ) ; zzCurrentPosL += Character . charCount ( zzInput ) ; } else if ( zzAtEOF ) { zzInput = YYEOF ; break zzForAction ; } else { zzCurrentPos = zzCurrentPosL ; zzMarkedPos = zzMarkedPosL ; boolean eof = zzRefill ( ) ; zzCurrentPosL = zzCurrentPos ; zzMarkedPosL = zzMarkedPos ; zzBufferL = zzBuffer ; zzEndReadL = zzEndRead ; if ( eof ) { zzInput = YYEOF ; break zzForAction ; } else { zzInput = Character . codePointAt ( zzBufferL , zzCurrentPosL ) ; zzCurrentPosL += Character . charCount ( zzInput ) ; } } int zzNext = zzTransL [ zzRowMapL [ zzState ] + zzCMapL [ zzInput ] ] ; if ( zzNext == - 1 ) break zzForAction ; zzState = zzNext ; zzAttributes = zzAttrL [ zzState ] ; if ( ( zzAttributes & 1 ) == 1 ) { zzAction = zzState ; zzMarkedPosL = zzCurrentPosL ; if ( ( zzAttributes & 8 ) == 8 ) break zzForAction ; } } } zzMarkedPos = zzMarkedPosL ; if ( zzInput == YYEOF && zzStartRead == zzCurrentPos ) { zzAtEOF = true ; return null ; } else { switch ( zzAction < 0 ? zzAction : ZZ_ACTION [ zzAction ] ) { case 1 : { return TokenType . BAD_CHARACTER ; } case 11 : break ; case 2 : { return TokenType . WHITE_SPACE ; } case 12 : break ; case 3 : { return ProguardTypes . CRLF ; } case 13 : break ; case 4 : { return ProguardTypes . LINE_CMT ; } case 14 : break ; case 5 : { yybegin ( YYINITIAL ) ; return ProguardTypes . CLOSE_BRACE ; } case 15 : break ; case 6 : { return ProguardTypes . FLAG_ARG ; } case 16 : break ; case 7 : { yybegin ( YYINITIAL ) ; return ProguardTypes . CRLF ; } case 17 : break ; case 8 : { yybegin ( STATE_JAVA_SECTION ) ; return ProguardTypes . OPEN_BRACE ; } case 18 : break ; case 9 : { yybegin ( STATE_FLAG_ARG ) ; return ProguardTypes . FLAG_NAME ; } case 19 : break ; case 10 : { return ProguardTypes . JAVA_DECL ; } case 20 : break ; default : zzScanError ( ZZ_NO_MATCH ) ; } } } }

Reanuda el escaneo hasta que se coincida con la siguiente expresión regular, se encuentra el final de la entrada o se produce un error de E / S.


public void selectFirstSymbol  ( ) { if ( SelectedSymbol . getInstance ( ) . getSld ( ) != null ) { symbolTree . setSelectionRow ( 0 ) ; } else { if ( displayPanel != null ) { displayPanel . show ( null , null ) ; } if ( renderList != null ) { for ( RenderSymbolInterface render : renderList ) { render . renderSymbol ( ) ; } } } }


protected boolean check  ( MapleCharacter c , int npcid ) { if ( dayByDay ) { } if ( normalAutoStart ) { } if ( lvmin > - 1 ) { return c . getLevel ( ) >= lvmin ; } if ( lvmax > - 1 ) { return c . getLevel ( ) >= lvmax ; } if ( mbmin > 0 ) { return c . getMonsterBook ( ) . getSeen ( ) >= mbmin ; } if ( charismaMin > 0 ) { return c . getTrait ( MapleTraitType . getByQuestName ( "charisma" ) ) . getLevel ( ) >= charismaMin ; } if ( charmMin > 0 ) { return c . getTrait ( MapleTraitType . getByQuestName ( "charm" ) ) . getLevel ( ) >= charmMin ; } if ( craftMin > 0 ) { return c . getTrait ( MapleTraitType . getByQuestName ( "craft" ) ) . getLevel ( ) >= craftMin ; } if ( insightMin > 0 ) { return c . getTrait ( MapleTraitType . getByQuestName ( "insight" ) ) . getLevel ( ) >= insightMin ; } if ( senseMin > 0 ) { return c . getTrait ( MapleTraitType . getByQuestName ( "sense" ) ) . getLevel ( ) >= senseMin ; } if ( willMin > 0 ) { return c . getTrait ( MapleTraitType . getByQuestName ( "will" ) ) . getLevel ( ) >= willMin ; } if ( pop > 0 ) { return c . getFame ( ) >= pop ; } if ( pettamenessmin > 0 ) { Stream < MaplePet > pets = c . getPets ( ) . stream ( ) ; Predicate < MaplePet > pet = null ; return pets . anyMatch ( pet ) ; } if ( subJobFlag > 0 ) { return c . getSubcategory ( ) == ( subJobFlag / 2 ) ; } if ( npc > 0 ) { return npcid == npc ; } if ( interval > - 1 ) { long time = System . currentTimeMillis ( ) - interval * 60 * 1000L ; return c . getQuest ( quest ) . getStatus ( ) != 2 || c . getQuest ( quest ) . getCompletionTime ( ) <= time ; } if ( ! end . isEmpty ( ) ) { String timeStr = end ; if ( timeStr == null || timeStr . length ( ) <= 0 ) return true ; Calendar cal = Calendar . getInstance ( ) ; int year = Integer . parseInt ( timeStr . substring ( 0 , 4 ) ) ; int month = Integer . parseInt ( timeStr . substring ( 4 , 6 ) ) ; int date = Integer . parseInt ( timeStr . substring ( 6 , 8 ) ) ; int hour = Integer . parseInt ( timeStr . substring ( 8 , 10 ) ) ; cal . set ( year , month , date , hour , 0 ) ; return cal . getTimeInMillis ( ) >= System . currentTimeMillis ( ) ; } if ( ! startscript . isEmpty ( ) ) { } if ( ! endscript . isEmpty ( ) ) { } if ( ! fieldEnter . isEmpty ( ) ) { return fieldEnter . contains ( c . getMapId ( ) ) ; } if ( ! jobs . isEmpty ( ) ) { return ( jobs . contains ( c . getJob ( ) ) || c . isGM ( ) ) ; } if ( ! skills . isEmpty ( ) ) { for ( Entry < Integer , Boolean > a : skills . entrySet ( ) ) { int skillid = a . getKey ( ) ; boolean acquire = a . getValue ( ) ; Skill skill = SkillFactory . getSkill ( skillid ) ; if ( acquire ) { int s = skill . isFourthJob ( ) ? c . getMasterLevel ( skill ) : c . getSkillLevel ( skill ) ; if ( s == 0 ) { return false ; } } else { if ( c . getSkillLevel ( skill ) > 0 || c . getMasterLevel ( skill ) > 0 ) { return false ; } } } return true ; } if ( ! quests . isEmpty ( ) ) { for ( Entry < Integer , Byte > a : quests . entrySet ( ) ) { MapleQuestStatus q = c . getQuest ( MapleQuest . getInstance ( a . getKey ( ) ) ) ; byte state = a . getValue ( ) ; if ( state != 0 ) { if ( q == null && state == 0 ) { continue ; } if ( q == null || q . getStatus ( ) != state ) { return false ; } } } return true ; } if ( ! items . isEmpty ( ) ) { for ( Entry < Integer , Integer > a : items . entrySet ( ) ) { int itemid = a . getKey ( ) ; short quantity = 0 ; MapleInventoryType iType = GameConstants . getInventoryType ( itemid ) ; for ( Item item : c . getInventory ( iType ) . listById ( itemid ) ) { quantity += item . getQuantity ( ) ; } int count = a . getValue ( ) ; if ( quantity < count || ( count <= 0 && quantity > 0 ) ) { return false ; } } return true ; } if ( ! mobs . isEmpty ( ) ) { for ( Entry < Integer , Integer > a : mobs . entrySet ( ) ) { int mobId = a . getKey ( ) ; int killReq = a . getValue ( ) ; if ( c . getQuest ( quest ) . getMobKills ( mobId ) < killReq ) { return false ; } } return true ; } if ( ! pets . isEmpty ( ) ) { return pets . stream ( ) . anyMatch ( null ) ; } return true ; }

Proporcionar un cheque con los requisitos de búsqueda.


static public int [ ] removeIndex  ( int [ ] X , int x ) { int newX [ ] = new int [ X . length - 1 ] ; int j = 0 ; for ( int i = 0 ; i < X . length ; i ++ ) if ( X [ i ] != x ) newX [ j ++ ] = X [ i ] ; return newX ; }


public final void run  ( ) { while ( keepAlive ) { synchronized ( working ) { if ( runObj == null ) { try { working . wait ( ) ; } catch ( InterruptedException ignore ) { ; } } try { if ( runObj != null ) { runObj . run ( ) ; runObj = null ; } synchronized ( complete ) { complete . notifyAll ( ) ; } } catch ( Throwable t ) { if ( logger . isLoggable ( Level . FINEST ) ) logger . log ( Level . FINEST , "Running poolable thread id=" + threadID , t ) ; } finally { try { pool . release ( this ) ; } catch ( Exception e ) { if ( logger . isLoggable ( Level . FINEST ) ) logger . log ( Level . FINEST , "Releasing poolable thread " + "id=" + threadID , e ) ; } } } } }

Espere en la piscina, hasta que alguien necesita este hilo, luego vuelva a ingresar a la piscina.No anule este método, use <código> Ejecutar </ código> en su lugar.


@ Override public void actionPerformed  ( AnActionEvent e ) { ScreenView screenView = mySurface . getCurrentScreenView ( ) ; if ( screenView != null ) { LintAnnotationsModel lintModel = screenView . getModel ( ) . getLintAnnotationsModel ( ) ; if ( lintModel != null && lintModel . getIssueCount ( ) > 0 ) { new LintNotificationPanel ( screenView , lintModel ) . show ( e ) ; } } }

Muestra la lista de advertencias / errores.


@ Override public boolean accept  ( File directory , String fileName ) { if ( ! super . accept ( directory , fileName ) ) return false ; String firstLine = Basic . getFirstLineFromFile ( new File ( fileName ) ) ; return firstLine != null && firstLine . startsWith ( "Reading from fasta file" ) ; }


public static String generateCode  ( ) { return generateCode ( CODESIZE ) ; }

Genera una cadena pseudo aleatoria usando los caracteres permitidos.El código tiene 11 caracteres de longitud.


public void addItemRelation  ( String relationName , Item item ) { relations . setObject ( relationName , item ) ; }

Agrega el artículo dado al conjunto de relaciones.Siempre que se agregue un artículo a una relación, debe agregar el nombre y la referencia del elemento a este conjunto de asignaciones de nombre / elemento.Esto permite que un artículo encuentre el conjunto de todas las relaciones con las que está contenida.


public void drawChartTransposed  ( Graphics2D gc ) { int x0 = 2 ; int x1 = getWidth ( ) - 2 ; int y0 = getHeight ( ) - bottomMargin ; int y1 = topMargin ; if ( x0 >= x1 ) return ; SelectionGraphics < String [ ] > sgc = ( gc instanceof SelectionGraphics ? ( SelectionGraphics < String [ ] > ) gc : null ) ; Rectangle deviceBBox = new Rectangle ( x0 , y1 , x1 - x0 , y0 - y1 ) ; int diameter = Math . min ( deviceBBox . width , deviceBBox . height ) - 70 ; deviceBBox . x = deviceBBox . x + ( deviceBBox . width - diameter ) / 2 ; deviceBBox . y = deviceBBox . y + ( deviceBBox . height - diameter ) / 2 ; if ( getChartData ( ) . getMaxTotalSeries ( ) <= 0 ) { return ; } String className = getChartData ( ) . getClassNames ( ) . iterator ( ) . next ( ) ; double factor = 360.0 / getChartData ( ) . getTotalForClassIncludingDisabledSeries ( className ) ; double totalValue = 0 ; Arc2D arc = new Arc2D . Double ( ) ; arc . setArcType ( Arc2D . PIE ) ; arc . setFrame ( deviceBBox . x + 1 , deviceBBox . y + 1 , diameter , diameter ) ; Point center = new Point ( ( int ) arc . getFrame ( ) . getCenterX ( ) , ( int ) arc . getFrame ( ) . getCenterY ( ) ) ; gc . setFont ( getFont ( ChartViewer . FontKeys . ValuesFont . toString ( ) ) ) ; for ( String series : getChartData ( ) . getSeriesNames ( ) ) { double value = getChartData ( ) . getValue ( series , className ) . doubleValue ( ) ; if ( value > 0 ) { arc . setAngleStart ( totalValue * factor ) ; arc . setAngleExtent ( value * factor ) ; totalValue += value ; gc . setColor ( getChartColors ( ) . getSampleColor ( series ) ) ; if ( sgc != null ) sgc . setCurrentItem ( new String [ ] { series , className } ) ; gc . fill ( arc ) ; if ( sgc != null ) sgc . clearCurrentItem ( ) ; gc . setColor ( Color . black ) ; gc . draw ( arc ) ; boolean isSelected = getChartData ( ) . getChartSelection ( ) . isSelected ( series , null ) ; if ( isShowValues ( ) || isSelected ) { double textAngle = Geometry . deg2rad ( 360 - ( arc . getAngleStart ( ) + arc . getAngleExtent ( ) / 2 ) ) ; Point2D apt = Geometry . translateByAngle ( center , textAngle , diameter / 2 + 5 ) ; if ( isSelected ) gc . setColor ( ProgramProperties . SELECTION_COLOR_ADDITIONAL_TEXT ) ; else gc . setColor ( getFontColor ( ChartViewer . FontKeys . ValuesFont . toString ( ) , Color . DARK_GRAY ) ) ; if ( sgc != null ) sgc . setCurrentItem ( new String [ ] { series , className } ) ; drawString ( gc , "" + ( int ) value , apt . getX ( ) , apt . getY ( ) , textAngle ) ; if ( sgc != null ) sgc . clearCurrentItem ( ) ; } } } if ( chartData . getChartSelection ( ) . getSelectedSeries ( ) . size ( ) > 0 ) { totalValue = 0 ; gc . setStroke ( HEAVY_STROKE ) ; gc . setColor ( ProgramProperties . SELECTION_COLOR ) ; for ( String series : getChartData ( ) . getSeriesNames ( ) ) { double value = getChartData ( ) . getValue ( series , className ) . doubleValue ( ) ; arc . setAngleStart ( totalValue * factor ) ; arc . setAngleExtent ( value * factor ) ; totalValue += value ; if ( getChartData ( ) . getChartSelection ( ) . isSelected ( series , null ) ) { gc . draw ( arc ) ; } } gc . setStroke ( NORMAL_STROKE ) ; } }

Dibuja un pastel en el que las rodajas son series.


protected void clearBoxes  ( ) { for ( int i = 0 ; i < mPassCodeEditTexts . length ; i ++ ) { mPassCodeEditTexts [ i ] . setText ( "" ) ; } mPassCodeEditTexts [ 0 ] . requestFocus ( ) ; }

Establece los campos de entrada para vaciar las cadenas y pone el enfoque en el primero.


public void acceptInput  ( String input ) { if ( currentPrompt != null ) { if ( localEchoEnabled ) { context . getForWhom ( ) . sendRawMessage ( prefix . getPrefix ( context ) + input ) ; } for ( ConversationCanceller canceller : cancellers ) { if ( canceller . cancelBasedOnInput ( context , input ) ) { abandon ( new ConversationAbandonedEvent ( this , canceller ) ) ; return ; } } currentPrompt = currentPrompt . acceptInput ( context , input ) ; outputNextPrompt ( ) ; } }

Pasa la entrada del jugador en el indicador actual.El siguiente solicitud (según lo determinado por el indicador actual) se muestra al usuario.


public StringRequest ( String url , Listener < String > listener , ErrorListener errorListener ) { this ( Method . GET , url , listener , errorListener ) ; }


@ Deployment ( resources = { "org/activiti/engine/test/bpmn/event/timer/StartTimerEventTest.testDurationStartTimerEvent.bpmn20.xml" } ) public void testTimerStartEventDeployment  ( ) { ProcessDefinitionEntity processDefinition = ( ProcessDefinitionEntity ) repositoryService . createProcessDefinitionQuery ( ) . processDefinitionKey ( "startTimerEventExample" ) . singleResult ( ) ; ActivitiEntityEvent processDefinitionCreated = ActivitiEventBuilder . createEntityEvent ( ActivitiEventType . ENTITY_CREATED , processDefinition ) ; TimerJobEntity timer = ( TimerJobEntity ) managementService . createTimerJobQuery ( ) . singleResult ( ) ; ActivitiEntityEvent timerCreated = ActivitiEventBuilder . createEntityEvent ( ActivitiEventType . ENTITY_CREATED , timer ) ; assertSequence ( processDefinitionCreated , timerCreated ) ; listener . clearEventsReceived ( ) ; }

Secuencia de prueba de eventos para la definición de proceso con evento de inicio del temporizador


private void rotateRight  ( Node < K , V > root ) { Node < K , V > pivot = root . left ; Node < K , V > right = root . right ; Node < K , V > pivotLeft = pivot . left ; Node < K , V > pivotRight = pivot . right ; root . left = pivotRight ; if ( pivotRight != null ) { pivotRight . parent = root ; } replaceInParent ( root , pivot ) ; pivot . right = root ; root . parent = pivot ; root . height = Math . max ( right != null ? right . height : 0 , pivotRight != null ? pivotRight . height : 0 ) + 1 ; pivot . height = Math . max ( root . height , pivotLeft != null ? pivotLeft . height : 0 ) + 1 ; }

Gira el subárbol para que el niño izquierdo de su raíz sea la nueva raíz.


public void moveRelativeTo  ( float dx , float dy ) { moveTo ( currentXOffset + dx , currentYOffset + dy ) ; }

Mueva relativamente a la posición actual.


public static String generateRandomHexString  ( int numChars ) { StringBuilder sb = new StringBuilder ( ) ; while ( sb . length ( ) < numChars ) { sb . append ( Integer . toHexString ( RANDOM . nextInt ( ) ) ) ; } return sb . toString ( ) . substring ( 0 , numChars ) ; }

Genera una cadena hexagonal aleatoria con la longitud dada.


@ SuppressWarnings ( "unchecked" ) public static < T > T  convert ( Object from , Class < T > to )  { checkNotNull ( to ) ; if ( from == null ) { return null ; } to = ( Class < T > ) wrap ( to ) ; if ( to . isAssignableFrom ( from . getClass ( ) ) ) { return to . cast ( from ) ; } String converterId = from . getClass ( ) . getName ( ) + "_" + to . getName ( ) ; Method converter = CONVERTERS . get ( converterId ) ; if ( converter == null ) { throw new UnsupportedOperationException ( "Cannot convert from " + from . getClass ( ) . getName ( ) + " to " + to . getName ( ) + ". Requested converter does not exist." ) ; } try { Object val = converter . invoke ( to , from ) ; return to . cast ( val ) ; } catch ( Exception e ) { throw new RuntimeException ( "Cannot convert from " + from . getClass ( ) . getName ( ) + " to " + to . getName ( ) + ". Conversion failed with " + e . getMessage ( ) , e ) ; } }

Convertir el valor de objeto dado a la clase dada.


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

Compensación necesaria para devolver un subconjunto específico de amigos.