private void openSimulationAction  ( ) throws ParserConfigurationException , SAXException , IOException  { JFileChooser fileBrowser = new JFileChooser ( ) ; fileBrowser . setDialogTitle ( Messages . getString ( "dialog.open.title" ) ) ; fileBrowser . setMultiSelectionEnabled ( false ) ; if ( this . directory != null ) { fileBrowser . setCurrentDirectory ( this . directory ) ; } int option = fileBrowser . showOpenDialog ( this ) ; if ( option == JFileChooser . APPROVE_OPTION ) { File file = fileBrowser . getSelectedFile ( ) ; if ( file . exists ( ) && file . isFile ( ) ) { this . directory = file . getParentFile ( ) ; this . currentFileName = file . getName ( ) ; option = JOptionPane . showConfirmDialog ( this , Messages . getString ( "dialog.open.warning.text" ) , MessageFormat . format ( Messages . getString ( "dialog.open.warning.title" ) , file . getName ( ) ) , JOptionPane . YES_NO_CANCEL_OPTION ) ; if ( option == JOptionPane . YES_OPTION ) { String name = Simulation . DEFAULT_SIMULATION_NAME ; Simulation simulation = XmlReader . fromXml ( file ) ; synchronized ( Simulation . LOCK ) { this . simulation = simulation ; name = this . simulation . getWorld ( ) . getUserData ( ) . toString ( ) ; this . pnlSimulation . setSimulation ( this . simulation ) ; this . pnlContacts . setContactCounter ( this . simulation . getContactCounter ( ) ) ; } this . clearAllSnapshots ( ) ; this . setTitle ( this . getWindowTitle ( ) + " - " + name ) ; this . setCompiledSimulation ( false ) ; } } else { JOptionPane . showMessageDialog ( this , Messages . getString ( "dialog.open.selection.error.text" ) , Messages . getString ( "dialog.open.selection.error.title" ) , JOptionPane . ERROR_MESSAGE ) ; } } }

Intenta abrir y cargar el estado de simulación desde el archivo seleccionado del usuario.


public void createFile  ( String fileName ) { System . out . println ( "Creating file " + fileName + "..." ) ; try { BufferedWriter out = new BufferedWriter ( new FileWriter ( fileName ) ) ; LinkedList currentList ; TreeSet currentSet ; Iterator iter = this . clusters . entrySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Entry entry = ( Entry ) iter . next ( ) ; String name = ( String ) entry . getKey ( ) ; currentList = ( LinkedList ) entry . getValue ( ) ; Iterator iList = currentList . iterator ( ) ; while ( iList . hasNext ( ) ) { currentSet = ( TreeSet ) iList . next ( ) ; Iterator iSet = currentSet . iterator ( ) ; String docCluster = "" ; while ( iSet . hasNext ( ) ) { docCluster = docCluster + ( String ) iSet . next ( ) + " " ; } docCluster = docCluster + "# " + name ; out . write ( docCluster + "\n" ) ; } } out . close ( ) ; System . out . println ( "File created." ) ; } catch ( IOException ex ) { ex . printStackTrace ( ) ; } }

Cree un archivo de acuerdo con el formato de Spock-Challenge utilizando la estructura de datos que contiene los clústeres.


public AppsGetLeaderboardQuery global  ( Boolean value ) { return unsafeParam ( "global" , value ) ; }

Tipo de calificación.Valores posibles: cierto - calificación global entre todos los jugadores;Falso - calificación entre los usuarios de los usuarios.


private void addCasting  ( InsertQueryExecutor insertQueryExecutor , Relation relation , VarAdmin . Casting casting ) { VarAdmin roleVar = casting . getRoleType ( ) . orElseThrow ( null ) ; RoleType roleType = insertQueryExecutor . getConcept ( roleVar ) . asRoleType ( ) ; Instance roleplayer = insertQueryExecutor . getConcept ( casting . getRolePlayer ( ) ) . asInstance ( ) ; relation . putRolePlayer ( roleType , roleplayer ) ; }

Añadir un juego de rol a la relación dada


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_OneTimeBoostSkillAttack_A_TO_ME  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200691 , skillcaster , skillname ) ; }

Recibió el efecto de la habilidad de impulso porque [% Skillcaster] usó [% de nombre de habilidad] en usted.


protected void reconcileDefaultAttributes  ( ) { if ( attributes != null ) { NamedNodeMapImpl defaults = getDefaultAttributes ( ) ; attributes . reconcileDefaults ( defaults ) ; } }

Conciliar los atributos predeterminados.


private static Map < String , Object > storePaymentApplication  ( Delegator delegator , GenericValue paymentApplication , Locale locale ) { Map < String , Object > results = ServiceUtil . returnSuccess ( UtilProperties . getMessage ( resource , "AccountingSuccessful" , locale ) ) ; boolean debug = true ; if ( debug ) Debug . logInfo ( "Start updating the paymentApplication table " , module ) ; if ( DECIMALS == - 1 || ROUNDING == - 1 ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "AccountingAritmeticPropertiesNotConfigured" , locale ) ) ; } List < GenericValue > checkAppls = null ; try { checkAppls = EntityQuery . use ( delegator ) . from ( "PaymentApplication" ) . where ( "invoiceId" , paymentApplication . get ( "invoiceId" ) , "invoiceItemSeqId" , paymentApplication . get ( "invoiceItemSeqId" ) , "billingAccountId" , paymentApplication . get ( "billingAccountId" ) , "paymentId" , paymentApplication . get ( "paymentId" ) , "toPaymentId" , paymentApplication . get ( "toPaymentId" ) , "taxAuthGeoId" , paymentApplication . get ( "taxAuthGeoId" ) ) . queryList ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } if ( checkAppls . size ( ) > 0 ) { if ( debug ) Debug . logInfo ( checkAppls . size ( ) + " records already exist" , module ) ; GenericValue checkAppl = checkAppls . get ( 0 ) ; if ( paymentApplication . get ( "paymentApplicationId" ) == null ) { checkAppl . set ( "amountApplied" , paymentApplication . getBigDecimal ( "amountApplied" ) . add ( checkAppl . getBigDecimal ( "amountApplied" ) ) . setScale ( DECIMALS , ROUNDING ) ) ; if ( debug ) Debug . logInfo ( "Update paymentApplication record: " + checkAppl . getString ( "paymentApplicationId" ) + " with appliedAmount:" + checkAppl . getBigDecimal ( "amountApplied" ) , module ) ; try { checkAppl . store ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } } else if ( paymentApplication . getString ( "paymentApplicationId" ) . equals ( checkAppl . getString ( "paymentApplicationId" ) ) ) { checkAppl . set ( "amountApplied" , paymentApplication . getBigDecimal ( "amountApplied" ) ) ; if ( debug ) Debug . logInfo ( "Update paymentApplication record: " + checkAppl . getString ( "paymentApplicationId" ) + " with appliedAmount:" + checkAppl . getBigDecimal ( "amountApplied" ) , module ) ; try { checkAppl . store ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } } else { checkAppl . set ( "amountApplied" , paymentApplication . getBigDecimal ( "amountApplied" ) . add ( checkAppl . getBigDecimal ( "amountApplied" ) ) . setScale ( DECIMALS , ROUNDING ) ) ; if ( debug ) Debug . logInfo ( "Delete paymentApplication record: " + paymentApplication . getString ( "paymentApplicationId" ) + " with appliedAmount:" + paymentApplication . getBigDecimal ( "amountApplied" ) , module ) ; try { paymentApplication . remove ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } if ( debug ) Debug . logInfo ( "Update paymentApplication record: " + checkAppl . getString ( "paymentApplicationId" ) + " with appliedAmount:" + checkAppl . getBigDecimal ( "amountApplied" ) , module ) ; try { checkAppl . store ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } } } else { if ( debug ) Debug . logInfo ( "No records found with paymentId,invoiceid..etc probaly changed one of them..." , module ) ; if ( paymentApplication . get ( "paymentApplicationId" ) == null ) { paymentApplication . set ( "paymentApplicationId" , delegator . getNextSeqId ( "PaymentApplication" ) ) ; if ( debug ) Debug . logInfo ( "Create new paymentAppication record: " + paymentApplication . getString ( "paymentApplicationId" ) + " with appliedAmount:" + paymentApplication . getBigDecimal ( "amountApplied" ) , module ) ; try { paymentApplication . create ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } } else { if ( debug ) Debug . logInfo ( "Update existing paymentApplication record: " + paymentApplication . getString ( "paymentApplicationId" ) + " with appliedAmount:" + paymentApplication . getBigDecimal ( "amountApplied" ) , module ) ; try { paymentApplication . store ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } } } return results ; }

Actualizar / Agregar a la tabla de solicitud de pago y asegurarse de que no exista un registro duplicado


public String lastError  ( ) { try { return response . jsonPath ( ) . get ( "error.message" ) ; } catch ( IllegalArgumentException | JsonPathException e ) { return "" ; } }

Si la última respuesta fue un mensaje de error, esto devuelve el mensaje.De lo contrario, esto devuelve la cadena vacía ..


private static String preencode  ( String contents ) { int length = contents . length ( ) ; if ( length == 11 ) { int sum = 0 ; for ( int i = 0 ; i < 11 ; ++ i ) { sum += ( contents . charAt ( i ) - '0' ) * ( i % 2 == 0 ? 3 : 1 ) ; } contents += ( 1000 - sum ) % 10 ; } else if ( length != 12 ) { throw new IllegalArgumentException ( "Requested contents should be 11 or 12 digits long, but got " + contents . length ( ) ) ; } return '0' + contents ; }

Transforme un código UPC: un código equivalente a EAN-13, y agregue un dígito de verificación si aún no está presente.


public boolean nextBoolean  ( float probability ) { int y ; if ( probability < 0.0f || probability > 1.0f ) throw new IllegalArgumentException ( "probability must be between 0.0 and 1.0 inclusive." ) ; if ( probability == 0.0f ) return false ; else if ( probability == 1.0f ) return true ; if ( mti >= N ) { int kk ; final int [ ] mt = this . mt ; final int [ ] mag01 = this . mag01 ; for ( kk = 0 ; kk < N - M ; kk ++ ) { y = ( mt [ kk ] & UPPER_MASK ) | ( mt [ kk + 1 ] & LOWER_MASK ) ; mt [ kk ] = mt [ kk + M ] ^ ( y >>> 1 ) ^ mag01 [ y & 0x1 ] ; } for ( ; kk < N - 1 ; kk ++ ) { y = ( mt [ kk ] & UPPER_MASK ) | ( mt [ kk + 1 ] & LOWER_MASK ) ; mt [ kk ] = mt [ kk + ( M - N ) ] ^ ( y >>> 1 ) ^ mag01 [ y & 0x1 ] ; } y = ( mt [ N - 1 ] & UPPER_MASK ) | ( mt [ 0 ] & LOWER_MASK ) ; mt [ N - 1 ] = mt [ M - 1 ] ^ ( y >>> 1 ) ^ mag01 [ y & 0x1 ] ; mti = 0 ; } y = mt [ mti ++ ] ; y ^= y >>> 11 ; y ^= ( y << 7 ) & TEMPERING_MASK_B ; y ^= ( y << 15 ) & TEMPERING_MASK_C ; y ^= ( y >>> 18 ) ; return ( y >>> 8 ) / ( ( float ) ( 1 << 24 ) ) < probability ; }

Esto genera un flip de moneda con una probabilidad de probabilidad </ tt> de devolver verdadero, de lo contrario, devolviendo falso.La probabilidad de </ tt> debe estar entre 0.0 y 1.0, inclusive.No es tan preciso un evento real aleatorio como NextBoolean (Doble), pero dos veces más rápido.Para usar esto explícitamente, recuerde que es posible que deba lanzar para flotar primero.


public boolean filterOut  ( final SAMRecord record ) { if ( include ) { if ( record . getReadPairedFlag ( ) ) { return false ; } } else { if ( ! record . getReadPairedFlag ( ) ) { return false ; } } return true ; }

Determina si un SamRecord coincide con este filtro


private double brent  ( double lo , double hi , double fLo , double fHi ) { double a = lo ; double fa = fLo ; double b = hi ; double fb = fHi ; double c = a ; double fc = fa ; double d = b - a ; double e = d ; final double t = getAbsoluteAccuracy ( ) ; final double eps = getRelativeAccuracy ( ) ; while ( true ) { if ( FastMath . abs ( fc ) < FastMath . abs ( fb ) ) { a = b ; b = c ; c = a ; fa = fb ; fb = fc ; fc = fa ; } final double tol = 2 * eps * FastMath . abs ( b ) + t ; final double m = 0.5 * ( c - b ) ; if ( FastMath . abs ( m ) <= tol || Precision . equals ( fb , 0 ) ) { return b ; } if ( FastMath . abs ( e ) < tol || FastMath . abs ( fa ) <= FastMath . abs ( fb ) ) { d = m ; e = d ; } else { double s = fb / fa ; double p ; double q ; if ( a == c ) { p = 2 * m * s ; q = 1 - s ; } else { q = fa / fc ; final double r = fb / fc ; p = s * ( 2 * m * q * ( q - r ) - ( b - a ) * ( r - 1 ) ) ; q = ( q - 1 ) * ( r - 1 ) * ( s - 1 ) ; } if ( p > 0 ) { q = - q ; } else { p = - p ; } s = e ; e = d ; if ( p >= 1.5 * m * q - FastMath . abs ( tol * q ) || p >= FastMath . abs ( 0.5 * s * q ) ) { d = m ; e = d ; } else { d = p / q ; } } a = b ; fa = fb ; if ( FastMath . abs ( d ) > tol ) { b += d ; } else if ( m > 0 ) { b += tol ; } else { b -= tol ; } fb = computeObjectiveValue ( b ) ; if ( ( fb > 0 && fc > 0 ) || ( fb <= 0 && fc <= 0 ) ) { c = a ; fc = fa ; d = b - a ; e = d ; } } }

Busque un cero dentro del intervalo provisto.Esta implementación se basa en el algoritmo descrito en la página 58 del libro <blockquote> <b> algoritmos para la minimización sin derivados </ b>, <IT> Richard P. Brent </ it>, Dover 0-486-41998-3</ blockquote>


public void addControlListener  ( Control cl ) { m_controls . add ( cl ) ; }

Agrega un controlista para recibir todos los eventos de entrada en VisualItems.


public InactivityConversationCanceller ( Plugin plugin , int timeoutSeconds ) { this . plugin = plugin ; this . timeoutSeconds = timeoutSeconds ; }


public static Stream < LongSummaryStatistics > shiftingWindowSummarizingLong  ( LongStream longStream , int rollingFactor ) { Objects . requireNonNull ( longStream ) ; RollingOfLongSpliterator ofLongSpliterator = RollingOfLongSpliterator . of ( longStream . spliterator ( ) , rollingFactor ) ; return StreamSupport . stream ( ofLongSpliterator , longStream . isParallel ( ) ) . onClose ( null ) . map ( null ) ; }

 Genera una corriente que se calcula a partir de una corriente larga provista al rodar primero de la misma manera que el método <código> rollo () </ codigo>.Luego, se aplica una operación larga resumida en cada substream para formar la corriente de resumen final.No se realiza ningún boxeo / unboxing en el proceso.
 El flujo resultante tiene el mismo número de elementos que el flujo provisto, menos el tamaño del ancho de la ventana, para preservar la consistencia de cada colección.

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


static < T > AnyVal < Object > anyHeadAnyTail  ( AnyVal < T > head , AnyVal < ? extends List < ? extends T > > tail ) { return new AnyConsImpl ( null , head , null , tail ) ; }

Devuelva un nuevo anyval que coincida con cualquier cabezal de una lista y cualquier cola de una lista


@ deprecated public char elementAt  ( char index ) { int ix = ( this . indices [ ( index >> '\005' ) ] & 0xFFFF ) + ( index & 0x1F ) ; return ix >= this . values . length ? this . defaultValue : this . values [ ix ] ; }


public void addToClassification  ( Integer classId , int size , List < Long > positions ) throws IOException { numberOfClasses ++ ; classificationIndexTmpFileWriter . writeInt ( classId ) ; if ( size == positions . size ( ) ) classificationIndexTmpFileWriter . writeInt ( size ) ; else { classificationIndexTmpFileWriter . writeInt ( - size ) ; classificationIndexTmpFileWriter . writeInt ( positions . size ( ) ) ; } if ( positions . size ( ) > 0 ) { classificationIndexTmpFileWriter . writeLong ( io . getPosition ( ) ) ; for ( Long pos : positions ) { io . writeLong ( pos ) ; } } else { classificationIndexTmpFileWriter . writeLong ( - 1 ) ; } }


@ Override public void write  ( int idx ) { }

No hace nada: salida a <código> / dev / null </ code>.


public FloatBuffer toFloatBuffer  ( ) { FloatBuffer fb = BufferUtils . createFloatBuffer ( 9 ) ; fb . put ( m00 ) . put ( m01 ) . put ( m02 ) ; fb . put ( m10 ) . put ( m11 ) . put ( m12 ) ; fb . put ( m20 ) . put ( m21 ) . put ( m22 ) ; fb . rewind ( ) ; return fb ; }

<Código> TofLoatBuffer </ Code> devuelve un objeto Floatbuffer que contiene los datos de la matriz.


private static int calculateInSampleSizeByReqestedSize  ( int width , int height , int reqWidth , int reqHeight ) { int inSampleSize = 1 ; if ( height > reqHeight || width > reqWidth ) { while ( ( height / 2 / inSampleSize ) > reqHeight && ( width / 2 / inSampleSize ) > reqWidth ) { inSampleSize *= 2 ; } } return inSampleSize ; }

Calcule el mayor valor de insamplos que es una potencia de 2 y mantiene la altura y el ancho más grande que la altura y el ancho solicitados.


public Iterator < Record > execute  ( ) throws QueryPlanException , DatabaseException  { List < Record > newRecords = new ArrayList < Record > ( ) ; Iterator < Record > leftIterator = this . leftSource . execute ( ) ; while ( leftIterator . hasNext ( ) ) { Record leftRecord = leftIterator . next ( ) ; Iterator < Record > rightIterator = this . rightSource . execute ( ) ; while ( rightIterator . hasNext ( ) ) { Record rightRecord = rightIterator . next ( ) ; DataType leftJoinValue = leftRecord . getValues ( ) . get ( this . leftColumnIndex ) ; DataType rightJoinValue = rightRecord . getValues ( ) . get ( this . rightColumnIndex ) ; if ( leftJoinValue . equals ( rightJoinValue ) ) { List < DataType > leftValues = new ArrayList < DataType > ( leftRecord . getValues ( ) ) ; List < DataType > rightValues = new ArrayList < DataType > ( rightRecord . getValues ( ) ) ; leftValues . addAll ( rightValues ) ; newRecords . add ( new Record ( leftValues ) ) ; } } } return newRecords . iterator ( ) ; }

Se une a los tupores de LeftSource y Derecho de acuerdo y devuelve un iterador de registros.


public FreeTTS ( ) { VoiceManager voiceManager = VoiceManager . getInstance ( ) ; voiceManager . getVoice ( "kevin16" ) ; }

Construye un freetts predeterminado con la voz Kevin16.


public static Zmat nzmat  ( int m , int n ) throws JampackException  { Zmat zm = new Zmat ( m , n ) ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { zm . re [ i ] [ j ] = R . nextGaussian ( ) ; zm . im [ i ] [ j ] = R . nextGaussian ( ) ; } } return zm ; }


public IMethod findOverriddenMethodInType  ( IType overriddenType , IMethod overriding ) throws JavaModelException { int flags = overriding . getFlags ( ) ; if ( Flags . isPrivate ( flags ) || Flags . isStatic ( flags ) || overriding . isConstructor ( ) ) return null ; IMethod [ ] overriddenMethods = overriddenType . getMethods ( ) ; for ( int i = 0 ; i < overriddenMethods . length ; i ++ ) { IMethod overridden = overriddenMethods [ i ] ; flags = overridden . getFlags ( ) ; if ( Flags . isPrivate ( flags ) || Flags . isStatic ( flags ) || overridden . isConstructor ( ) ) continue ; if ( isSubsignature ( overriding , overridden ) ) { return overridden ; } } return null ; }

Encuentra un método anulado en un tipo.Con genéricos, es posible que se anulen 2 métodos en el mismo tipo al mismo tiempo.En ese caso, se devuelve el primer método anulado.


public static String readFileToString  ( File file ) throws IOException { return readFileToString ( file , Charset . defaultCharset ( ) ) ; }

Lee los contenidos de un archivo en una cadena usando la codificación predeterminada para la máquina virtual.El archivo siempre está cerrado.


@ NotNull public static List < AttributeSnapshot > createAttributesForTag  ( @ NotNull XmlTag tag ) { XmlAttribute [ ] psiAttributes = tag . getAttributes ( ) ; List < AttributeSnapshot > attributes = Lists . newArrayListWithExpectedSize ( psiAttributes . length ) ; for ( XmlAttribute psiAttribute : psiAttributes ) { AttributeSnapshot attribute = createAttributeSnapshot ( psiAttribute ) ; if ( attribute != null ) { attributes . add ( attribute ) ; } } return attributes ; }

Crea una lista de instantáneas de atributos correspondientes a los atributos de la etiqueta dada


public void processUtterance  ( Utterance utterance ) throws ProcessException { LPCResult lpcResult ; int pitchmarks = 0 ; int uttSize = 0 ; int unitEntry ; int unitStart ; int unitEnd ; SampleSet sts = ( SampleSet ) utterance . getObject ( "sts_list" ) ; lpcResult = new LPCResult ( ) ; for ( Item unit = utterance . getRelation ( Relation . UNIT ) . getHead ( ) ; unit != null ; unit = unit . getNext ( ) ) { unitEntry = unit . getFeatures ( ) . getInt ( "unit_entry" ) ; unitStart = unit . getFeatures ( ) . getInt ( "unit_start" ) ; unitEnd = unit . getFeatures ( ) . getInt ( "unit_end" ) ; uttSize += sts . getUnitSize ( unitStart , unitEnd ) ; pitchmarks += unitEnd - unitStart ; unit . getFeatures ( ) . setInt ( "target_end" , uttSize ) ; } lpcResult . resizeFrames ( pitchmarks ) ; pitchmarks = 0 ; uttSize = 0 ; int [ ] targetTimes = lpcResult . getTimes ( ) ; for ( Item unit = utterance . getRelation ( Relation . UNIT ) . getHead ( ) ; unit != null ; unit = unit . getNext ( ) ) { unitEntry = unit . getFeatures ( ) . getInt ( "unit_entry" ) ; unitStart = unit . getFeatures ( ) . getInt ( "unit_start" ) ; unitEnd = unit . getFeatures ( ) . getInt ( "unit_end" ) ; for ( int i = unitStart ; i < unitEnd ; i ++ , pitchmarks ++ ) { uttSize += sts . getSample ( i ) . getResidualSize ( ) ; targetTimes [ pitchmarks ] = uttSize ; } } utterance . setObject ( "target_lpcres" , lpcResult ) ; }

Calcula las marcas de hamillas para la expresión y las agrega como un LPCResult a la expresión en una relación llamada "Target_lpcres".


public static SLDEditor createAndShowGUI  ( String filename , List < String > extensionArgList , boolean underTest ) { underTestFlag = underTest ; frame = new JFrame ( generateApplicationTitleString ( ) ) ; Controller . getInstance ( ) . setFrame ( frame ) ; MapRender . setUnderTest ( underTest ) ; frame . setDefaultCloseOperation ( underTest ? JFrame . DISPOSE_ON_CLOSE : JFrame . EXIT_ON_CLOSE ) ; SLDEditor sldEditor = new SLDEditor ( filename , extensionArgList ) ; frame . pack ( ) ; frame . setVisible ( true ) ; return sldEditor ; }


public ChangeSet increment  ( String path , double delta ) { return add ( new IncrementSpaceEntryMutator ( path , delta ) ) ; }

Incrementa una propiedad doble con el delta dado.


@ RequestMapping ( value = "/{bookmarkId}" , method = RequestMethod . DELETE ) public ResponseEntity < Bookmark > deleteBookmark  ( @ PathVariable ( value = "username" ) String username , @ PathVariable ( value = "bookmarkId" ) int bookmarkId ) throws BookmarkNotFoundException { Optional < Bookmark > optional = bookmarksRepository . findByIdAndUserUsername ( bookmarkId , username ) ; if ( optional . isPresent ( ) ) { bookmarksRepository . delete ( optional . get ( ) ) ; return new ResponseEntity < > ( optional . get ( ) , HttpStatus . OK ) ; } else { throw new BookmarkNotFoundException ( "Bookmark not found. id = " + bookmarkId ) ; } }

Un método para eliminar un marcador identificado por ID.


public void finalize  ( ) { NDC . remove ( ) ; }


private final boolean validateClientPacket  ( ByteBuffer buf ) { return buf . getShort ( 0 ) == ~ buf . getShort ( 3 ) && buf . get ( 2 ) == staticClientPacketCode ; }

Compruebe si el paquete se decodificó correctamente, también verifique si el cliente se codificó correctamente por el cliente de Aion


public void load  ( String fileName ) throws IOException , MaryConfigurationException  { DataInputStream dis = null ; try { dis = new DataInputStream ( new BufferedInputStream ( new FileInputStream ( fileName ) ) ) ; } catch ( FileNotFoundException e ) { throw new RuntimeException ( "File [" + fileName + "] was not found." ) ; } try { hdr = new MaryHeader ( dis ) ; if ( hdr . getType ( ) != MaryHeader . LISTENERUNITS ) { throw new RuntimeException ( "File [" + fileName + "] is not a valid Mary Units file." ) ; } numberOfUnits = dis . readInt ( ) ; if ( numberOfUnits < 0 ) { throw new RuntimeException ( "File [" + fileName + "] has a negative number of units. Aborting." ) ; } sampleRate = dis . readInt ( ) ; if ( sampleRate < 0 ) { throw new RuntimeException ( "File [" + fileName + "] has a negative number sample rate. Aborting." ) ; } backchannelUnits = new VocalizationUnit [ numberOfUnits ] ; for ( int i = 0 ; i < numberOfUnits ; i ++ ) { int noOfUnits = dis . readInt ( ) ; Unit [ ] units = new Unit [ noOfUnits ] ; String [ ] unitNames = new String [ noOfUnits ] ; for ( int j = 0 ; j < noOfUnits ; j ++ ) { long startTime = dis . readLong ( ) ; int duration = dis . readInt ( ) ; units [ j ] = new Unit ( startTime , duration , j ) ; int charArraySize = dis . readInt ( ) ; char [ ] phoneChar = new char [ charArraySize ] ; for ( int k = 0 ; k < charArraySize ; k ++ ) { phoneChar [ k ] = dis . readChar ( ) ; } unitNames [ j ] = new String ( phoneChar ) ; } long startBCTime = units [ 0 ] . startTime ; int bcDuration = ( ( ( int ) units [ noOfUnits - 1 ] . startTime + units [ noOfUnits - 1 ] . duration ) - ( int ) units [ 0 ] . startTime ) ; backchannelUnits [ i ] = new VocalizationUnit ( startBCTime , bcDuration , i ) ; backchannelUnits [ i ] . setUnits ( units ) ; backchannelUnits [ i ] . setUnitNames ( unitNames ) ; } } catch ( IOException e ) { throw new RuntimeException ( "Reading the Mary header from file [" + fileName + "] failed." , e ) ; } }


private void archiveReport  ( String configId , String xmlReport ) { new File ( reportDirectory ) . mkdirs ( ) ; try { File outFile = new File ( reportDirectory , "report_" + configId + "_" + System . currentTimeMillis ( ) + ".xml" ) ; FileWriter fileWriter ; fileWriter = new FileWriter ( outFile ) ; BufferedWriter bufferedWriter = new BufferedWriter ( fileWriter ) ; bufferedWriter . write ( xmlReport ) ; bufferedWriter . close ( ) ; } catch ( Exception e ) { log . error ( "Exception caught while writing configuration report to directory: {}" , reportDirectory , e ) ; } }


protected void prepareRollUpTable  ( ) throws SQLException  { String experimentId = experiment . id . replace ( "-" , "" ) . toUpperCase ( ) ; String queryImpressionGroupByRedAndQAForTomorrow = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_impression where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' and bucket_label = '" + RED + "' and context = '" + QA + "'" ; int [ ] countImpressionRedQATomorrow = getUserAndDistinctUserCount ( connection , queryImpressionGroupByRedAndQAForTomorrow ) ; String queryActionGroupByRedAndQAForTomorrow = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_action where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' and bucket_label = '" + RED + "' and context = '" + QA + "'" ; int [ ] countActionRedQATomorrow = getUserAndDistinctUserCount ( connection , queryActionGroupByRedAndQAForTomorrow ) ; String queryImpressionGroupByBlueAndQAForTomorrow = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_impression where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' and bucket_label = '" + BLUE + "' and context = '" + QA + "'" ; int [ ] countImpressionBlueQATomorrow = getUserAndDistinctUserCount ( connection , queryImpressionGroupByBlueAndQAForTomorrow ) ; String queryActionGroupByBlueAndQAForTomorrow = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_action where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' and bucket_label = '" + BLUE + "' and context = '" + QA + "'" ; int [ ] countActionBlueQATomorrow = getUserAndDistinctUserCount ( connection , queryActionGroupByBlueAndQAForTomorrow ) ; String queryImpressionGroupByRedAndProdForTomorrow = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_impression where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' and bucket_label = '" + RED + "' and context = '" + PROD + "'" ; int [ ] countImpressionRedProdTomorrow = getUserAndDistinctUserCount ( connection , queryImpressionGroupByRedAndProdForTomorrow ) ; String queryActionGroupByRedAndProdForTomorrow = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_action where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' and bucket_label = '" + RED + "' and context = '" + PROD + "'" ; int [ ] countActionRedProdTomorrow = getUserAndDistinctUserCount ( connection , queryActionGroupByRedAndProdForTomorrow ) ; String queryImpressionGroupByBlueAndProdForTomorrow = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_impression where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' and bucket_label = '" + BLUE + "' and context = '" + PROD + "'" ; int [ ] countImpressionBlueProdTomorrow = getUserAndDistinctUserCount ( connection , queryImpressionGroupByBlueAndProdForTomorrow ) ; String queryActionGroupByBlueAndProdForTomorrow = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_action where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' and bucket_label = '" + BLUE + "' and context = '" + PROD + "'" ; int [ ] countActionBlueProdTomorrow = getUserAndDistinctUserCount ( connection , queryActionGroupByBlueAndProdForTomorrow ) ; String day = tomorrow . substring ( 0 , 10 ) ; String rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "impression_count, impression_user_count, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',0,'" + RED + "',''," + ( countImpressionRedQATomorrow [ 0 ] ) + "," + ( countImpressionRedQATomorrow [ 1 ] ) + "," + ( countActionRedQATomorrow [ 0 ] ) + "," + ( countActionRedQATomorrow [ 1 ] ) + ",'" + QA + "')" ; insertIntoRollUp ( rollUpQuery ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "impression_count, impression_user_count, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',0,'" + BLUE + "',''," + ( countImpressionBlueQATomorrow [ 0 ] ) + "," + ( countImpressionBlueQATomorrow [ 1 ] ) + "," + ( countActionBlueQATomorrow [ 0 ] ) + "," + ( countActionBlueQATomorrow [ 1 ] ) + ",'" + QA + "')" ; insertIntoRollUp ( rollUpQuery ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "impression_count, impression_user_count, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',0,'" + BLUE + "',''," + ( countImpressionBlueProdTomorrow [ 0 ] ) + "," + ( countImpressionBlueProdTomorrow [ 1 ] ) + "," + ( countActionBlueProdTomorrow [ 0 ] ) + "," + ( countActionBlueProdTomorrow [ 1 ] ) + ",'" + PROD + "')" ; insertIntoRollUp ( rollUpQuery ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "impression_count, impression_user_count, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',0,'" + RED + "',''," + ( countImpressionRedProdTomorrow [ 0 ] ) + "," + ( countImpressionRedProdTomorrow [ 1 ] ) + "," + ( countActionRedProdTomorrow [ 0 ] ) + "," + ( countActionRedProdTomorrow [ 1 ] ) + ",'" + PROD + "')" ; insertIntoRollUp ( rollUpQuery ) ; String queryActionByBucketActionContext = "SELECT bucket_label, action, context, COUNT(user_id) as user_count, " + " COUNT(DISTINCT user_id) as distinct_user_count " + " FROM event_action where hex(experiment_id) = '" + experimentId + "' and timestamp = '" + this . tomorrow + "' GROUP BY bucket_label, action " ; try ( Statement statementActionByBucketActionContext = connection . createStatement ( ) ; ResultSet resultActionByBucketActionContext = statementActionByBucketActionContext . executeQuery ( queryActionByBucketActionContext ) ) { while ( resultActionByBucketActionContext . next ( ) ) { String bucket = resultActionByBucketActionContext . getString ( BUCKET_LABEL ) ; String action = resultActionByBucketActionContext . getString ( ACTION ) ; String context = resultActionByBucketActionContext . getString ( CONTEXT ) ; int userCount = resultActionByBucketActionContext . getInt ( USER_COUNT ) ; int distinctUserCount = resultActionByBucketActionContext . getInt ( DISTINCT_USER_COUNT ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',0,'" + bucket + "','" + action + "'," + userCount + "," + distinctUserCount + ",'" + context + "')" ; insertIntoRollUp ( rollUpQuery ) ; } } String queryImpressionGroupByRedAndQAForTomorrowCumulative = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_impression where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' and bucket_label = '" + RED + "' and context = '" + QA + "'" ; int [ ] countImpressionRedQATomorrowCumulative = getUserAndDistinctUserCount ( connection , queryImpressionGroupByRedAndQAForTomorrowCumulative ) ; String queryActionGroupByRedAndQAForTomorrowCumulative = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_action where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' and bucket_label = '" + RED + "' and context = '" + QA + "'" ; int [ ] countActionRedQATomorrowCumulative = getUserAndDistinctUserCount ( connection , queryActionGroupByRedAndQAForTomorrowCumulative ) ; String queryImpressionGroupByBlueAndQAForTomorrowCumulative = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_impression where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' and bucket_label = '" + BLUE + "' and context = '" + QA + "'" ; int [ ] countImpressionBlueQATomorrowCumulative = getUserAndDistinctUserCount ( connection , queryImpressionGroupByBlueAndQAForTomorrowCumulative ) ; String queryActionGroupByBlueAndQAForTomorrowCumulative = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_action where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' and bucket_label = '" + BLUE + "' and context = '" + QA + "'" ; int [ ] countActionBlueQATomorrowCumulative = getUserAndDistinctUserCount ( connection , queryActionGroupByBlueAndQAForTomorrowCumulative ) ; String queryImpressionGroupByRedAndProdForTomorrowCumulative = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_impression where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' and bucket_label = '" + RED + "' and context = '" + PROD + "'" ; int [ ] countImpressionRedProdTomorrowCumulative = getUserAndDistinctUserCount ( connection , queryImpressionGroupByRedAndProdForTomorrowCumulative ) ; String queryActionGroupByRedAndProdForTomorrowCumulative = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_action where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' and bucket_label = '" + RED + "' and context = '" + PROD + "'" ; int [ ] countActionRedProdTomorrowCumulative = getUserAndDistinctUserCount ( connection , queryActionGroupByRedAndProdForTomorrowCumulative ) ; String queryImpressionGroupByBlueAndProdForTomorrowCumulative = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_impression where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' and bucket_label = '" + BLUE + "' and context = '" + PROD + "'" ; int [ ] countImpressionBlueProdTomorrowCumulative = getUserAndDistinctUserCount ( connection , queryImpressionGroupByBlueAndProdForTomorrowCumulative ) ; String queryActionGroupByBlueAndProdForTomorrowCumulative = "Select " + "count(user_id) as user_count, count(distinct user_id) as distinct_user_count  " + "from event_action where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' and bucket_label = '" + BLUE + "' and context = '" + PROD + "'" ; int [ ] countActionBlueProdTomorrowCumulative = getUserAndDistinctUserCount ( connection , queryActionGroupByBlueAndProdForTomorrowCumulative ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "impression_count, impression_user_count, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',1,'" + RED + "',''," + ( countImpressionRedQATomorrowCumulative [ 0 ] ) + "," + ( countImpressionRedQATomorrowCumulative [ 1 ] ) + "," + ( countActionRedQATomorrowCumulative [ 0 ] ) + "," + ( countActionRedQATomorrowCumulative [ 1 ] ) + ",'" + QA + "')" ; insertIntoRollUp ( rollUpQuery ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "impression_count, impression_user_count, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',1,'" + BLUE + "',''," + ( countImpressionBlueQATomorrowCumulative [ 0 ] ) + "," + ( countImpressionBlueQATomorrowCumulative [ 1 ] ) + "," + ( countActionBlueQATomorrowCumulative [ 0 ] ) + "," + ( countActionBlueQATomorrowCumulative [ 1 ] ) + ",'" + QA + "')" ; insertIntoRollUp ( rollUpQuery ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "impression_count, impression_user_count, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',1,'" + BLUE + "',''," + ( countImpressionBlueProdTomorrowCumulative [ 0 ] ) + "," + ( countImpressionBlueProdTomorrowCumulative [ 1 ] ) + "," + ( countActionBlueProdTomorrowCumulative [ 0 ] ) + "," + ( countActionBlueProdTomorrowCumulative [ 1 ] ) + ",'" + PROD + "')" ; insertIntoRollUp ( rollUpQuery ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "impression_count, impression_user_count, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',1,'" + RED + "',''," + ( countImpressionRedProdTomorrowCumulative [ 0 ] ) + "," + ( countImpressionRedProdTomorrowCumulative [ 1 ] ) + "," + ( countActionRedProdTomorrowCumulative [ 0 ] ) + "," + ( countActionRedProdTomorrowCumulative [ 1 ] ) + ",'" + PROD + "')" ; insertIntoRollUp ( rollUpQuery ) ; String queryActionByBucketActionContextCumulative = "SELECT bucket_label, action, context, COUNT(user_id) as user_count, " + " COUNT(DISTINCT user_id) as distinct_user_count " + " FROM event_action where hex(experiment_id) = '" + experimentId + "' and timestamp <= '" + this . tomorrow + "' GROUP BY bucket_label, action " ; try ( Statement statementActionByBucketActionContextCumulative = connection . createStatement ( ) ; ResultSet resultActionByBucketActionContextCumulative = statementActionByBucketActionContextCumulative . executeQuery ( queryActionByBucketActionContextCumulative ) ) { while ( resultActionByBucketActionContextCumulative . next ( ) ) { String bucket = resultActionByBucketActionContextCumulative . getString ( BUCKET_LABEL ) ; String action = resultActionByBucketActionContextCumulative . getString ( ACTION ) ; String context = resultActionByBucketActionContextCumulative . getString ( CONTEXT ) ; int userCount = resultActionByBucketActionContextCumulative . getInt ( USER_COUNT ) ; int distinctUserCount = resultActionByBucketActionContextCumulative . getInt ( DISTINCT_USER_COUNT ) ; rollUpQuery = "REPLACE INTO experiment_rollup " + "(experiment_id, day, cumulative, bucket_label, action, " + "action_count, action_user_count,context) " + "values(unhex('" + experimentId + "'),'" + day + "',1,'" + bucket + "','" + action + "'," + userCount + "," + distinctUserCount + ",'" + context + "')" ; insertIntoRollUp ( rollUpQuery ) ; } } }

Nota: este método prepara la tabla Rollup MySQL para la acción y los eventos.Los pasos involucrados en la preparación de la tabla enrollable son: <ol> <li> insertar recuentos no acumulativos para eventos e impresión en la tabla enrollable <li> Insertar recuentos acumulativos para eventos e impresiones en la tabla enrollable <li> inserte no acumulativoCuenta para eventos por acción en la tabla de Rollup <Li> Insertar recuentos acumulativos para eventos por acción en la tabla RAMPUT </ OL>


private static void readReceiverNodeId  ( IonReader reader , IapMessageFields iapMessageFields ) { if ( reader . fieldType == IonFieldTypes . KEY_SHORT ) { if ( isReceiverNodeIdKey ( reader ) ) { reader . nextParse ( ) ; if ( reader . fieldType == IonFieldTypes . BYTES ) { iapMessageFields . receiverNodeIdOffset = reader . index ; iapMessageFields . receiverNodeIdLength = reader . fieldLength ; } reader . nextParse ( ) ; } } }

Lee el ID del sistema del receptor del IonReader, si está presente (es opcional).


@ Override public void onValueSelected  ( int pickerIndex , int newValue , boolean autoAdvance ) { if ( pickerIndex == HOUR_INDEX ) { setHour ( newValue , false ) ; String announcement = String . format ( "%d" , newValue ) ; if ( mAllowAutoAdvance && autoAdvance ) { setCurrentItemShowing ( MINUTE_INDEX , true , true , false ) ; announcement += ". " + mSelectMinutes ; } else { mTimePicker . setContentDescription ( mHourPickerDescription + ": " + newValue ) ; } Utils . tryAccessibilityAnnounce ( mTimePicker , announcement ) ; } else if ( pickerIndex == MINUTE_INDEX ) { setMinute ( newValue ) ; mTimePicker . setContentDescription ( mMinutePickerDescription + ": " + newValue ) ; } else if ( pickerIndex == HALF_DAY_INDEX ) { updateHalfDay ( newValue ) ; } else if ( pickerIndex == ENABLE_PICKER_INDEX ) { if ( ! isTypedTimeFullyLegal ( ) ) { mTypedTimes . clear ( ) ; } finishKbMode ( true ) ; } }

Llamado por el selector para actualizar la pantalla del encabezado.


public static void writeLines  ( File file , String encoding , Collection < ? > lines , String lineEnding ) throws IOException { writeLines ( file , encoding , lines , lineEnding , false ) ; }

Escribe el valor <código> TOSTRING () </ CODE> de cada elemento en una colección en el archivo <código> especificado </ código> línea por línea.Se utilizará la codificación de carácter especificada y se utilizará la finalización de la línea.<P /> Nota: A partir de V1.3, los directorios de los padres del archivo se crearán si no existen.


public void init$Children  ( ) { children = new ASTNode [ 2 ] ; }

Inicializa la matriz de niños al tamaño correcto.Inicializa la lista y opta a los niños NTA.


public static ExpectedCondition < Boolean > expandSection  ( final WebElement section ) { return null ; }

Expande la sección de Sidekick y cheques si se expande ahora.


private void internal_readConfigFile  ( VendorOptionFactoryInterface vendorOptionFactory , Class < ? > panelId , UpdateSymbolInterface parent , String filename , boolean useScrollFrame , boolean isRasterSymbol ) { ReadPanelConfig readConfig = new ReadPanelConfig ( vendorOptionFactory , isRasterSymbol ) ; readConfig . read ( panelId , filename ) ; configureUI ( parent , useScrollFrame , readConfig ) ; }

Lea el archivo de configuración del panel y cree la interfaz de usuario, incluido el panel de desplazamiento.


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

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


public static java . util . Date toDate  ( String dateTime ) { if ( dateTime == null ) { return null ; } String date = dateTime . substring ( 0 , dateTime . indexOf ( " " ) ) ; String time = dateTime . substring ( dateTime . indexOf ( " " ) + 1 ) ; return toDate ( date , time ) ; }

Convierte una cadena de fecha y hora en una fecha


public boolean isEdgeUnit  ( ) { return duration == - 1 ; }

Determine si la unidad es una unidad de "borde", es decir, una unidad que marca el inicio o el final de una expresión.


private void blockCompressAndIndex  ( String in , String bgzfOut , boolean deleteOnExit ) throws IOException { File inFile = new File ( in ) ; File outFile = new File ( bgzfOut ) ; LineIterator lin = IOUtils . openURIForLineIterator ( inFile . getAbsolutePath ( ) ) ; BlockCompressedOutputStream writer = new BlockCompressedOutputStream ( outFile ) ; long filePosition = writer . getFilePointer ( ) ; TabixIndexCreator indexCreator = new TabixIndexCreator ( TabixFormat . BED ) ; BedLineCodec bedCodec = new BedLineCodec ( ) ; while ( lin . hasNext ( ) ) { String line = lin . next ( ) ; BedLine bed = bedCodec . decode ( line ) ; if ( bed == null ) continue ; writer . write ( line . getBytes ( ) ) ; writer . write ( '\n' ) ; indexCreator . addFeature ( bed , filePosition ) ; filePosition = writer . getFilePointer ( ) ; } writer . flush ( ) ; File tbi = new File ( bgzfOut + TabixUtils . STANDARD_INDEX_EXTENSION ) ; if ( tbi . exists ( ) && tbi . isFile ( ) ) { writer . close ( ) ; throw new RuntimeException ( "Index file exists: " + tbi ) ; } Index index = indexCreator . finalizeIndex ( writer . getFilePointer ( ) ) ; index . writeBasedOnFeatureFile ( outFile ) ; writer . close ( ) ; if ( deleteOnExit ) { outFile . deleteOnExit ( ) ; File idx = new File ( outFile . getAbsolutePath ( ) + TabixUtils . STANDARD_INDEX_EXTENSION ) ; idx . deleteOnExit ( ) ; } }

Bloquee el archivo de entrada de compresión y cree índice de Tabix asociado.El archivo y el índice recién creados se eliminan en la salida si se elimina de BREARONONEXIT.


public VideoCreateCommentQuery createComment  ( UserActor actor , int videoId ) { return new VideoCreateCommentQuery ( getClient ( ) , actor , videoId ) ; }


@ Override public void startElement  ( QName element , XMLAttributes attributes , Augmentations augs ) throws XNIException { }

El inicio de un elemento.Si el documento especifica el elemento de inicio utilizando una etiqueta vacía, entonces el método de inicio inmediatamente será seguido por el método de endelación, sin métodos de intervención.


public static Document parseDocument  ( InputStream is , boolean validating ) throws ParserConfigurationException , SAXException , IOException { DocumentBuilder builder = createDocumentBuilder ( validating ) ; return builder . parse ( is ) ; }

Analice los datos XML en una representación de DOM, teniendo en cuenta los recursos locales y los esquemas.


private static void extractPolyItem  ( SvgTree avg , SvgLeafNode child , Node currentGroupNode ) { logger . log ( Level . FINE , "Rect found" + currentGroupNode . getTextContent ( ) ) ; if ( currentGroupNode . getNodeType ( ) == Node . ELEMENT_NODE ) { NamedNodeMap a = currentGroupNode . getAttributes ( ) ; int len = a . getLength ( ) ; for ( int itemIndex = 0 ; itemIndex < len ; itemIndex ++ ) { Node n = a . item ( itemIndex ) ; String name = n . getNodeName ( ) ; String value = n . getNodeValue ( ) ; if ( name . equals ( SVG_STYLE ) ) { addStyleToPath ( child , value ) ; } else if ( presentationMap . containsKey ( name ) ) { child . fillPresentationAttributes ( name , value ) ; } else if ( name . equals ( SVG_POINTS ) ) { PathBuilder builder = new PathBuilder ( ) ; String [ ] split = value . split ( "[\\s,]+" ) ; float baseX = Float . parseFloat ( split [ 0 ] ) ; float baseY = Float . parseFloat ( split [ 1 ] ) ; builder . absoluteMoveTo ( baseX , baseY ) ; for ( int j = 2 ; j < split . length ; j += 2 ) { float x = Float . parseFloat ( split [ j ] ) ; float y = Float . parseFloat ( split [ j + 1 ] ) ; builder . relativeLineTo ( x - baseX , y - baseY ) ; baseX = x ; baseY = y ; } builder . relativeClose ( ) ; child . setPathData ( builder . toString ( ) ) ; } } } }

Convertir el elemento de polígono en un camino.


public static boolean isZipFile  ( String file ) { return "zip" . equals ( getExtension ( file ) ) ; }

Indica si el archivo dado finaliza con una extensión de archivo de ".zip", lo que indica un archivo zip.


public void startup  ( ) { voice . allocate ( ) ; if ( ! getSilentMode ( ) ) { if ( audioFile != null ) { AudioFileFormat . Type type = getAudioType ( audioFile ) ; if ( type != null ) { if ( multiAudio ) { audioPlayer = new MultiFileAudioPlayer ( getBasename ( audioFile ) , type ) ; } else audioPlayer = new SingleFileAudioPlayer ( getBasename ( audioFile ) , type ) ; } else { try { audioPlayer = new RawFileAudioPlayer ( audioFile ) ; } catch ( IOException ioe ) { System . out . println ( "Can't open " + audioFile + " " + ioe ) ; } } } else if ( ! streamingAudio ) { audioPlayer = new JavaClipAudioPlayer ( ) ; } else { try { audioPlayer = voice . getDefaultAudioPlayer ( ) ; } catch ( InstantiationException e ) { e . printStackTrace ( ) ; } } } if ( audioPlayer == null ) { audioPlayer = new NullAudioPlayer ( ) ; } if ( false ) { System . out . println ( "Using " + audioPlayer ) ; } voice . setAudioPlayer ( audioPlayer ) ; }

Inicia este sintetizador de Freetts cargando el vacío y creando un nuevo audioplayer.


static boolean isSystemWindows  ( ) { return SYSTEM_SEPARATOR == WINDOWS_SEPARATOR ; }

Determina si el sistema de archivos de Windows está en uso.


public JSONObject put  ( String key , double value ) throws JSONException { this . put ( key , new Double ( value ) ) ; return this ; }

Ponga una llave / pareja doble en el JSONOBJECT.


private String makeAbsolute  ( String uri ) { if ( uri == null ) { uri = "" ; } try { URL url = new URL ( uri ) ; return url . toString ( ) ; } catch ( MalformedURLException mue ) { try { URL fileURL = FileURL . makeURL ( uri ) ; return fileURL . toString ( ) ; } catch ( MalformedURLException mue2 ) { return uri ; } } }


int onUpdate  ( DataSupport baseObj , long id ) throws SecurityException , IllegalArgumentException , NoSuchMethodException , IllegalAccessException , InvocationTargetException { List < Field > supportedFields = getSupportedFields ( baseObj . getClassName ( ) ) ; ContentValues values = new ContentValues ( ) ; putFieldsValue ( baseObj , supportedFields , values ) ; putFieldsToDefaultValue ( baseObj , values ) ; if ( values . size ( ) > 0 ) { return mDatabase . update ( baseObj . getTableName ( ) , values , "id = " + id , null ) ; } return 0 ; }

La interfaz abierta para otras clases en el paquete CRUD para actualizar.Utilizando BASEBJ para decidir qué tabla actualizar, e identificar para decidir una fila específica.El valor que necesita actualizarse se almacena en BASEBJ.


@ Override public String verifyToken  ( UserCredentials credentials , String token , RestoreType restoreType ) { if ( credentials == null ) { return "credentials_parameter_is_null" ; } if ( token == null ) { return "token_parameter_is_null" ; } if ( restoreType == null ) { return "restore_type_parameter_is_null" ; } RestoreOptions restoreOptions = RestoreOptions . getRestoreOptions ( token ) ; if ( restoreOptions == null ) { return "cannot_parse_restore_options" ; } if ( restoreType != restoreOptions . getRestoreType ( ) ) { return "wrong_prefix_for_restore_type" ; } String restoreToken = credentials . getRestoreToken ( ) ; if ( restoreToken == null ) { return "could_not_verify_token" ; } boolean validToken = passwordManager . matches ( token , restoreToken ) ; return validToken ? null : "restore_token_does_not_match_supplied_token" ; }

Verifique el token dado para una invitación de usuario o operación de restauración de contraseña.<p /> Si error, devuelve una de las siguientes cadenas: <p /> <ul> <li> credenciales_parameter_is_null </ li> <li> token_parameter_is_null </ li> <li> restaore_type_parameter_is_null </ li> <li> no se puede traducir </ li> <li>/ li> <li> Iglesion_Prefix_For_Restore_Type </ li> <li> podría_not_verify_token </ li> <li> restaore_token_does_not_match_supplied_token </ li> </ ul>


public void loadFromFile  ( String sFileName ) throws FileNotFoundException , IOException  { FileReader frFile = new FileReader ( sFileName ) ; String sText = "" ; int c = frFile . read ( ) ; while ( c != - 1 ) { sText += c ; c = frFile . read ( ) ; } addText ( sText ) ; frFile . close ( ) ; }

Carga un archivo de texto con el nombre de archivo sfilename y agrega todas sus palabras a las definiciones


public FieldRefNode findLocalFieldRefNode  ( Object baseValue , SparkField field ) { VarNode base = findLocalVarNode ( baseValue ) ; if ( base == null ) return null ; return base . dot ( field ) ; }

Encuentra el campo FieldRefNode para el valor de la variable base y el campo de campo, o devuelve NULL.


private void addReference  ( final int sourcePosition , final int referencePosition ) { if ( srcAndRefPositions == null ) { srcAndRefPositions = new int [ 6 ] ; } if ( referenceCount >= srcAndRefPositions . length ) { int [ ] a = new int [ srcAndRefPositions . length + 6 ] ; System . arraycopy ( srcAndRefPositions , 0 , a , 0 , srcAndRefPositions . length ) ; srcAndRefPositions = a ; } srcAndRefPositions [ referenceCount ++ ] = sourcePosition ; srcAndRefPositions [ referenceCount ++ ] = referencePosition ; }

Agrega una referencia hacia adelante a esta etiqueta.Este método debe llamarse solo para una verdadera referencia delantera, es decir, solo si esta etiqueta aún no se resuelve.Para referencias hacia atrás, la compensación de la referencia puede ser, y debe ser, calculada y almacenada directamente.


public SnippetObject ( Object obj , Pathway path , KindredSnippets [ ] snippets ) { myObject = obj ; myPath = path ; mySnippets = snippets ; }

Construir un objeto de fragmento de sus subcomponentes.Tenga en cuenta que los fragmentos para un objeto individual solo se calculan cuando se solicitan.


private void cleanup  ( int imageType , Uri oldImage , Uri newImage , Bitmap bitmap ) { if ( bitmap != null ) { bitmap . recycle ( ) ; } ( new File ( FileHelper . stripFileProtocol ( oldImage . toString ( ) ) ) ) . delete ( ) ; checkForDuplicateImage ( imageType ) ; if ( this . saveToPhotoAlbum && newImage != null ) { this . scanForGallery ( newImage ) ; } System . gc ( ) ; }

Limpia después de tomar la foto.Comprobando por duplicados y ese tipo de cosas.


public SpaceTypeDescriptorBuilder idProperty  ( String idPropertyName , boolean autoGenerateId ) { final SpaceIndexType indexType = autoGenerateId ? SpaceIndexType . NONE : SpaceIndexType . BASIC ; return idProperty ( idPropertyName , autoGenerateId , indexType ) ; }


public void dispose  ( ) { m_table . getColumn ( m_field ) . removeColumnListener ( this ) ; }

Deseche estos metadatos, liberando los recursos y no registre a los oyentes.


@ Override public void processingInstruction  ( String target , XMLString data , Augmentations augs ) throws XNIException { try { if ( fDocumentHandler != null ) { fDocumentHandler . processingInstruction ( target , data . toString ( ) ) ; } if ( fContentHandler != null ) { fContentHandler . processingInstruction ( target , data . toString ( ) ) ; } } catch ( SAXException e ) { throw new XNIException ( e ) ; } }

Una instrucción de procesamiento.Las instrucciones de procesamiento consisten en un nombre de destino y, opcionalmente, datos de texto.Los datos solo son significativos para la aplicación.<p /> Típicamente, los datos de una instrucción de procesamiento contendrán una serie de pseudo-atributos.Estos pseudo-atributos siguen la forma de atributos de elementos, pero son <strong> no </ strong> analizados o presentados a la aplicación como otra cosa que no sea texto.La solicitud es responsable de analizar los datos.


protected void paintComponent  ( Graphics g ) { super . paintComponent ( g ) ; if ( image == null ) { return ; } if ( scale == 0.0 ) { initializeParams ( ) ; } if ( isHighQualityRendering ( ) ) { Rectangle rect = getImageClipBounds ( ) ; if ( rect == null || rect . width == 0 || rect . height == 0 ) { return ; } BufferedImage subimage = image . getSubimage ( rect . x , rect . y , rect . width , rect . height ) ; Graphics2D g2 = ( Graphics2D ) g ; g2 . setRenderingHint ( RenderingHints . KEY_INTERPOLATION , INTERPOLATION_TYPE ) ; g2 . drawImage ( subimage , Math . max ( 0 , originX ) , Math . max ( 0 , originY ) , Math . min ( ( int ) ( subimage . getWidth ( ) * scale ) , getWidth ( ) ) , Math . min ( ( int ) ( subimage . getHeight ( ) * scale ) , getHeight ( ) ) , null ) ; } else { g . drawImage ( image , originX , originY , getScreenImageWidth ( ) , getScreenImageHeight ( ) , null ) ; } if ( isNavigationImageEnabled ( ) ) { g . drawImage ( navigationImage , 0 , 0 , getScreenNavImageWidth ( ) , getScreenNavImageHeight ( ) , null ) ; drawZoomAreaOutline ( g ) ; } }

Pinta el panel y su imagen en el nivel de zoom actual, la ubicación y el método de interpolación que dependen de la escala de la imagen. </ P>


public Builder bounceAtZoomLimits  ( Boolean bounceAtZoomLimits ) { this . bounceAtZoomLimits = bounceAtZoomLimits ; return this ; }

Ponlo a Falso si no desea que el mapa se zoom hasta más allá del zoom mínimo / máx.Predeterminado VERDADERO


public boolean isHeader  ( int position ) { return position >= 0 && position < mHeaderViews . size ( ) ; }


private String base58encode  ( byte [ ] input ) { if ( input . length == 0 ) { return "" ; } input = copyOfRange ( input , 0 , input . length ) ; int zeroCount = 0 ; while ( zeroCount < input . length && input [ zeroCount ] == 0 ) { ++ zeroCount ; } byte [ ] temp = new byte [ input . length * 2 ] ; int j = temp . length ; int startAt = zeroCount ; while ( startAt < input . length ) { byte mod = divmod58 ( input , startAt ) ; if ( input [ startAt ] == 0 ) { ++ startAt ; } temp [ -- j ] = ( byte ) ALPHABET [ mod ] ; } while ( j < temp . length && temp [ j ] == ALPHABET [ 0 ] ) { ++ j ; } while ( -- zeroCount >= 0 ) { temp [ -- j ] = ( byte ) ALPHABET [ 0 ] ; } byte [ ] output = copyOfRange ( temp , j , temp . length ) ; try { return new String ( output , "US-ASCII" ) ; } catch ( UnsupportedEncodingException e ) { throw new RuntimeException ( e ) ; } }

Esto codifica una entrada de cadena a una base 58 tomada de la implementación de Bitcoinj de la codificación de comprobación de BAS58.


public WallSearchQuery ( VkApiClient client ) { super ( client , "wall.search" , SearchResponse . class ) ; }

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


public static void main  ( String [ ] sArgs ) { if ( sArgs . length > 0 ) { SymbolicGraph sg = new SymbolicGraph ( 1 , 7 ) ; sg . setDataString ( sArgs [ 0 ] ) ; System . out . println ( utils . graphToDot ( sg , true ) ) ; } else try { SymbolicGraph sg = new SymbolicGraph ( 1 , 1 ) ; sg . addEdge ( new VertexImpl ( "a" ) , new VertexImpl ( "b" ) ) ; sg . addEdge ( new VertexImpl ( "b" ) , new VertexImpl ( "c" ) ) ; sg . addEdge ( new VertexImpl ( "b" ) , new VertexImpl ( "d" ) ) ; sg . addEdge ( new VertexImpl ( "e" ) , new VertexImpl ( "d" ) ) ; sg . addEdge ( new VertexImpl ( "f" ) , new VertexImpl ( "e" ) ) ; sg . addEdge ( new VertexImpl ( "f" ) , new VertexImpl ( "g" ) ) ; sg . addEdge ( new VertexImpl ( "f" ) , new VertexImpl ( "h" ) ) ; sg . addEdge ( new VertexImpl ( "c" ) , new VertexImpl ( "h" ) ) ; for ( int iCnt = 0 ; iCnt < 100 ; iCnt ++ ) System . err . println ( sg . getShortestLinkBetween ( new VertexImpl ( "a" ) , new VertexImpl ( "h" ) ) ) ; } catch ( Exception ex ) { ex . printStackTrace ( System . err ) ; } }

Función auxiliar.Comprueba la funcionalidad de la clase.


@ Override public Iterator iterator  ( ) { return new EntryIterator ( set . iterator ( ) ) ; }

Envoltura para que podamos hacer cheques de tipo en el mapa.Entry.SetValue.


public static boolean addSmiles  ( Context context , Spannable spannable ) { boolean hasChanges = false ; for ( Entry < Pattern , Object > entry : emoticons . entrySet ( ) ) { Matcher matcher = entry . getKey ( ) . matcher ( spannable ) ; while ( matcher . find ( ) ) { boolean set = true ; for ( ImageSpan span : spannable . getSpans ( matcher . start ( ) , matcher . end ( ) , ImageSpan . class ) ) if ( spannable . getSpanStart ( span ) >= matcher . start ( ) && spannable . getSpanEnd ( span ) <= matcher . end ( ) ) spannable . removeSpan ( span ) ; else { set = false ; break ; } if ( set ) { hasChanges = true ; Object value = entry . getValue ( ) ; if ( value instanceof String && ! ( ( String ) value ) . startsWith ( "http" ) ) { File file = new File ( ( String ) value ) ; if ( ! file . exists ( ) || file . isDirectory ( ) ) { return false ; } spannable . setSpan ( new ImageSpan ( context , Uri . fromFile ( file ) ) , matcher . start ( ) , matcher . end ( ) , Spannable . SPAN_EXCLUSIVE_EXCLUSIVE ) ; } else { spannable . setSpan ( new ImageSpan ( context , ( Integer ) value ) , matcher . start ( ) , matcher . end ( ) , Spannable . SPAN_EXCLUSIVE_EXCLUSIVE ) ; } } } } return hasChanges ; }

Reemplace SpanBleable existente con sonrisas


public JavaCommand ( String javaBin , String className , ClassPath classPath , Map < String , String > systemProp , Argument [ ] jvmArgs , String ... mainArgs ) { this ( className , classPath , systemProp , jvmArgs , mainArgs ) ; if ( javaBin != null ) _javaBin = javaBin ; }

Crea un nuevo javacommand que ejecutará un nuevo proceso de Java con el ejecutable Java deseado, Classpath, Propiedades del sistema y JVMARGS.


public ScanStatus resubmitWorkflowTasks  ( String scanId ) { ScanStatus status = _scanStatusDAO . getScanStatus ( scanId ) ; if ( status == null ) { return null ; } if ( status . getCompleteTime ( ) == null ) { for ( ScanRangeStatus active : status . getActiveScanRanges ( ) ) { _scanWorkflow . addScanRangeTask ( scanId , active . getTaskId ( ) , active . getPlacement ( ) , active . getScanRange ( ) ) ; } _scanWorkflow . scanStatusUpdated ( scanId ) ; } return status ; }

A veces, debido a errores inesperados, al mismo tiempo que envía rangos de exploración a las colas subyacentes, un escaneo puede atascarse.Este método toma todas las tareas disponibles para un escaneo y los reenvía.Este método es seguro porque el sistema subyacente es resistente a las reenvisiones de tareas y el trabajo concurrente en la misma tarea.


public int send  ( OutputStream out ) throws IOException { long remainBytes = fileSize ; byte [ ] buff = new byte [ 256 * 1024 ] ; int bytes ; while ( remainBytes > 0 ) { try { if ( ( bytes = inputStream . read ( buff , 0 , remainBytes > buff . length ? buff . length : ( int ) remainBytes ) ) < 0 ) { return - 1 ; } } catch ( IOException ex ) { ex . printStackTrace ( ) ; return - 1 ; } out . write ( buff , 0 , bytes ) ; remainBytes -= bytes ; } return 0 ; }

Envíe la función de devolución de llamada de contenido de archivos, solo una vez cuando el archivo cargado


public < E extends  ProtoElement > Iterable < E > reachable ( Iterable < E > elems )  { return scoper . filter ( elems ) ; }

Devuelve el iterable al alcance de los elementos alcanzables.


private void computeJacobian  ( ) { if ( jacobian == null ) { final double x = v . getX ( ) ; final double y = v . getY ( ) ; final double z = v . getZ ( ) ; final double rho2 = x * x + y * y ; final double rho = FastMath . sqrt ( rho2 ) ; final double r2 = rho2 + z * z ; jacobian = new double [ 3 ] [ 3 ] ; jacobian [ 0 ] [ 0 ] = x / r ; jacobian [ 0 ] [ 1 ] = y / r ; jacobian [ 0 ] [ 2 ] = z / r ; jacobian [ 1 ] [ 0 ] = - y / rho2 ; jacobian [ 1 ] [ 1 ] = x / rho2 ; jacobian [ 2 ] [ 0 ] = x * z / ( rho * r2 ) ; jacobian [ 2 ] [ 1 ] = y * z / ( rho * r2 ) ; jacobian [ 2 ] [ 2 ] = - rho / r2 ; } }

Evaluación perezosa de (R, & Theta;, & Phi;) Jacobian.


private boolean findHeadsApposition  ( CTNode curr ) { if ( ! curr . isConstituentTagAny ( S_NOUN_PHRASE ) || curr . containsChild ( PTBLib . M_NNx ) ) return false ; CTNode fst = curr . getFirstChild ( PTBLib . M_NP_NML ) ; while ( fst != null && fst . containsChild ( MT_POS ) ) fst = fst . getRightNearestSibling ( PTBLib . M_NP_NML ) ; if ( fst == null || fst . getC2DInfo ( ) . hasHead ( ) ) return false ; boolean hasAppo = false ; CTNode snd = fst ; while ( ( snd = snd . getRightSibling ( ) ) != null ) { if ( snd . getC2DInfo ( ) . hasHead ( ) ) continue ; if ( ( snd . isConstituentTagAny ( S_NOUN_PHRASE ) && ! hasAdverbialTag ( snd ) ) || ( snd . hasFunctionTagAny ( PTBTag . F_HLN , PTBTag . F_TTL ) ) || ( snd . isConstituentTag ( PTBTag . C_RRC ) && snd . containsChild ( MT_NP_PRD ) ) ) { snd . getC2DInfo ( ) . setHead ( fst , DEPTagEn . DEP_APPOS ) ; hasAppo = true ; } } return hasAppo ; }

Encuentra el jefe de modificadores apositivos.


public Builder intoTargetFiles  ( @ Nullable Collection < File > targetFiles ) { myTargetFiles = targetFiles ; return this ; }

Recoge todos los archivos de destino generados en la colección especificada.


public static double readDouble  ( byte [ ] bytes , int start ) { return Double . longBitsToDouble ( readLong ( bytes , start ) ) ; }

Analizar un doble de una matriz de bytes.


private void downloadFile  ( String downloadKey ) { mCurrentDownload = mPendingDownloads . get ( downloadKey ) ; if ( mCurrentDownload != null ) { if ( AccountUtils . exists ( mCurrentDownload . getAccount ( ) , getApplicationContext ( ) ) ) { Log_OC . d ( TAG , "Account " + mCurrentDownload . getAccount ( ) . name + " exists" ) ; notifyDownloadStart ( mCurrentDownload ) ; RemoteOperationResult downloadResult = null ; try { if ( mCurrentAccount == null || ! mCurrentAccount . equals ( mCurrentDownload . getAccount ( ) ) ) { mCurrentAccount = mCurrentDownload . getAccount ( ) ; mStorageManager = new FileDataStorageManager ( mCurrentAccount , getContentResolver ( ) ) ; } OwnCloudAccount ocAccount = new OwnCloudAccount ( mCurrentAccount , this ) ; mDownloadClient = OwnCloudClientManagerFactory . getDefaultSingleton ( ) . getClientFor ( ocAccount , this ) ; downloadResult = mCurrentDownload . execute ( mDownloadClient ) ; if ( downloadResult . isSuccess ( ) ) { saveDownloadedFile ( ) ; } } catch ( Exception e ) { Log_OC . e ( TAG , "Error downloading" , e ) ; downloadResult = new RemoteOperationResult ( e ) ; } finally { Pair < DownloadFileOperation , String > removeResult = mPendingDownloads . removePayload ( mCurrentAccount . name , mCurrentDownload . getRemotePath ( ) ) ; notifyDownloadResult ( mCurrentDownload , downloadResult ) ; sendBroadcastDownloadFinished ( mCurrentDownload , downloadResult , removeResult . second ) ; } } else { Log_OC . d ( TAG , "Account " + mCurrentDownload . getAccount ( ) . toString ( ) + " doesn't exist" ) ; cancelDownloadsForAccount ( mCurrentDownload . getAccount ( ) ) ; } } }

Método de descarga del núcleo: solicita un archivo que descargue y lo almacena.


protected NewsfeedIgnoreItemQuery ownerId  ( int value ) { return unsafeParam ( "owner_id" , value ) ; }

Identificador del propietario del artículo (usuario o comunidad) Tenga en cuenta que la identificación de la comunidad debe ser negativa."propietario_id = 1" - usuario "propietario_id = -1" - comunidad


public PieChartDrawer createInstance  ( ) { final PieChartDrawer drawer = new PieChartDrawer ( ) ; drawer . setViewer ( viewer ) ; drawer . setChartData ( new DefaultChartData ( ) ) ; drawer . setClass2HigherClassMapper ( class2HigherClassMapper ) ; drawer . setSeriesLabelGetter ( seriesLabelGetter ) ; drawer . setExecutorService ( executorService ) ; return drawer ; }

Cree una nueva instancia del tipo de cajón dado, compartiendo estructuras de datos internas


@ Override public void populateExpression  ( Object objValue ) { }


public Value subtract  ( Value num1 , Value num2 ) { throw new RuntimeException ( "Unsupported operation." ) ; }

Devuelva un valor que representa el segundo valor restado de la primera.


public SemiVariance ( final boolean corrected , final Direction direction ) { this . biasCorrected = corrected ; this . varianceDirection = direction ; }

Construye una semivaría con la propiedad <código> isbiascorrectecorecitection especificada y la propiedad <código> de código> especificada </ código>.


public static boolean isReservedStreamName  ( String name ) { return name . startsWith ( "." ) ; }

¿Es un nombre de flujo reservado en el espacio de nombres de BKDL?


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

Su tiempo de vuelo ha aumentado en% NUM0 porque [% Skillcaster] usó [% de habilidad].


public void newSampleData  ( double [ ] y , double [ ] [ ] x ) throws MathIllegalArgumentException  { validateSampleData ( x , y ) ; newYSampleData ( y ) ; newXSampleData ( x ) ; }

Carga de datos de muestra Modelo X e Y, anulando cualquier muestra anterior.Calcula y cachés QR descomposición de la matriz x.


public final void addPropertyChangeListener  ( String propertyName , PropertyChangeListener listener ) { getChangeSupport ( ) . addPropertyChangeListener ( propertyName , listener ) ; }

Agregue un campingChangelistener para obtener una propiedad específica.El oyente se invocará solo cuando una llamada en FirePropertyChange nombra que las propiedades específicas.El mismo objeto de oyente puede agregarse más de una vez.Para cada propiedad, el oyente se invocará la cantidad de veces que se agregó para esa propiedad.Si <CÓDIGO> PropertyName </ code> o <code> escucha </ code> es nulo, no se tira ninguna excepción y no se toma ninguna acción.


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

Crea una <CÓDIGO> USERALREADYEXISTSEXCEX </ CODE> con la causa especificada y un mensaje de detalle de <tt> (causa == null anular: causa.tostring ()) </ tt> (que normalmente contiene el mensaje de clase y detalle de<tt> causa </ tt>).


protected OrdersChangeStateQuery orderId  ( int value ) { return unsafeParam ( "order_id" , value ) ; }


public final void writePos  ( final Point s ) { writeShort ( s . x ) ; writeShort ( s . y ) ; }

Escribe una información de posición 2D 4 BYTE


public boolean isSendInstallEvent  ( ) { return mSendInstallEvent ; }

Ya sea que le estamos o no el servidor sobre una nueva instalación.Falso indica un ping / UpdateCheck.


private void init  ( ) { LayoutInflater . from ( context ) . inflate ( R . layout . actioncardview , this , true ) ; this . title = ( TextView ) findViewById ( R . id . card_title ) ; this . description = ( TextView ) findViewById ( R . id . card_description ) ; this . buttonBar = ( LinearLayout ) findViewById ( R . id . card_button_bar ) ; this . divider = findViewById ( R . id . card_divider ) ; }

Inicializa la vista utilizando el diseño de ActionCardView y recupera los elementos de UI relevantes.


private void insertIntermediateJoinTableValue  ( DataSupport baseObj , boolean isUpdate ) { Map < String , Set < Long > > associatedIdsM2M = baseObj . getAssociatedModelsMapForJoinTable ( ) ; ContentValues values = new ContentValues ( ) ; for ( String associatedTableName : associatedIdsM2M . keySet ( ) ) { String joinTableName = getIntermediateTableName ( baseObj , associatedTableName ) ; if ( isUpdate ) { mDatabase . delete ( joinTableName , getWhereForJoinTableToDelete ( baseObj ) , new String [ ] { String . valueOf ( baseObj . getBaseObjId ( ) ) } ) ; } Set < Long > associatedIdsM2MSet = associatedIdsM2M . get ( associatedTableName ) ; for ( long associatedId : associatedIdsM2MSet ) { values . clear ( ) ; values . put ( getForeignKeyColumnName ( baseObj . getTableName ( ) ) , baseObj . getBaseObjId ( ) ) ; values . put ( getForeignKeyColumnName ( associatedTableName ) , associatedId ) ; mDatabase . insert ( joinTableName , null , values ) ; } } }

Inserte los valores en las tablas de unión intermedia para el auto modelo y los modelos asociados.


private Object readResolve  ( ) { return val ? YES : NO ; }

Canonicalize para que <código> == </ código> se pueda utilizar.


private boolean isSelf  ( Player player , int targetObjId ) { return player . sameObjectId ( targetObjId ) ; }

Cheques Si el objetivo es igual que el reproductor actual


private BatchResponsePacket executeBatch  ( IJSpace space , Transaction transaction , PreparedValuesCollection preparedValuesCollection ) throws SQLException { int [ ] result = new int [ preparedValuesCollection . size ( ) ] ; ExternalEntry [ ] entriesToWrite = new ExternalEntry [ preparedValuesCollection . size ( ) ] ; try { if ( getSecurityInterceptor ( ) != null ) { SpaceContext spaceContext = getSession ( ) . getConnectionContext ( ) . getSpaceContext ( ) ; SecurityContext securityContext = SpaceContextHelper . getSecurityContext ( spaceContext ) ; getSecurityInterceptor ( ) . intercept ( securityContext , SpacePrivilege . WRITE , getTableName ( ) ) ; } ITypeDesc info = getTypeInfo ( ) ; String [ ] columnNames ; if ( getQueryColumns ( ) != null ) { columnNames = new String [ getQueryColumns ( ) . size ( ) ] ; getQueryColumns ( ) . toArray ( columnNames ) ; } else { columnNames = info . getPropertiesNames ( ) ; if ( columnNames . length != values . size ( ) ) throw new SQLException ( "All values must be set" , "GSP" , - 126 ) ; } String myUid = null ; String [ ] types = new String [ values . size ( ) ] ; int batchIndex = 0 ; for ( Object [ ] preparedValues : preparedValuesCollection . getBatchValues ( ) ) { Object [ ] literalValues = new Object [ values . size ( ) ] ; int preparedValueIndex = 0 ; for ( int i = 0 ; i < values . size ( ) ; i ++ ) { LiteralNode literalNode = values . get ( i ) ; if ( literalNode . isPreparedValue ( ) ) { literalNode . setValue ( preparedValues [ preparedValueIndex ++ ] ) ; } types [ i ] = ( literalNode . getValue ( ) == null ) ? info . getFixedProperty ( i ) . getTypeName ( ) : literalNode . getValue ( ) . getClass ( ) . getName ( ) ; if ( literalNode . getValue ( ) != null && ( types [ i ] . endsWith ( ".Blob" ) || types [ i ] . endsWith ( ".Clob" ) ) ) { if ( myUid == null ) myUid = ClientUIDHandler . createUIDFromName ( String . valueOf ( Math . random ( ) ) , types [ i ] ) ; ( ( ObjectWithUID ) literalNode . getValue ( ) ) . setEntryUID ( myUid ) ; ( ( ObjectWithUID ) literalNode . getValue ( ) ) . setObjectIndex ( i ) ; } if ( ! info . getFixedProperty ( columnNames [ i ] ) . getTypeName ( ) . equals ( types [ i ] ) ) { try { literalValues [ i ] = literalNode . getConvertedObject ( info , columnNames [ i ] ) ; } catch ( Exception e ) { SQLException ex = new SQLException ( "Wrong type for given column " + info . getFixedProperty ( i ) . getName ( ) + " " + info . getFixedProperty ( i ) . getTypeName ( ) + " vs " + types [ i ] , "GSP" , - 127 ) ; ex . initCause ( e ) ; throw ex ; } } else { literalValues [ i ] = literalNode . getValue ( ) ; } } entriesToWrite [ batchIndex ] = new ExternalEntry ( getTableName ( ) , literalValues , columnNames ) ; entriesToWrite [ batchIndex ] . m_FieldsTypes = types ; if ( myUid != null ) entriesToWrite [ batchIndex ] . setUID ( myUid ) ; batchIndex ++ ; } } catch ( Exception e ) { SQLException ex = new SQLException ( "Failed to insert; Cause: " + e , "GSP" , - 106 ) ; ex . initCause ( e ) ; throw ex ; } try { space . writeMultiple ( entriesToWrite , transaction , QueryProcessor . getDefaultConfig ( ) . getWriteLease ( ) ) ; for ( int i = 0 ; i < result . length ; i ++ ) { result [ i ] = 1 ; } } catch ( WriteMultipleException e ) { for ( int i = 0 ; i < result . length ; i ++ ) { result [ i ] = e . getResults ( ) [ i ] . isError ( ) ? Statement . EXECUTE_FAILED : 1 ; } throw new BatchUpdateException ( e . getMessage ( ) , result ) ; } catch ( Exception e ) { for ( int i = 0 ; i < result . length ; i ++ ) { result [ i ] = Statement . EXECUTE_FAILED ; } throw new BatchUpdateException ( e . getMessage ( ) , result ) ; } return new BatchResponsePacket ( result ) ; }

Ejecuta la consulta por lotes utilizando la operación de Writemultiple.


public static Pair < ZooKeeperServerShim , Integer > runZookeeperOnAnyPort  ( File zkDir ) throws Exception { return runZookeeperOnAnyPort ( ( int ) ( Math . random ( ) * 10000 + 7000 ) , zkDir ) ; }

Intente iniciar ZOOKEEPER localmente en cualquier puerto.


public static SM_SYSTEM_MESSAGE STR_PET_CONDITION_REWARD_GET  ( String value0 , String value1 ) { return new SM_SYSTEM_MESSAGE ( 1400871 , value0 , value1 ) ; }

% 0 desenterró un termiedero% 1 para ti.


@ Override public void revertToDefaultValue  ( ) { populateField ( defaultValue ) ; }


public void add  ( GenomicCoords gc ) { if ( this . history . size ( ) == 0 || ! this . history . get ( this . history . size ( ) - 1 ) . equalCoords ( gc ) ) { this . history . add ( ( GenomicCoords ) gc . clone ( ) ) ; } this . positionTracker = this . history . size ( ) - 1 ; }

Agregue GenomicCoords OBJ a la historia siempre que este artículo no sea igual en coordenadas a la última de la historia.El rastreador de posición se restablece al último cuando se agrega una nueva posición


@ Override public String marshal  ( final BigDecimal v ) throws Exception { if ( v != null ) { final DecimalFormatSymbols symbols = new DecimalFormatSymbols ( ) ; symbols . setDecimalSeparator ( '.' ) ; return new DecimalFormat ( "0.00" , symbols ) . format ( v ) ; } else { return null ; } }

Serializa la representación de BigDecimal a String.NULL-SEGURO, siempre se incluyen dos dígitos decimales.


public void resume  ( ) { isPaused = false ; }

Tener la reanudación del jefe - anulación


protected XMLErrorReporter createErrorReporter  ( ) { return new XMLErrorReporter ( ) ; }


static VersionNumber identifyWindowsVersion  ( final String userAgent ) { VersionNumber version = VersionNumber . UNKNOWN ; final List < Pattern > patterns = new ArrayList < Pattern > ( ) ; patterns . add ( Pattern . compile ( "Windows NT\\s?((\\d+)((\\.\\d+)+)?)" ) ) ; patterns . add ( Pattern . compile ( "Windows Phone OS ((\\d+)((\\.\\d+)+)?)" ) ) ; patterns . add ( Pattern . compile ( "Windows CE ((\\d+)((\\.\\d+)+)?)" ) ) ; patterns . add ( Pattern . compile ( "Windows 2000\\s?((\\d+)((\\.\\d+)+)?)" ) ) ; patterns . add ( Pattern . compile ( "Windows XP\\s?((\\d+)((\\.\\d+)+)?)" ) ) ; patterns . add ( Pattern . compile ( "Windows 7\\s?((\\d+)((\\.\\d+)+)?)" ) ) ; patterns . add ( Pattern . compile ( "Win 9x ((\\d+)((\\.\\d+)+)?)" ) ) ; patterns . add ( Pattern . compile ( "Windows ((\\d+)((\\.\\d+)+)?)" ) ) ; patterns . add ( Pattern . compile ( "WebTV/((\\d+)((\\.\\d+)+)?)" ) ) ; for ( final Pattern pattern : patterns ) { final Matcher m = pattern . matcher ( userAgent ) ; if ( m . find ( ) ) { version = parseFirstVersionNumber ( m . group ( MAJOR_INDEX ) ) ; break ; } } return version ; }

Este método intenta determinar el número de versión del sistema operativo <i> Windows </ i> con mayor precisión.


public Value generalCaseExpression  ( Expression [ ] exp , Value val ) { throw new RuntimeException ( "Unsupported operation." ) ; }


public String createTag  ( String tagPath ) throws RepositoryException  { String parentPath = TAGS_ROOT + substringBeforeLast ( tagPath , SEPARATOR ) ; String tagName = substringAfterLast ( tagPath , SEPARATOR ) ; String fullTagPath = parentPath + SEPARATOR + tagName ; Map < String , Pair < String , Integer > > properties = new HashMap < > ( ) ; properties . put ( JCR_TITLE , new MutablePair < > ( tagName , 1 ) ) ; jcrHelper . createNode ( parentPath , tagName , CQ_TAG , properties ) ; conditions . verify ( nodeExist ( session , fullTagPath ) ) ; return fullTagPath ; }

Crea un nodo de etiqueta bajo el camino dado, verifica su existencia y devuelve su camino de JCR completo.


public Object [ ] toArray  ( ) { Object [ ] elements = getArray ( ) ; return copyOf ( elements , elements . length ) ; }

Devuelve una matriz que contiene todos los elementos en esta lista en la secuencia correcta (de primera a último elemento).<P> La matriz devuelta será "segura", ya que no se mantiene las referencias a ella.(En otras palabras, este método debe asignar una nueva matriz).La persona que llama es libre de modificar la matriz devuelta.<p> Este método actúa como puente entre las API basadas en la matriz y basadas en la recopilación.


public NavigatingFragmentDelegate ( @ NonNull DelegateCallback < S , U > callback , @ NonNull NavigatingDelegateCallback < T > navigatingCallback , @ NonNull Fragment delegatedFragment ) { super ( callback , delegatedFragment ) ; this . navigatingCallback = navigatingCallback ; }

Crea un delegado navegado para el fragmento.


public static void validate  ( String s , Type t , boolean template ) { int i = _valid ( s , t , template ) ; if ( i > - 1 ) { throw new IllegalArgumentException ( "The string '" + s + "' for the URI component " + t + " contains an invalid character, '" + s . charAt ( i ) + "', at index " + i ) ; } }

Valida los caracteres legales de una cadena codificada porcentual que representa un tipo de componente URI.


public boolean removeHandler  ( String columnName ) { if ( m_overrides == null ) return false ; else return m_overrides . remove ( columnName ) != null ; }

Retire un controlador de datos personalizado para un nombre de columna determinado.Posteriormente a este método, la columna utilizará el controlador predeterminado.


public AuthenticationToken ( SessionId sessionId ) { this . sessionId = sessionId ; }

Construye un token de autenticación con un ID de sesión aleatorio.


public static SM_SYSTEM_MESSAGE STR_MSG_MENTOR_START_PARTYMSG  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400763 , value0 ) ; }


public boolean isPaging  ( ) { return page != null || pageSize != null ; }

Indica si la paginación está habilitada.


public void releaseScan  ( ) { release ( ) ; }


@ Override public Lifecycle registerAsListener  ( final SupervisionListener supervisionListener , final int numberThreads , final int queueSize ) { listenerLock . writeLock ( ) . lock ( ) ; try { ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor ( numberThreads , numberThreads , DEFAULT_THREAD_TIMEOUT , TimeUnit . SECONDS , new LinkedBlockingQueue < Runnable > ( queueSize ) , new ThreadPoolExecutor . AbortPolicy ( ) ) ; threadPoolExecutor . allowCoreThreadTimeOut ( true ) ; executors . put ( supervisionListener , threadPoolExecutor ) ; supervisionListeners . add ( supervisionListener ) ; return new ExecutorLifecycleHandle ( threadPoolExecutor ) ; } finally { listenerLock . writeLock ( ) . unlock ( ) ; } }

No es necesario sincronización como todos agregados al inicio.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUMMON_STAY_MODE  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1200007 , value0 ) ; }


public M continueBest  ( IMoveGenerator < M , G > generator ) { evaluationsPerformed = 0 ; try { treeSearchLoop ( generator ) ; } catch ( TimeoutException e ) { } return returnCurrentBest ( rootNodes . get ( 0 ) . father . getGame ( ) . currentPlayer ( ) ) ; }

Continúe la exploración de un árbol de juegos para encontrar el mejor movimiento posible hasta que lleguemos al tiempo de espera.


public AuthRestoreQuery restore  ( String phone ) { return new AuthRestoreQuery ( getClient ( ) , phone ) ; }

Permite restaurar el acceso a la cuenta utilizando un código recibido a través de SMS.


public void addUserMessageListener  ( UserMessageListener userMessageListener ) { userMessageListeners . add ( userMessageListener ) ; }

Agrega un escuchador de mensajes de usuario.


private void scheduleValueComputationTask  ( ValueComputationTask task ) { if ( executor . isTerminating ( ) ) return ; executor . execute ( task ) ; }

Despacha el cálculo de un valor dado.Puede ser ejecutado en un hilo diferente.


public void print  ( TorrentSessionState sessionState ) { if ( shutdown ) { return ; } try { long downloaded = sessionState . getDownloaded ( ) ; long uploaded = sessionState . getUploaded ( ) ; graphics . putString ( 0 , 2 , getDurations ( downloaded - this . downloaded , sessionState . getPiecesRemaining ( ) , sessionState . getPiecesTotal ( ) ) ) ; graphics . putString ( 0 , 3 , getSessionInfo ( sessionState . getConnectedPeers ( ) , downloaded - this . downloaded , uploaded - this . uploaded ) ) ; graphics . putString ( 0 , 4 , getProgressBar ( sessionState . getPiecesTotal ( ) , sessionState . getPiecesRemaining ( ) ) ) ; if ( sessionState . getPiecesRemaining ( ) == 0 ) { graphics . putString ( 0 , 5 , "Download is complete. Press Ctrl-C to stop seeding and exit." ) ; } screen . refresh ( Screen . RefreshType . DELTA ) ; this . downloaded = downloaded ; this . uploaded = uploaded ; } catch ( Throwable e ) { LOGGER . error ( "Unexpected error when printing session state" , e ) ; shutdown ( ) ; } }


public boolean isCritical  ( ) { return true ; }

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


public Builder doubleMathOp  ( String columnName , MathOp mathOp , double scalar ) { return transform ( new DoubleMathOpTransform ( columnName , mathOp , scalar ) ) ; }

Realizar una operación matemática (agregar, restar, scalar max, etc.) en la doble columna especificada, con un escalar


public boolean isOutputFormat  ( OutputFormat format ) { return this . outputFormat != null && this . outputFormat == format ; }

Indica si los parámetros tienen el formato de salida dado especificado.


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

Re-hacer la última operación de deshecho para un editor de texto enriquecido específico


public static byte [ ] writeLTriad  ( int triad ) { byte b1 , b2 , b3 ; b3 = ( byte ) ( triad & 0xFF ) ; b2 = ( byte ) ( ( triad >> 8 ) & 0xFF ) ; b1 = ( byte ) ( ( triad >> 16 ) & 0xFF ) ; return new byte [ ] { b3 , b2 , b1 } ; }


public void clear  ( ) { isClear = true ; }

Evitar el manejo de todas las entradas de eventos en este marco.


protected TreeItem < WeakRef < Node > > insertIntoMap  ( Node node ) { return insertWeakRefIntoMap ( new WeakRef < Node > ( node ) ) ; }

Cubre el nodo en un débil y lo agrega al mapa.


public void createNewSLD  ( StyledLayerDescriptor newSLD ) { this . sld = newSLD ; }


public boolean isGlobalFindable  ( ) { return true ; }


public static SM_SYSTEM_MESSAGE STR_MSG_EDIT_CHAR_NAME_SUCCESS  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400157 , value0 ) ; }

El nombre del personaje se ha cambiado a% 0.


private static synchronized void populateNamespaceMap  ( ) { if ( namespaceMap == null ) { namespaceMap = new HashMap < String , String > ( ) ; namespaceMap . put ( OGC_NAMESPACE_URL , OGC_NAMESPACE ) ; namespaceMap . put ( SLD_NAMESPACE_URL , SLD_NAMESPACE ) ; } }


protected EventFlusher createEventFlusher  ( ) { return null ; }

Subclases que quieren algo más que la funda de base de datos debe anular este método


public ParameterRef ( Type paramType , int number ) { this . n = number ; this . paramType = paramType ; }

Construye un objeto parametrof del tipo especificado, lo que representa el número de parámetro especificado.


private View fillSpecific  ( int position , int top ) { if ( DEBUG ) Log . d ( "PLA_ListView" , "FillSpecific: " + position + ":" + top ) ; View temp = makeAndAddView ( position , top , true , false ) ; mFirstPosition = position ; final int dividerHeight = mDividerHeight ; if ( ! mStackFromBottom ) { fillUp ( position - 1 , temp . getTop ( ) - dividerHeight ) ; adjustViewsUpOrDown ( ) ; fillDown ( position + 1 , temp . getBottom ( ) + dividerHeight ) ; int childCount = getChildCount ( ) ; if ( childCount > 0 ) { correctTooHigh ( childCount ) ; } } else { fillDown ( position + 1 , temp . getBottom ( ) + dividerHeight ) ; adjustViewsUpOrDown ( ) ; fillUp ( position - 1 , temp . getTop ( ) - dividerHeight ) ; int childCount = getChildCount ( ) ; if ( childCount > 0 ) { correctTooLow ( childCount ) ; } } return null ; }

Ponga un artículo específico en una ubicación específica en la pantalla y luego acumule y baja desde allí.


private Optional < Secret > prepareRenewalSecret  ( ) { val expiryDate = LocalDate . now ( ) . minusDays ( 1 ) ; val annotations = ImmutableMap . of ( EXPIRY_ANNOTATION , expiryDate . toString ( ) ) ; val secretMeta = Mockito . mock ( ObjectMeta . class ) ; when ( secretMeta . getName ( ) ) . thenReturn ( RENEWAL_CERT ) ; when ( secretMeta . getAnnotations ( ) ) . thenReturn ( annotations ) ; val secret = Mockito . mock ( Secret . class ) ; when ( secret . getMetadata ( ) ) . thenReturn ( secretMeta ) ; return Optional . of ( secret ) ; }

Prepare un secreto burlado para un certificado caducado.


public Stream < Entry < Tags , MetricValue > > streamAsMap  ( Tags dfl ) { return values_ . map ( null , null ) . mapCombine ( null , null ) ; }

Recupere los valores en este conjunto, mapeado por sus etiquetas.


public synchronized void startPreview  ( ) { Camera theCamera = camera ; if ( theCamera != null && ! previewing ) { theCamera . startPreview ( ) ; previewing = true ; setFocus ( ) ; } }

Pide al hardware de la cámara que comience a dibujar marcos de vista previa a la pantalla.


Devuelve el tamaño de este objeto CP_INFO.


public static Object decodeToObject  ( String encodedObject ) throws java . io . IOException , java . lang . ClassNotFoundException  { return decodeToObject ( encodedObject , NO_OPTIONS , null ) ; }

Los intentos de decodificar datos base64 y deserializar un objeto Java dentro.Devuelve <tt> null </ tt> si hubo un error.


private void resetLastPrecacheMsIfDeviceRebooted  ( Context context ) { SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( context ) ; long lastElapsedTime = prefs . getLong ( PREF_LAST_ELAPSED_TIME , 0L ) ; long elapsedTime = getElapsedRealtimeOnSystem ( ) ; Editor editor = prefs . edit ( ) ; if ( elapsedTime < lastElapsedTime ) { editor . remove ( PREF_PRECACHE_LAST_TIME ) ; } editor . putLong ( PREF_LAST_ELAPSED_TIME , elapsedTime ) ; editor . apply ( ) ; }

Restablecer pref_precache_last_time si parece que el dispositivo se ha reiniciado.


private void createUI  ( ) { readConfigFile ( null , this , "Stroke.xml" ) ; fillFactory . populate ( this , fieldConfigManager ) ; }


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set labelFillColor=" ) ; Color color = null ; if ( np . peekMatchIgnoreCase ( "null" ) ) np . matchIgnoreCase ( "null" ) ; else color = np . getColor ( ) ; np . matchIgnoreCase ( ";" ) ; if ( getViewer ( ) instanceof GraphView ) { boolean changed = false ; GraphView viewer = ( GraphView ) getViewer ( ) ; for ( Node v : viewer . getSelectedNodes ( ) ) { if ( viewer . isLabelVisible ( v ) ) { viewer . setLabelBackgroundColor ( v , color ) ; changed = true ; } } for ( Edge edge : viewer . getSelectedEdges ( ) ) { if ( viewer . isLabelVisible ( edge ) ) { viewer . setLabelBackgroundColor ( edge , color ) ; changed = true ; } } if ( changed ) { viewer . repaint ( ) ; } } }


public EnvVar ( EnvVar envVar , boolean predefined ) { this . name = envVar . name ; this . type = envVar . type ; this . value = envVar . value ; this . predefined = predefined ; }


private void check  ( ) { if ( descs . length == 0 ) { throw new IllegalArgumentException ( "must have at least one descriptor" ) ; } for ( int i = 0 ; i < descs . length ; i ++ ) { MethodDesc desc = descs [ i ] ; String dname = desc . name ; if ( dname == null ) { if ( i < descs . length - 1 ) { throw new IllegalArgumentException ( "default descriptor must be last" ) ; } } else if ( dname . charAt ( 0 ) == '*' ) { int dlen = dname . length ( ) + 1 ; for ( int j = 0 ; j < i ; j ++ ) { MethodDesc prev = descs [ j ] ; String pname = prev . name ; if ( pname . charAt ( 0 ) == '*' && pname . regionMatches ( 1 , dname , dlen - pname . length ( ) , pname . length ( ) - 1 ) ) { check ( prev , desc ) ; } } } else if ( dname . charAt ( dname . length ( ) - 1 ) == '*' ) { for ( int j = 0 ; j < i ; j ++ ) { MethodDesc prev = descs [ j ] ; String pname = prev . name ; int plen = pname . length ( ) - 1 ; if ( pname . charAt ( plen ) == '*' && pname . regionMatches ( 0 , dname , 0 , plen ) ) { check ( prev , desc ) ; } } } else { for ( int j = 0 ; j < i ; j ++ ) { MethodDesc prev = descs [ j ] ; String pname = prev . name ; int plen = pname . length ( ) - 1 ; if ( pname . charAt ( 0 ) == '*' ) { if ( dname . regionMatches ( dname . length ( ) - plen , pname , 1 , plen ) ) { check ( prev , desc ) ; } } else if ( pname . charAt ( plen ) == '*' ) { if ( dname . regionMatches ( 0 , pname , 0 , plen ) ) { check ( prev , desc ) ; } } else { if ( pname . equals ( dname ) ) { check ( prev , desc ) ; } } } } } }

Lanza ilegalArgumentException si la matriz de descriptores está vacía, o si algún descriptor está precedido por otro descriptor que coincide con al menos los mismos métodos.Arroja nullpointerexception si la matriz o cualquier elemento es nulo.


protected DatabaseGetChairsQuery facultyId  ( int value ) { return unsafeParam ( "faculty_id" , value ) ; }

ID de la facultad de conseguir sillas de


@ SubscribeEvent public void randomRespawn  ( LivingDeathEvent event ) { if ( ! BWConfig . hardcoreSpawn ) return ; if ( ! ( event . getEntity ( ) instanceof EntityPlayerMP ) ) return ; EntityPlayerMP player = ( EntityPlayerMP ) event . getEntity ( ) ; if ( EntityPlayerExt . isSurvival ( player ) ) { int timeSinceDeath = player . getStatFile ( ) . readStat ( StatList . TIME_SINCE_DEATH ) ; int spawnFuzz = timeSinceDeath >= HARDCORE_SPAWN_COOLDOWN ? HARDCORE_SPAWN_RADIUS : 100 ; BlockPos newPos = getRespawnPoint ( player , spawnFuzz ) ; player . setSpawnPoint ( newPos , true ) ; } }

Reaparición aleatoria.Menos intenso cuando hay un corto tiempo desde la muerte.


public AudioAddQuery albumId  ( Integer value ) { return unsafeParam ( "album_id" , value ) ; }


public static void load  ( ) { taxonomyClassification = ClassificationManager . get ( Classification . Taxonomy , true ) ; }

Cargar explícitamente la clasificación de la taxonomía.


public double distSquared  ( double x , double y ) { double distX = this . x - x ; double distY = this . y - y ; return distX * distX + distY * distY ; }


public CmdLineParameters parseCmdOptions  ( String [ ] args ) throws ParseException { CommandLineParser parser = new DefaultParser ( ) ; CommandLine line = parser . parse ( options , args ) ; if ( line . hasOption ( help . getLongOpt ( ) ) ) { HelpFormatter formatter = new HelpFormatter ( ) ; formatter . setWidth ( 120 ) ; formatter . printHelp ( "ttml-to-stl" , options ) ; return null ; } CmdLineParameters result = new CmdLineParameters ( ) ; for ( Option option : line . getOptions ( ) ) { if ( option . equals ( ttmlFile ) ) { TtmlInDescriptor ttmlInDescriptor = new TtmlInDescriptor ( ) ; try { ttmlInDescriptor . setFile ( option . getValue ( 0 ) ) ; ttmlInDescriptor . setOffsetMS ( parseTtmlParameter ( option , 1 , "offsetMS" ) ) ; ttmlInDescriptor . setStartMS ( parseTtmlParameter ( option , 2 , "startMS" ) ) ; ttmlInDescriptor . setEndMS ( parseTtmlParameter ( option , 3 , "endMS" ) ) ; } catch ( IndexOutOfBoundsException e ) { } if ( ttmlInDescriptor . getFile ( ) == null ) { throw new ParseException ( "--ttml parameter must have at least <file> attribute defined." ) ; } result . getTtmlInDescriptors ( ) . add ( ttmlInDescriptor ) ; } } if ( result . getTtmlInDescriptors ( ) . isEmpty ( ) ) { throw new ParseException ( "At least one input TTML file must be provided" ) ; } boolean doOutputTTML = line . hasOption ( outputTtml . getLongOpt ( ) ) ; if ( doOutputTTML ) { result . setDoOuputTtml ( true ) ; result . setOutputTtmlFile ( line . getOptionValue ( outputTtml . getLongOpt ( ) ) ) ; } boolean doOutputScc = line . hasOption ( outputScc . getLongOpt ( ) ) ; if ( doOutputScc ) { result . setDoOutputScc ( true ) ; result . setOutputSccFile ( line . getOptionValue ( outputScc . getLongOpt ( ) ) ) ; } return result ; }

Parse los argumentos de la línea de comandos.


public void revertToDefaultValue  ( ) { List < FieldConfigBase > fieldList = fieldConfigManager . getFields ( null ) ; for ( FieldConfigBase field : fieldList ) { if ( field != null ) { field . revertToDefaultValue ( ) ; } } }


public void clear  ( ) { internalMap . clear ( ) ; }

Elimina todas las entradas de este mapa.


public static String graphToCASCDot  ( CASCGraph gTree ) { StringBuffer sb = new StringBuffer ( ) ; String sConnector ; sb . append ( "graph {\n" ) ; sConnector = "--" ; Iterator iIter = gTree . getEdgeSet ( ) . iterator ( ) ; TreeSet tsDescribed = new TreeSet ( ) ; while ( iIter . hasNext ( ) ) { Edge e = ( Edge ) iIter . next ( ) ; if ( ! tsDescribed . contains ( e . getVertexA ( ) . getLabel ( ) ) ) { tsDescribed . add ( e . getVertexA ( ) . getLabel ( ) ) ; if ( gTree . getVertexType ( e . getVertexA ( ) ) == gTree . NORMAL ) sb . append ( "\t" + e . getVertexA ( ) . getLabel ( ) + " [label=\"" + e . getVertexA ( ) . getLabel ( ) + "\" shape=plaintext fontsize=24]\n" ) ; else sb . append ( "\t" + e . getVertexA ( ) . getLabel ( ) + " [shape=point]\n" ) ; } if ( ! tsDescribed . contains ( e . getVertexB ( ) . getLabel ( ) ) ) { tsDescribed . add ( e . getVertexB ( ) . getLabel ( ) ) ; if ( gTree . getVertexType ( e . getVertexB ( ) ) == gTree . NORMAL ) sb . append ( "\t" + e . getVertexB ( ) . getLabel ( ) + " [label=\"" + e . getVertexB ( ) . getLabel ( ) + "\" shape=plaintext fontsize=24]\n" ) ; else sb . append ( "\t" + e . getVertexB ( ) . getLabel ( ) + " [shape=point]\n" ) ; } if ( e instanceof WeightedEdge ) sb . append ( "\t" + e . getVertexA ( ) + " " + sConnector + " " + e . getVertexB ( ) + " [weight=" + ( int ) ( ( ( WeightedEdge ) e ) . getWeight ( ) * 100 ) + "]\n" ) ; else sb . append ( "\t" + e . getVertexA ( ) + " " + sConnector + " " + e . getVertexB ( ) + "\n" ) ; } sb . append ( "}" ) ; return sb . toString ( ) ; }

Presenta un gráfico a su representación de puntos (consulte Graphviz para obtener más información sobre el formato).El archivo DOT sigue las directivas CASC (STEMMATOLOGY DESAFIERO DE STEMMATOLOGYS).


public boolean isString  ( String key ) { Object val = get ( key ) ; return val instanceof String ; }

Compruebe el tipo de elemento de la sección definido por la tecla.Devolver VERDADERO Este elemento es cadena


@ Override public int read  ( ) throws IOException  { try { beforeRead ( 1 ) ; int c = in . read ( ) ; afterRead ( c != - 1 ? 1 : - 1 ) ; return c ; } catch ( IOException e ) { handleIOException ( e ) ; return - 1 ; } }

Invoca el método <código> lectura () </ código> del delegado.


private synchronized boolean waitResume  ( ) { return true ; }

Espera por curriculum vitae.Si este reproductor de audio está en pausa, espera que el jugador sea reanudado.Devuelve si se reanuda, canceló o se apaga.


public void updateStyle  ( ) { internalRenderStyle ( ) ; }


public static TargetExpression allFromPackageRecursive  ( WorkspacePath localPackage ) { if ( localPackage . relativePath ( ) . isEmpty ( ) ) { return new TargetExpression ( "//...:all" ) ; } return new TargetExpression ( "//" + localPackage . relativePath ( ) + "/...:all" ) ; }

Todos los objetivos en todos los paquetes debajo del camino dado.