private void drawAsCircle  ( Node v , NodeView nv , NodeData data ) { Point2D location = nv . getLocation ( ) ; if ( location == null ) return ; nv . setShape ( NodeView . OVAL_NODE ) ; long num ; if ( scaleBy == ScaleBy . Summarized || v . getOutDegree ( ) == 0 ) num = data . getCountSummarized ( ) ; else num = data . getCountAssigned ( ) ; if ( num > 0 ) { int radius = ( int ) Math . max ( 1.0 , getScaledSize ( num ) ) ; nv . setHeight ( ( 2 * radius ) ) ; nv . setWidth ( ( 2 * radius ) ) ; } else { nv . setWidth ( 1 ) ; nv . setHeight ( 1 ) ; } if ( data . getUpPValue ( ) >= 0 || data . getDownPValue ( ) >= 0 ) { int width = nv . getWidth ( ) ; int height = nv . getHeight ( ) ; Point apt = viewer . trans . w2d ( location ) ; apt . x -= ( width >> 1 ) ; apt . y -= ( height >> 1 ) ; if ( data . getUpPValue ( ) >= 0 ) { gc . setColor ( pvalueColor ) ; Stroke oldStroke = gc . getStroke ( ) ; int leftWidth = getWidthForPValue ( data . getUpPValue ( ) ) ; gc . setStroke ( new BasicStroke ( leftWidth ) ) ; gc . drawArc ( apt . x - ( leftWidth >> 1 ) - 1 , apt . y - ( leftWidth >> 1 ) - 1 , width + leftWidth + 1 , height + leftWidth + 1 , 90 , 180 ) ; gc . setStroke ( oldStroke ) ; } if ( data . getDownPValue ( ) >= 0 ) { gc . setColor ( pvalueColor ) ; Stroke oldStroke = gc . getStroke ( ) ; int rightWidth = getWidthForPValue ( data . getDownPValue ( ) ) ; gc . setStroke ( new BasicStroke ( rightWidth ) ) ; gc . drawArc ( apt . x - ( rightWidth >> 1 ) - 1 , apt . y - ( rightWidth >> 1 ) - 1 , width + rightWidth + 1 , height + rightWidth + 1 , 270 , 180 ) ; gc . setStroke ( oldStroke ) ; } } nv . draw ( gc , viewer . trans ) ; }


@ Override public String toString  ( ) { return "ViterbiCandidate: target " + target + ", unit " + unit + ( bestPath != null ? ", best path score " + bestPath . score : ", no best path" ) ; }


public boolean isDirect  ( ) { return direct ; }

Compruebe si la orientación del hiperplano es directa.


public ServerStateMachine ( ServerState initialState , MissionInit minit ) { super ( initialState ) ; this . currentMissionInit = minit ; initBusses ( ) ; }

Llamado para inicializar una máquina de estado para una solicitud de misión específica. Es probable que el cliente cree un servidor integrado.


public Set < String > toFilenameSet  ( int iSubset ) { HashSet s = new HashSet ( ) ; if ( ( iSubset & FROM_TRAINING_SET ) > 0 ) for ( Object elem : getTrainingSet ( ) ) { CategorizedFileEntry cfeCur = ( CategorizedFileEntry ) elem ; s . add ( cfeCur . getFileName ( ) ) ; } if ( ( iSubset & FROM_TEST_SET ) > 0 ) for ( Object elem : getTestSet ( ) ) { CategorizedFileEntry cfeCur = ( CategorizedFileEntry ) elem ; s . add ( cfeCur . getFileName ( ) ) ; } return s ; }

Obtenga una lista de cadenas de todos los nombres de archivos en el conjunto o sus subconjuntos de capacitación / prueba.


public TimeStamp ( ) { start = System . currentTimeMillis ( ) ; }


public void forceClose  ( ServerInfo server ) { if ( server == null || server . sock == null ) { return ; } try { if ( this . keep_alive ) { try { ProtoCommon . quit ( server . sock ) ; } catch ( IOException ex ) { System . err . println ( "quit error: " + ex . getMessage ( ) ) ; } } server . sock . close ( ) ; server . sock = null ; } catch ( IOException ex ) { System . err . println ( "close socket error: " + ex . getMessage ( ) ) ; } }


public int rankOf  ( double value ) { int ret = 0 ; if ( ! hasCapacity ( ) ) { ret = Arrays . binarySearch ( data , value ) ; if ( ret < 0 ) { return - ret - 1 ; } else { return ret ; } } else { for ( int i = 0 ; i < next ; i ++ ) { if ( data [ i ] < value ) { ret ++ ; } } return ret ; } }

Devuelve el rango ordinal de valor entre los valores muestreados en este búfer.


public void read  ( IInputReader reader , boolean wantReadSequence , boolean wantMatches , float minScore , float maxExpected ) throws IOException { setUId ( reader . getPosition ( ) ) ; if ( pairedReads ) mateUid = reader . readLong ( ) ; String readText = reader . readString ( ) ; if ( readText . length ( ) > 0 ) { int pos = readText . indexOf ( '\n' ) ; if ( pos == - 1 ) { setReadHeader ( readText ) ; setReadWeight ( ReadMagnitudeParser . parseMagnitude ( getReadHeader ( ) ) ) ; setReadSequence ( null ) ; setReadLength ( 0 ) ; } else if ( pos > 0 ) { setReadHeader ( readText . substring ( 0 , pos ) ) ; setReadWeight ( ReadMagnitudeParser . parseMagnitude ( getReadHeader ( ) ) ) ; if ( pos + 1 < readText . length ( ) ) { String sequence = Basic . removeAllWhiteSpaces ( readText . substring ( pos + 1 ) ) ; setReadSequence ( wantReadSequence ? sequence : null ) ; setReadLength ( sequence . length ( ) ) ; } else { setReadSequence ( null ) ; setReadLength ( 0 ) ; } } else { setReadHeader ( null ) ; setReadSequence ( null ) ; setReadLength ( 0 ) ; } } numberOfMatches = reader . readInt ( ) ; if ( wantMatches ) { matchBlocks = new MatchBlockRMA6 [ numberOfMatches ] ; for ( int i = 0 ; i < numberOfMatches ; i ++ ) matchBlocks [ i ] = new MatchBlockRMA6 ( ) ; for ( int i = 0 ; i < numberOfMatches ; i ++ ) { for ( String cName : cNames ) { matchBlocks [ i ] . setId ( cName , reader . readInt ( ) ) ; } } final String matchesText = reader . readString ( ) ; int offset = 0 ; int matchCount = 0 ; final IMatchBlock [ ] copies = new MatchBlockRMA6 [ numberOfMatches ] ; for ( int i = 0 ; i < numberOfMatches ; i ++ ) { int end = matchesText . indexOf ( '\n' , offset + 1 ) ; if ( end == - 1 ) end = matchesText . length ( ) ; final String aLine = matchesText . substring ( offset , end ) ; tmpSAMMatch . parse ( aLine ) ; ( ( MatchBlockRMA6 ) matchBlocks [ matchCount ] ) . setFromSAM ( tmpSAMMatch ) ; offset = end + 1 ; if ( matchBlocks [ matchCount ] . getBitScore ( ) >= minScore && matchBlocks [ matchCount ] . getExpected ( ) <= maxExpected ) copies [ matchCount ++ ] = matchBlocks [ i ] ; } if ( matchCount < matchBlocks . length ) { matchBlocks = new MatchBlockRMA6 [ matchCount ] ; System . arraycopy ( copies , 0 , matchBlocks , 0 , matchCount ) ; } } else { reader . skipBytes ( cNames . length * numberOfMatches * 4 ) ; reader . skipBytes ( Math . abs ( reader . readInt ( ) ) ) ; } }


public final static float calculateAngleFrom  ( float obj1X , float obj1Y , float obj2X , float obj2Y ) { float angleTarget = ( float ) Math . toDegrees ( Math . atan2 ( obj2Y - obj1Y , obj2X - obj1X ) ) ; if ( angleTarget < 0 ) { angleTarget = 360 + angleTarget ; } return angleTarget ; }

Obtenga un ángulo entre la línea definida por dos puntos y el eje horizontal.


public static void generateSampleXml  ( String path ) { generateSampleXml ( new File ( path ) ) ; }

Genera un archivo Chapters.xml de muestra.


private void initView  ( GLSurfaceView glSurfaceView , @ ColorInt int backgroundColor ) { Context context = glSurfaceView . getContext ( ) ; final ActivityManager activityManager = ( ActivityManager ) context . getSystemService ( Context . ACTIVITY_SERVICE ) ; final ConfigurationInfo configurationInfo = activityManager . getDeviceConfigurationInfo ( ) ; final boolean supportsEs2 = configurationInfo . reqGlEsVersion >= 0x20000 ; if ( supportsEs2 ) { glSurfaceView . setEGLContextClientVersion ( 2 ) ; mRenderer = new BezierRenderer ( glSurfaceView , backgroundColor ) ; glSurfaceView . setRenderer ( mRenderer ) ; glSurfaceView . setRenderMode ( GLSurfaceView . RENDERMODE_CONTINUOUSLY ) ; } else { throw new UnsupportedOperationException ( ) ; } }

Configuraciones básicas para componentes


private void abortRequest  ( ContainerRequestContext containerRequestContext , Response . Status status , BouncerAuthorizationStatus reason ) { LOG . debug ( "The user is not authorized in an authorized role " , status ) ; Map < String , Object > responseMap = new LinkedHashMap < > ( ) ; responseMap . put ( "status" , status ) ; responseMap . put ( "reason" , reason . getName ( ) ) ; responseMap . put ( "description" , reason . getDescription ( ) ) ; String json ; try { json = mapper . writer ( ) . withDefaultPrettyPrinter ( ) . writeValueAsString ( responseMap ) ; } catch ( JsonProcessingException e ) { json = e . getMessage ( ) ; } containerRequestContext . abortWith ( Response . status ( status ) . entity ( json ) . build ( ) ) ; }

Abortar la solicitud dada.No se necesita volver a directamente, ya que el usuario ya se asume que es autenticado.


protected void matched  ( Object actualValue , short valueType , ShortList itemValueType , boolean isNil ) { if ( DEBUG_METHODS3 ) { System . out . println ( toString ( ) + "#matched(\"" + actualValue + "\")" ) ; } }

Este método se llama cuando el controlador Xpath coincide con la expresión XPath.Las subclases pueden anular este método para proporcionar un manejo predeterminado en una coincidencia.


@ Nullable public static String extractId  ( @ Nullable String str ) { if ( str == null ) { return null ; } int index = str . lastIndexOf ( "@id/" ) ; if ( index != - 1 ) { return str . substring ( index + 4 ) ; } index = str . lastIndexOf ( "@+id/" ) ; if ( index != - 1 ) { return str . substring ( index + 5 ) ; } return null ; }

Función de utilidad para extraer la identificación.


public DiscoveryEvent ( Object source , Map groups ) { super ( source ) ; this . groups = groups ; this . regs = ( ServiceRegistrar [ ] ) ( groups . keySet ( ) ) . toArray ( new ServiceRegistrar [ groups . size ( ) ] ) ; }

Construya un nuevo objeto <código> DiscoveryEvent </ Code>, con la fuente y el mapeo de registradores a grupos a grupos.El mapeo no debe estar vacío.


public ThetaSketchSetOperationPostAggregation withSize  ( int size ) { return new ThetaSketchSetOperationPostAggregation ( getName ( ) , getFunc ( ) , getFields ( ) , size ) ; }

Obtenga una nueva instancia de esta postagregación con el tamaño dado.


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

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


public void reset  ( ) { schema = null ; geometryType = GeometryTypeEnum . UNKNOWN ; typeName = null ; dataStore = null ; gridCoverageReader = null ; fieldNameMap . clear ( ) ; fieldTypeMap . clear ( ) ; }


protected void sendMembershipList  ( LocalGossipMember me , List < LocalGossipMember > memberList ) { me . setHeartbeat ( System . currentTimeMillis ( ) ) ; LocalGossipMember member = selectPartner ( memberList ) ; if ( member == null ) { LOGGER . debug ( "Send sendMembershipList() is called without action" ) ; return ; } else { LOGGER . debug ( "Send sendMembershipList() is called to " + member . toString ( ) ) ; } try ( DatagramSocket socket = new DatagramSocket ( ) ) { socket . setSoTimeout ( gossipManager . getSettings ( ) . getGossipInterval ( ) ) ; UdpActiveGossipMessage message = new UdpActiveGossipMessage ( ) ; message . setUriFrom ( gossipManager . getMyself ( ) . getUri ( ) . toASCIIString ( ) ) ; message . setUuid ( UUID . randomUUID ( ) . toString ( ) ) ; message . getMembers ( ) . add ( convert ( me ) ) ; for ( LocalGossipMember other : memberList ) { message . getMembers ( ) . add ( convert ( other ) ) ; } byte [ ] json_bytes = MAPPER . writeValueAsString ( message ) . getBytes ( ) ; int packet_length = json_bytes . length ; if ( packet_length < GossipManager . MAX_PACKET_SIZE ) { Response r = gossipCore . send ( message , member . getUri ( ) ) ; if ( r instanceof ActiveGossipOk ) { } else { LOGGER . warn ( "Message " + message + " generated response " + r ) ; } } else { LOGGER . error ( "The length of the to be send message is too large (" + packet_length + " > " + GossipManager . MAX_PACKET_SIZE + ")." ) ; } } catch ( IOException e1 ) { LOGGER . warn ( e1 ) ; } }

Realiza el envío de la lista de miembros, después de haber incrementado nuestro propio latido del corazón.


@ Override public boolean equals  ( Object o ) { if ( o instanceof RepoResult == false ) { return false ; } RepoResult rr = ( RepoResult ) o ; if ( this . getName ( ) . equals ( rr . getName ( ) ) ) { return true ; } return false ; }

Requerido porque usamos esto en el Uniquerepoqueue y en algunos otros lugares para asegurarse de que no agregamos múltiplos del mismo repo.


@ Override public void clear  ( ) { queryName = null ; flag = 0 ; refName = null ; pos = 0 ; mapQuality = 0 ; cigarString = null ; RNext = null ; PNext = 0 ; TLength = 0 ; sequence = null ; quality = null ; optionalFields . clear ( ) ; cigar = null ; }


public void update  ( Object value , boolean forceToDisk ) throws IOException { if ( log == null ) { throw new LogException ( "log file for persistent state is " + "inaccessible, it may have been " + "corrupted or closed" ) ; } try { handler . writeUpdate ( new LogOutputStream ( log ) , value ) ; } catch ( Exception e ) { throw new LogException ( "write update failed" , e ) ; } if ( forceToDisk ) { try { logFD . sync ( ) ; } catch ( SyncFailedException sfe ) { throw new LogException ( "sync log failed" , sfe ) ; } } long entryEnd = log . getFilePointer ( ) ; long updateLen = entryEnd - logBytes - intBytes ; if ( updateLen > Integer . MAX_VALUE ) { throw new LogException ( "maximum record length exceeded" ) ; } log . seek ( logBytes ) ; writeInt ( log , ( int ) updateLen ) ; if ( format == FORMAT_PADDED ) { entryEnd = ( entryEnd + 3 ) & ~ 3L ; } log . seek ( entryEnd ) ; log . write ( zeroBuf ) ; logBytes = entryEnd ; if ( forceToDisk ) { try { logFD . sync ( ) ; } catch ( SyncFailedException sfe ) { throw new LogException ( "sync log failed" , sfe ) ; } } }

Registra esta actualización en el archivo de registro y opcionalmente obliga a la actualización al disco.La actualización se registra llamando a la devolución de llamada de devolución de escritura del cliente.Este método no debe llamarse hasta que el método de recuperación de este registro haya sido invocado (y completado).


@ JsonIgnore public boolean isDeleted  ( ) { return state . equals ( State . DELETED ) ; }


@ Override public void updateSymbol  ( PolygonSymbolizer polygonSymbolizer ) { Map < String , String > options = polygonSymbolizer . getOptions ( ) ; for ( FieldIdEnum key : fieldMap . keySet ( ) ) { internalUpdateSymbol ( options , key , fieldMap . get ( key ) ) ; } }


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


private boolean isSemitonesDelta  ( String string ) { String s = string . trim ( ) ; if ( s . length ( ) < 4 ) return false ; return s . substring ( s . length ( ) - 2 ) . equals ( "st" ) && isNumberDelta ( s . substring ( 0 , s . length ( ) - 2 ) ) ; }

Dile a si la cadena contiene un Delta de Semitones positivo o negativo, es decir, un número de semitonos con una señal obligatoria + o -, como "+ 3.2st" o "-13.2st".


public static String searchRemoveFromCategory  ( HttpServletRequest request , HttpServletResponse response ) { Delegator delegator = ( Delegator ) request . getAttribute ( "delegator" ) ; String productCategoryId = request . getParameter ( "SE_SEARCH_CATEGORY_ID" ) ; String errMsg = null ; try { boolean beganTransaction = TransactionUtil . begin ( DEFAULT_TX_TIMEOUT ) ; try { EntityListIterator eli = getProductSearchResults ( request ) ; if ( eli == null ) { errMsg = UtilProperties . getMessage ( resource , "productsearchevents.no_results_found_probably_error_constraints" , UtilHttp . getLocale ( request ) ) ; request . setAttribute ( "_ERROR_MESSAGE_" , errMsg ) ; return "error" ; } int numRemoved = 0 ; GenericValue searchResultView = null ; while ( ( searchResultView = eli . next ( ) ) != null ) { String productId = searchResultView . getString ( "mainProductId" ) ; numRemoved += delegator . removeByAnd ( "ProductCategoryMember" , UtilMisc . toMap ( "productCategoryId" , productCategoryId , "productId" , productId ) ) ; } eli . close ( ) ; Map < String , String > messageMap = UtilMisc . toMap ( "numRemoved" , Integer . toString ( numRemoved ) ) ; errMsg = UtilProperties . getMessage ( resource , "productsearchevents.removed_x_items" , messageMap , UtilHttp . getLocale ( request ) ) ; request . setAttribute ( "_EVENT_MESSAGE_" , errMsg ) ; } catch ( GenericEntityException e ) { Map < String , String > messageMap = UtilMisc . toMap ( "errSearchResult" , e . toString ( ) ) ; errMsg = UtilProperties . getMessage ( resource , "productsearchevents.error_getting_search_results" , messageMap , UtilHttp . getLocale ( request ) ) ; Debug . logError ( e , errMsg , module ) ; request . setAttribute ( "_ERROR_MESSAGE_" , errMsg ) ; TransactionUtil . rollback ( beganTransaction , errMsg , e ) ; return "error" ; } finally { TransactionUtil . commit ( beganTransaction ) ; } } catch ( GenericTransactionException e ) { Map < String , String > messageMap = UtilMisc . toMap ( "errSearchResult" , e . toString ( ) ) ; errMsg = UtilProperties . getMessage ( resource , "productsearchevents.error_getting_search_results" , messageMap , UtilHttp . getLocale ( request ) ) ; Debug . logError ( e , errMsg , module ) ; request . setAttribute ( "_ERROR_MESSAGE_" , errMsg ) ; return "error" ; } return "success" ; }

Elimina los resultados de una búsqueda en la categoría especificada


private static int [ ] [ ] calculateBlackPoints  ( byte [ ] luminances , int subWidth , int subHeight , int width , int height ) { int [ ] [ ] blackPoints = new int [ subHeight ] [ subWidth ] ; for ( int y = 0 ; y < subHeight ; y ++ ) { int yoffset = y << BLOCK_SIZE_POWER ; int maxYOffset = height - BLOCK_SIZE ; if ( yoffset > maxYOffset ) { yoffset = maxYOffset ; } for ( int x = 0 ; x < subWidth ; x ++ ) { int xoffset = x << BLOCK_SIZE_POWER ; int maxXOffset = width - BLOCK_SIZE ; if ( xoffset > maxXOffset ) { xoffset = maxXOffset ; } int sum = 0 ; int min = 0xFF ; int max = 0 ; for ( int yy = 0 , offset = yoffset * width + xoffset ; yy < BLOCK_SIZE ; yy ++ , offset += width ) { for ( int xx = 0 ; xx < BLOCK_SIZE ; xx ++ ) { int pixel = luminances [ offset + xx ] & 0xFF ; sum += pixel ; if ( pixel < min ) { min = pixel ; } if ( pixel > max ) { max = pixel ; } } if ( max - min > MIN_DYNAMIC_RANGE ) { for ( yy ++ , offset += width ; yy < BLOCK_SIZE ; yy ++ , offset += width ) { for ( int xx = 0 ; xx < BLOCK_SIZE ; xx ++ ) { sum += luminances [ offset + xx ] & 0xFF ; } } } } int average = sum >> ( BLOCK_SIZE_POWER * 2 ) ; if ( max - min <= MIN_DYNAMIC_RANGE ) { average = min / 2 ; if ( y > 0 && x > 0 ) { int averageNeighborBlackPoint = ( blackPoints [ y - 1 ] [ x ] + ( 2 * blackPoints [ y ] [ x - 1 ] ) + blackPoints [ y - 1 ] [ x - 1 ] ) / 4 ; if ( min < averageNeighborBlackPoint ) { average = averageNeighborBlackPoint ; } } } blackPoints [ y ] [ x ] = average ; } } return blackPoints ; }

Calcula un solo punto negro para cada bloque de píxeles y le ahorra.Vea el siguiente hilo para una discusión de este algoritmo: http://groups.google.com/group/zxing/browse_thread/thread/d06efa2c35a7ddc0


private void createSDTtimeDeadbandScheduler  ( final SourceDataTag currentTag ) { if ( currentTag . getAddress ( ) . isTimeDeadbandEnabled ( ) ) { if ( currentTag . getAddress ( ) . getTimeDeadband ( ) > 0 ) { this . equipmentLogger . debug ( "createSDTtimeDeadbandScheduler - creating time-deadband scheduler for tag " + currentTag . getId ( ) ) ; this . sdtTimeDeadbandSchedulers . put ( currentTag . getId ( ) , new SDTTimeDeadbandScheduler ( currentTag , this . processMessageSender , this . equipmentSenderFilterModule , timeDeadbandTimer , this . dataTagValueFilter , this . dynamicTimeDeadbandFilterer ) ) ; } } }

Crea el horario del horario del tiempo para esta etiqueta.


@ Override public Filter createFilter  ( List < Expression > parameterList ) { IsEqualsToImpl filter = null ; if ( ( parameterList == null ) || ( parameterList . size ( ) != 3 ) ) { filter = new IsEqualToExtended ( ) ; } else { LiteralExpressionImpl matchCase = ( LiteralExpressionImpl ) parameterList . get ( 2 ) ; filter = new IsEqualToExtended ( parameterList . get ( 0 ) , parameterList . get ( 1 ) , ( Boolean ) matchCase . getValue ( ) ) ; } return filter ; }


public DocsAddQuery ( VkApiClient client , UserActor actor , int ownerId , int docId ) { super ( client , "docs.add" , AddResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; ownerId ( ownerId ) ; docId ( docId ) ; }

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


public void addChangeListener  ( PropertyChangeListener newListener ) { listener . add ( newListener ) ; }


GSMessageImpl duplicate  ( ) throws JMSException  { GSMapMessageImpl dup = new GSMapMessageImpl ( ) ; copyTo ( dup ) ; return dup ; }


public ComponentCellRenderer ( TreeCellRenderer renderer ) { this . renderer = renderer ; Boolean booleanValue = ( Boolean ) UIManager . get ( "Tree.drawsFocusBorderAroundIcon" ) ; leafRenderer . setFocusPainted ( ( booleanValue != null ) && ( booleanValue . booleanValue ( ) ) ) ; selectionForeground = UIManager . getColor ( "Tree.selectionForeground" ) ; selectionBackground = UIManager . getColor ( "Tree.selectionBackground" ) ; textForeground = UIManager . getColor ( "Tree.textForeground" ) ; textBackground = UIManager . getColor ( "Tree.textBackground" ) ; checkBox = new JCheckBox ( ) ; checkBox . setBackground ( UIManager . getColor ( "Tree.background" ) ) ; checkBox . setBorder ( null ) ; label = new JLabel ( ) ; label . setBackground ( UIManager . getColor ( "Tree.background" ) ) ; label . setBorder ( null ) ; panel = new JPanel ( ) ; panel . setOpaque ( false ) ; panel . add ( checkBox ) ; panel . add ( label ) ; }

Instantánea un nuevo renderizador de células de componente.


public CollectionsObject ( Activity a ) { this . adapter = new CollectionAdapter ( a , new ArrayList < Collection > ( ) ) ; this . service = CollectionService . getService ( ) ; this . requestKey = Mysplash . getInstance ( ) . getUser ( ) ; this . collectionsPage = 0 ; this . refreshing = false ; this . loading = false ; this . over = false ; }


Invocar al desplazarse por ciento sobre el umbral por primera vez


static int currentUserCheck  ( String stmt , int offset ) { int length = offset + _CURRENT_USER . length ; if ( stmt . length ( ) >= length ) { if ( ParseUtil . compare ( stmt , offset , _CURRENT_USER ) ) { if ( stmt . length ( ) > length && stmt . charAt ( length ) != ' ' ) { return OTHER ; } return USER ; } } return OTHER ; }


protected MuleMessage doRequest  ( long timeout ) throws Exception { try { MuleMessage message = null ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Waiting for a message on " + endpoint . getEndpointURI ( ) . getAddress ( ) ) ; } try { long startTime = System . currentTimeMillis ( ) ; long currentTime = System . currentTimeMillis ( ) ; long interval = 100 ; do { OpenSpacesQueueObject entry = ( OpenSpacesQueueObject ) connector . getGigaSpaceObj ( ) . take ( template ) ; if ( entry != null ) { return createMuleMessage ( entry ) ; } Thread . sleep ( interval ) ; currentTime = System . currentTimeMillis ( ) ; } while ( timeout == - 1 || currentTime - startTime < timeout ) ; } catch ( SpaceInterruptedException e ) { } catch ( SpaceClosedException e ) { } if ( message != null ) { if ( message instanceof ThreadSafeAccess ) { ( ( ThreadSafeAccess ) message ) . resetAccessControl ( ) ; } if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Message received: " + message ) ; } return message ; } else { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "No event received after " + timeout + " ms" ) ; } return null ; } } catch ( Exception e ) { throw e ; } }

Hacer una solicitud específica al transporte subyacente.


private static void updateFill  ( URL resourceLocator , Fill fill , List < String > externalImageList ) { if ( fill != null ) { if ( fill . getGraphicFill ( ) != null ) { updateGraphicalSymbol ( resourceLocator , fill . getGraphicFill ( ) . graphicalSymbols ( ) , externalImageList ) ; } } }


public ResourceLazyLoadingScript metaArguments  ( Object ... metaArguments ) { this . metaArguments = metaArguments ; return this ; }


@ Override public IBinder onBind  ( Intent intent ) { return null ; }


public < D > void removeMappedEntityClass  ( Class < D > dtoClass ) { checkNotInitialized ( ) ; mappings . remove ( dtoClass ) ; }

Agrega la clase de entidad dada que se asigna a una DTO con el mapeador proporcionado.


public boolean removeNode  ( Node n ) { throw new UnsupportedOperationException ( "Changes to graph structure not allowed for spanning trees." ) ; }

Operación no compatible.Los árboles que se extienden no deben ser editados.


public static String shellEscape  ( String word ) { int len = word . length ( ) ; if ( len == 0 ) { return "''" ; } for ( int ii = 0 ; ii < len ; ii ++ ) { char c = word . charAt ( ii ) ; if ( ! Character . isLetterOrDigit ( c ) && SAFE_PUNCTUATION . indexOf ( c ) == - 1 ) { return "'" + word . replace ( "'" , "'\\''" ) + "'" ; } } return word ; }

Cita una palabra para que pueda usarse, sin cotizar más, como argumento (o parte de un argumento) en un comando de shell.


public void updateSizes  ( @ ProgressDrawableSize int size ) { final DisplayMetrics metrics = mResources . getDisplayMetrics ( ) ; final float screenDensity = metrics . density ; if ( size == LARGE ) { setSizeParameters ( CIRCLE_DIAMETER_LARGE * screenDensity , CIRCLE_DIAMETER_LARGE * screenDensity , CENTER_RADIUS_LARGE * screenDensity , STROKE_WIDTH_LARGE * screenDensity , ARROW_WIDTH_LARGE * screenDensity , ARROW_HEIGHT_LARGE * screenDensity ) ; } else { setSizeParameters ( CIRCLE_DIAMETER * screenDensity , CIRCLE_DIAMETER * screenDensity , CENTER_RADIUS * screenDensity , STROKE_WIDTH * screenDensity , ARROW_WIDTH * screenDensity , ARROW_HEIGHT * screenDensity ) ; } }

Establezca el tamaño general para el Spinner Progress.Esto actualiza el ancho del radio y el trazo del anillo.


private void writeDataTofile  ( Object [ ] row ) throws CarbonSortKeyAndGroupByException  { if ( mergerParameters . isSortFileCompressionEnabled ( ) || mergerParameters . isPrefetch ( ) ) { if ( entryCount == 0 ) { records = new Object [ totalSize ] [ ] ; records [ entryCount ++ ] = row ; return ; } records [ entryCount ++ ] = row ; if ( entryCount == totalSize ) { this . writer . writeSortTempFile ( records ) ; entryCount = 0 ; records = new Object [ totalSize ] [ ] ; } return ; } try { int fieldIndex = 0 ; char [ ] aggType = mergerParameters . getAggType ( ) ; for ( int counter = 0 ; counter < mergerParameters . getDimColCount ( ) ; counter ++ ) { stream . writeInt ( ( Integer ) RemoveDictionaryUtil . getDimension ( fieldIndex ++ , row ) ) ; } if ( ( mergerParameters . getNoDictionaryCount ( ) + mergerParameters . getComplexDimColCount ( ) ) > 0 ) { stream . write ( RemoveDictionaryUtil . getByteArrayForNoDictionaryCols ( row ) ) ; } fieldIndex = 0 ; for ( int counter = 0 ; counter < mergerParameters . getMeasureColCount ( ) ; counter ++ ) { if ( null != RemoveDictionaryUtil . getMeasure ( fieldIndex , row ) ) { stream . write ( ( byte ) 1 ) ; if ( aggType [ counter ] == CarbonCommonConstants . BYTE_VALUE_MEASURE ) { Double val = ( Double ) RemoveDictionaryUtil . getMeasure ( fieldIndex , row ) ; stream . writeDouble ( val ) ; } else if ( aggType [ counter ] == CarbonCommonConstants . SUM_COUNT_VALUE_MEASURE ) { Double val = ( Double ) RemoveDictionaryUtil . getMeasure ( fieldIndex , row ) ; stream . writeDouble ( val ) ; } else if ( aggType [ counter ] == CarbonCommonConstants . BIG_INT_MEASURE ) { Long val = ( Long ) RemoveDictionaryUtil . getMeasure ( fieldIndex , row ) ; stream . writeLong ( val ) ; } else if ( aggType [ counter ] == CarbonCommonConstants . BIG_DECIMAL_MEASURE ) { byte [ ] bigDecimalInBytes = ( byte [ ] ) RemoveDictionaryUtil . getMeasure ( fieldIndex , row ) ; stream . writeInt ( bigDecimalInBytes . length ) ; stream . write ( bigDecimalInBytes ) ; } } else { stream . write ( ( byte ) 0 ) ; } fieldIndex ++ ; } } catch ( IOException e ) { throw new CarbonSortKeyAndGroupByException ( "Problem while writing the file" , e ) ; } }

Se utilizará por debajo del método para escribir datos para archivar


public SimpleBooleanProperty repeatProperty  ( ) { return this . repeat ; }


public SimpleVectorValueChecker ( final double relativeThreshold , final double absoluteThreshold , final int maxIter ) { super ( relativeThreshold , absoluteThreshold ) ; if ( maxIter <= 0 ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . NUMBER_TOO_SMALL_BOUND_EXCLUDED , maxIter , 0 ) ; } maxIterationCount = maxIter ; }

Construye una instancia con los umbrales de tolerancia específicos y el recuento de iteración.Para realizar solo controles relativos, la tolerancia absoluta debe establecerse en un valor negativo.Para realizar solo verificaciones absolutas, la tolerancia relativa debe establecerse en un valor negativo.


public ColumnQuery addColumn  ( String column ) throws NullPointerException  { this . columns . add ( Objects . requireNonNull ( column , "column is required" ) ) ; return this ; }

Agregar columna Para recuperar o eliminarse, si está vacío, devolverá todos los elementos en una consulta de búsqueda o eliminar todos los elementos en una entidad familiar de columnas.


@ PickTriggerResult public int fromMultipleSources  ( @ NonNull final CharSequence pTitle , @ NonNull final PickSource ... pPickSources ) { if ( pPickSources . length == 0 ) { return PickTriggerResult . TRIGGER_PICK_ERR_NO_PICK_SOURCES ; } final PackageManager packageManager = this . mContext . getPackageManager ( ) ; final ArrayList < Intent > resultIntents = new ArrayList < > ( ) ; for ( final PickSource source : pPickSources ) { switch ( source ) { case CAMERA : { final List < Intent > cameraIntents = new ArrayList < > ( ) ; final File file = this . createCameraImageFile ( ) ; if ( file != null ) { final Uri outputFileUri = this . createCameraImageUri ( file ) ; final Intent cameraIntent = this . prepareCameraIntent ( outputFileUri ) ; final List < ResolveInfo > camList = packageManager . queryIntentActivities ( cameraIntent , 0 ) ; for ( final ResolveInfo resolveInfo : camList ) { final String packageName = resolveInfo . activityInfo . packageName ; final Intent intent = new Intent ( cameraIntent ) ; intent . setComponent ( new ComponentName ( resolveInfo . activityInfo . packageName , resolveInfo . activityInfo . name ) ) ; intent . setPackage ( packageName ) ; intent . putExtra ( MediaStore . EXTRA_OUTPUT , outputFileUri ) ; cameraIntents . add ( intent ) ; } } resultIntents . addAll ( cameraIntents ) ; break ; } case GALLERY : { final List < Intent > galleryIntents = new ArrayList < > ( ) ; final Intent galleryIntent = this . prepareGalleryIntent ( ) ; final List < ResolveInfo > camList = packageManager . queryIntentActivities ( galleryIntent , 0 ) ; for ( final ResolveInfo resolveInfo : camList ) { final String packageName = resolveInfo . activityInfo . packageName ; final Intent intent = new Intent ( galleryIntent ) ; intent . setComponent ( new ComponentName ( resolveInfo . activityInfo . packageName , resolveInfo . activityInfo . name ) ) ; intent . setPackage ( packageName ) ; galleryIntents . add ( intent ) ; } resultIntents . addAll ( galleryIntents ) ; break ; } case DOCUMENTS : { resultIntents . add ( this . prepareDocumentsIntent ( false ) ) ; break ; } } } if ( resultIntents . size ( ) == 0 ) { return PickTriggerResult . TRIGGER_PICK_ERR_NO_ACTIVITY ; } final Intent result = Intent . createChooser ( resultIntents . remove ( resultIntents . size ( ) - 1 ) , pTitle ) ; result . putExtra ( Intent . EXTRA_INITIAL_INTENTS , resultIntents . toArray ( new Parcelable [ resultIntents . size ( ) ] ) ) ; return this . triggerPick ( result , QiPick . REQ_MULTIPLE ) ; }


public Array2DRowFieldMatrix < T > initializeHighOrderDerivatives  ( final T h , final T [ ] t , final T [ ] [ ] y , final T [ ] [ ] yDot ) { final T [ ] [ ] a = MathArrays . buildArray ( field , c1 . length + 1 , c1 . length + 1 ) ; final T [ ] [ ] b = MathArrays . buildArray ( field , c1 . length + 1 , y [ 0 ] . length ) ; final T [ ] y0 = y [ 0 ] ; final T [ ] yDot0 = yDot [ 0 ] ; for ( int i = 1 ; i < y . length ; ++ i ) { final T di = t [ i ] . subtract ( t [ 0 ] ) ; final T ratio = di . divide ( h ) ; T dikM1Ohk = h . reciprocal ( ) ; final T [ ] aI = a [ 2 * i - 2 ] ; final T [ ] aDotI = ( 2 * i - 1 ) < a . length ? a [ 2 * i - 1 ] : null ; for ( int j = 0 ; j < aI . length ; ++ j ) { dikM1Ohk = dikM1Ohk . multiply ( ratio ) ; aI [ j ] = di . multiply ( dikM1Ohk ) ; if ( aDotI != null ) { aDotI [ j ] = dikM1Ohk . multiply ( j + 2 ) ; } } final T [ ] yI = y [ i ] ; final T [ ] yDotI = yDot [ i ] ; final T [ ] bI = b [ 2 * i - 2 ] ; final T [ ] bDotI = ( 2 * i - 1 ) < b . length ? b [ 2 * i - 1 ] : null ; for ( int j = 0 ; j < yI . length ; ++ j ) { bI [ j ] = yI [ j ] . subtract ( y0 [ j ] ) . subtract ( di . multiply ( yDot0 [ j ] ) ) ; if ( bDotI != null ) { bDotI [ j ] = yDotI [ j ] . subtract ( yDot0 [ j ] ) ; } } } final FieldLUDecomposition < T > decomposition = new FieldLUDecomposition < T > ( new Array2DRowFieldMatrix < T > ( a , false ) ) ; final FieldMatrix < T > x = decomposition . getSolver ( ) . solve ( new Array2DRowFieldMatrix < T > ( b , false ) ) ; final Array2DRowFieldMatrix < T > truncatedX = new Array2DRowFieldMatrix < T > ( field , x . getRowDimension ( ) - 1 , x . getColumnDimension ( ) ) ; for ( int i = 0 ; i < truncatedX . getRowDimension ( ) ; ++ i ) { for ( int j = 0 ; j < truncatedX . getColumnDimension ( ) ; ++ j ) { truncatedX . setEntry ( i , j , x . getEntry ( i , j ) ) ; } } return truncatedX ; }

Inicialice los derivados escalados de alta orden en el paso de inicio.


public void closeAllContexts  ( ) { long closeMaxWait = Long . getLong ( SystemProperties . CACHE_CONTEXT_CLOSE_MAX_WAIT , SystemProperties . CACHE_CONTEXT_CLOSE_MAX_WAIT_DEFAULT ) ; long startTime = System . currentTimeMillis ( ) ; long endTime = ( closeMaxWait * 1000 ) + startTime ; _isClosed = true ; synchronized ( _createdContexts ) { for ( Context context : _createdContexts ) { while ( context . isActive ( ) ) { try { Thread . sleep ( 100 ) ; } catch ( InterruptedException ignored ) { } if ( ( 0 < closeMaxWait ) && ( 0 < ( System . currentTimeMillis ( ) - endTime ) ) ) { CacheManager . getLogger ( ) . log ( Level . WARNING , _fullSpaceName + ": not all cache context closed, forced exit, owning thread is " + context . getOwningThreadName ( ) ) ; return ; } } } } }

Cierre todos los contextos gratuitos y ocupados, espera hasta que se devuelvan todos los contextos.


public GroupsIsMemberQueryWithExtended ( VkApiClient client , String groupId ) { super ( client , "groups.isMember" , IsMemberExtendedResponse . class ) ; groupId ( groupId ) ; extended ( true ) ; }


private void printStatementsInBody  ( Body body , java . io . PrintWriter out ) { LabeledUnitPrinter up = new NormalUnitPrinter ( body ) ; Map < Unit , String > stmtToName = up . labels ( ) ; Chain < Unit > units = body . getUnits ( ) ; ExceptionalUnitGraph exceptionalUnitGraph = new soot . toolkits . graph . ExceptionalUnitGraph ( body ) ; LiveLocals sll = new SimpleLiveLocals ( exceptionalUnitGraph ) ; String cleanMethodName = cleanMethod ( body . getMethod ( ) . getName ( ) ) ; Iterator < Unit > unitIt = units . iterator ( ) ; Unit currentStmt = null ; String currentLabel = "default" ; long statementCount = 0 ; long labelCount = 0 ; long labelID = 0 ; Vector < String > useList = new Vector < String > ( ) ; Vector < Vector < Long > > useDataList = new Vector < Vector < Long > > ( ) ; Vector < String > defList = new Vector < String > ( ) ; Vector < Vector < Long > > defDataList = new Vector < Vector < Long > > ( ) ; Vector < Vector < String > > paramData = new Vector < Vector < String > > ( ) ; Vector < XMLLabel > xmlLabelsList = new Vector < XMLLabel > ( ) ; long maxStmtCount = 0 ; XMLNode methodNode = xmlNode . addChild ( "method" , new String [ ] { "name" , "returntype" , "class" } , new String [ ] { cleanMethodName , body . getMethod ( ) . getReturnType ( ) . toString ( ) , body . getMethod ( ) . getDeclaringClass ( ) . getName ( ) . toString ( ) } ) ; String declarationStr = body . getMethod ( ) . getDeclaration ( ) . toString ( ) . trim ( ) ; methodNode . addChild ( "declaration" , toCDATA ( declarationStr ) , new String [ ] { "length" } , new String [ ] { declarationStr . length ( ) + "" } ) ; XMLNode parametersNode = methodNode . addChild ( "parameters" , new String [ ] { "method" } , new String [ ] { cleanMethodName } ) ; XMLNode localsNode = methodNode . addChild ( "locals" ) ; XMLNode labelsNode = methodNode . addChild ( "labels" ) ; XMLNode stmtsNode = methodNode . addChild ( "statements" ) ; XMLLabel xmlLabel = new XMLLabel ( labelCount , cleanMethodName , currentLabel ) ; labelsNode . addChild ( "label" , new String [ ] { "id" , "name" , "method" } , new String [ ] { ( labelCount ++ ) + "" , currentLabel , cleanMethodName } ) ; while ( unitIt . hasNext ( ) ) { currentStmt = ( Unit ) unitIt . next ( ) ; if ( stmtToName . containsKey ( currentStmt ) ) { currentLabel = stmtToName . get ( currentStmt ) . toString ( ) ; xmlLabel . stmtCount = labelID ; xmlLabel . stmtPercentage = new Float ( ( new Float ( labelID ) . floatValue ( ) / new Float ( units . size ( ) ) . intValue ( ) ) * 100.0 ) . longValue ( ) ; if ( xmlLabel . stmtPercentage > maxStmtCount ) maxStmtCount = xmlLabel . stmtPercentage ; xmlLabelsList . addElement ( xmlLabel ) ; xmlLabel = new XMLLabel ( labelCount , cleanMethodName , currentLabel ) ; labelsNode . addChild ( "label" , new String [ ] { "id" , "name" , "method" } , new String [ ] { labelCount + "" , currentLabel , cleanMethodName } ) ; labelCount ++ ; labelID = 0 ; } XMLNode stmtNode = stmtsNode . addChild ( "statement" , new String [ ] { "id" , "label" , "method" , "labelid" } , new String [ ] { statementCount + "" , currentLabel , cleanMethodName , labelID + "" } ) ; XMLNode sootstmtNode = stmtNode . addChild ( "soot_statement" , new String [ ] { "branches" , "fallsthrough" } , new String [ ] { boolToString ( currentStmt . branches ( ) ) , boolToString ( currentStmt . fallsThrough ( ) ) } ) ; int j = 0 ; Iterator < ValueBox > boxIt = currentStmt . getUseBoxes ( ) . iterator ( ) ; while ( boxIt . hasNext ( ) ) { ValueBox box = ( ValueBox ) boxIt . next ( ) ; if ( box . getValue ( ) instanceof Local ) { String local = cleanLocal ( ( ( Local ) box . getValue ( ) ) . toString ( ) ) ; sootstmtNode . addChild ( "uses" , new String [ ] { "id" , "local" , "method" } , new String [ ] { j + "" , local , cleanMethodName } ) ; j ++ ; Vector < Long > tempVector = null ; int useIndex = useList . indexOf ( local ) ; if ( useIndex == - 1 ) { useDataList . addElement ( tempVector ) ; useList . addElement ( local ) ; useIndex = useList . indexOf ( local ) ; } if ( useDataList . size ( ) > useIndex ) { tempVector = useDataList . elementAt ( useIndex ) ; if ( tempVector == null ) { tempVector = new Vector < Long > ( ) ; } tempVector . addElement ( new Long ( statementCount ) ) ; useDataList . setElementAt ( tempVector , useIndex ) ; } } } j = 0 ; boxIt = currentStmt . getDefBoxes ( ) . iterator ( ) ; while ( boxIt . hasNext ( ) ) { ValueBox box = ( ValueBox ) boxIt . next ( ) ; if ( box . getValue ( ) instanceof Local ) { String local = cleanLocal ( ( ( Local ) box . getValue ( ) ) . toString ( ) ) ; sootstmtNode . addChild ( "defines" , new String [ ] { "id" , "local" , "method" } , new String [ ] { j + "" , local , cleanMethodName } ) ; j ++ ; Vector < Long > tempVector = null ; int defIndex = defList . indexOf ( local ) ; if ( defIndex == - 1 ) { defDataList . addElement ( tempVector ) ; defList . addElement ( local ) ; defIndex = defList . indexOf ( local ) ; } if ( defDataList . size ( ) > defIndex ) { tempVector = defDataList . elementAt ( defIndex ) ; if ( tempVector == null ) { tempVector = new Vector < Long > ( ) ; } tempVector . addElement ( new Long ( statementCount ) ) ; defDataList . setElementAt ( tempVector , defIndex ) ; } } } List < Local > liveLocalsIn = sll . getLiveLocalsBefore ( currentStmt ) ; List < Local > liveLocalsOut = sll . getLiveLocalsAfter ( currentStmt ) ; XMLNode livevarsNode = sootstmtNode . addChild ( "livevariables" , new String [ ] { "incount" , "outcount" } , new String [ ] { liveLocalsIn . size ( ) + "" , liveLocalsOut . size ( ) + "" } ) ; for ( int i = 0 ; i < liveLocalsIn . size ( ) ; i ++ ) { livevarsNode . addChild ( "in" , new String [ ] { "id" , "local" , "method" } , new String [ ] { i + "" , cleanLocal ( liveLocalsIn . get ( i ) . toString ( ) ) , cleanMethodName } ) ; } for ( int i = 0 ; i < liveLocalsOut . size ( ) ; i ++ ) { livevarsNode . addChild ( "out" , new String [ ] { "id" , "local" , "method" } , new String [ ] { i + "" , cleanLocal ( liveLocalsOut . get ( i ) . toString ( ) ) , cleanMethodName } ) ; } for ( int i = 0 ; i < body . getMethod ( ) . getParameterTypes ( ) . size ( ) ; i ++ ) { Vector < String > tempVec = new Vector < String > ( ) ; paramData . addElement ( tempVec ) ; } currentStmt . toString ( up ) ; String jimpleStr = up . toString ( ) . trim ( ) ; if ( currentStmt instanceof soot . jimple . IdentityStmt && jimpleStr . indexOf ( "@parameter" ) != - 1 ) { String tempStr = jimpleStr . substring ( jimpleStr . indexOf ( "@parameter" ) + 10 ) ; if ( tempStr . indexOf ( ":" ) != - 1 ) tempStr = tempStr . substring ( 0 , tempStr . indexOf ( ":" ) ) . trim ( ) ; if ( tempStr . indexOf ( " " ) != - 1 ) tempStr = tempStr . substring ( 0 , tempStr . indexOf ( " " ) ) . trim ( ) ; int paramIndex = new Integer ( tempStr ) . intValue ( ) ; Vector < String > tempVec = paramData . elementAt ( paramIndex ) ; if ( tempVec != null ) tempVec . addElement ( Long . toString ( statementCount ) ) ; paramData . setElementAt ( tempVec , paramIndex ) ; } sootstmtNode . addChild ( "jimple" , toCDATA ( jimpleStr ) , new String [ ] { "length" } , new String [ ] { ( jimpleStr . length ( ) + 1 ) + "" } ) ; labelID ++ ; statementCount ++ ; } stmtsNode . addAttribute ( "count" , statementCount + "" ) ; parametersNode . addAttribute ( "count" , body . getMethod ( ) . getParameterCount ( ) + "" ) ; for ( int i = 0 ; i < body . getMethod ( ) . getParameterTypes ( ) . size ( ) ; i ++ ) { XMLNode paramNode = parametersNode . addChild ( "parameter" , new String [ ] { "id" , "type" , "method" , "name" } , new String [ ] { i + "" , body . getMethod ( ) . getParameterTypes ( ) . get ( i ) . toString ( ) , cleanMethodName , "_parameter" + i } ) ; XMLNode sootparamNode = paramNode . addChild ( "soot_parameter" ) ; Vector < String > tempVec = paramData . elementAt ( i ) ; for ( int k = 0 ; k < tempVec . size ( ) ; k ++ ) { sootparamNode . addChild ( "use" , new String [ ] { "id" , "line" , "method" } , new String [ ] { k + "" , String . valueOf ( tempVec . elementAt ( k ) ) + "" , cleanMethodName } ) ; } sootparamNode . addAttribute ( "uses" , tempVec . size ( ) + "" ) ; } xmlLabel . stmtCount = labelID ; xmlLabel . stmtPercentage = new Float ( ( new Float ( labelID ) . floatValue ( ) / new Float ( units . size ( ) ) . floatValue ( ) ) * 100.0 ) . longValue ( ) ; if ( xmlLabel . stmtPercentage > maxStmtCount ) maxStmtCount = xmlLabel . stmtPercentage ; xmlLabelsList . addElement ( xmlLabel ) ; Collection < Local > locals = body . getLocals ( ) ; Iterator < Local > localsIterator = locals . iterator ( ) ; Vector < String > localTypes = new Vector < String > ( ) ; Vector < Vector < XMLNode > > typedLocals = new Vector < Vector < XMLNode > > ( ) ; Vector < Integer > typeCounts = new Vector < Integer > ( ) ; int j = 0 ; int currentType = 0 ; while ( localsIterator . hasNext ( ) ) { int useCount = 0 ; int defineCount = 0 ; Local localData = ( Local ) localsIterator . next ( ) ; String local = cleanLocal ( ( String ) localData . toString ( ) ) ; String localType = localData . getType ( ) . toString ( ) ; if ( ! localTypes . contains ( localType ) ) { localTypes . addElement ( localType ) ; typedLocals . addElement ( new Vector < XMLNode > ( ) ) ; typeCounts . addElement ( new Integer ( 0 ) ) ; } XMLNode localNode = new XMLNode ( "local" , "" , new String [ ] { "id" , "method" , "name" , "type" } , new String [ ] { j + "" , cleanMethodName , local , localType } ) ; XMLNode sootlocalNode = localNode . addChild ( "soot_local" ) ; currentType = 0 ; for ( int k = 0 ; k < localTypes . size ( ) ; k ++ ) { if ( localType . equalsIgnoreCase ( localTypes . elementAt ( k ) ) ) { currentType = k ; Integer tempInt = new Integer ( typeCounts . elementAt ( k ) . intValue ( ) + 1 ) ; typeCounts . setElementAt ( tempInt , k ) ; break ; } } for ( int k = 0 ; k < useList . size ( ) ; k ++ ) { String query = useList . elementAt ( k ) ; if ( query . equalsIgnoreCase ( local ) ) { Vector < Long > tempVector = useDataList . elementAt ( useList . indexOf ( local ) ) ; for ( int i = 0 ; i < tempVector . size ( ) ; i ++ ) { sootlocalNode . addChild ( "use" , new String [ ] { "id" , "line" , "method" } , new String [ ] { i + "" , ( ( Long ) tempVector . elementAt ( i ) ) . toString ( ) , cleanMethodName } ) ; } useCount = tempVector . size ( ) ; break ; } } for ( int k = 0 ; k < defList . size ( ) ; k ++ ) { String query = ( defList . elementAt ( k ) ) ; if ( query . equalsIgnoreCase ( local ) ) { Vector < Long > tempVector = defDataList . elementAt ( defList . indexOf ( local ) ) ; for ( int i = 0 ; i < tempVector . size ( ) ; i ++ ) { sootlocalNode . addChild ( "definition" , new String [ ] { "id" , "line" , "method" } , new String [ ] { i + "" , ( ( Long ) tempVector . elementAt ( i ) ) . toString ( ) , cleanMethodName } ) ; } defineCount = tempVector . size ( ) ; break ; } } sootlocalNode . addAttribute ( "uses" , useCount + "" ) ; sootlocalNode . addAttribute ( "defines" , defineCount + "" ) ; Vector < XMLNode > list = typedLocals . elementAt ( currentType ) ; list . addElement ( localNode ) ; typedLocals . setElementAt ( list , currentType ) ; localsNode . addChild ( ( XMLNode ) localNode . clone ( ) ) ; j ++ ; } localsNode . addAttribute ( "count" , locals . size ( ) + "" ) ; XMLNode typesNode = localsNode . addChild ( "types" , new String [ ] { "count" } , new String [ ] { localTypes . size ( ) + "" } ) ; for ( int i = 0 ; i < localTypes . size ( ) ; i ++ ) { String type = localTypes . elementAt ( i ) ; XMLNode typeNode = typesNode . addChild ( "type" , new String [ ] { "id" , "type" , "count" } , new String [ ] { i + "" , type , typeCounts . elementAt ( i ) + "" } ) ; Vector < XMLNode > list = typedLocals . elementAt ( i ) ; for ( j = 0 ; j < list . size ( ) ; j ++ ) { typeNode . addChild ( list . elementAt ( j ) ) ; } } labelsNode . addAttribute ( "count" , labelCount + "" ) ; XMLNode current = labelsNode . child ; for ( int i = 0 ; i < xmlLabelsList . size ( ) ; i ++ ) { XMLLabel tempLabel = xmlLabelsList . elementAt ( i ) ; tempLabel . stmtPercentage = new Float ( ( new Float ( tempLabel . stmtPercentage ) . floatValue ( ) / new Float ( maxStmtCount ) . floatValue ( ) ) * 100.0 ) . longValue ( ) ; if ( current != null ) { current . addAttribute ( "stmtcount" , tempLabel . stmtCount + "" ) ; current . addAttribute ( "stmtpercentage" , tempLabel . stmtPercentage + "" ) ; current = current . next ; } } statementCount = 0 ; XMLNode exceptionsNode = methodNode . addChild ( "exceptions" ) ; Iterator < Trap > trapIt = body . getTraps ( ) . iterator ( ) ; if ( trapIt . hasNext ( ) ) { while ( trapIt . hasNext ( ) ) { Trap trap = trapIt . next ( ) ; XMLNode catchNode = exceptionsNode . addChild ( "exception" , new String [ ] { "id" , "method" , "type" } , new String [ ] { ( statementCount ++ ) + "" , cleanMethodName , Scene . v ( ) . quotedNameOf ( trap . getException ( ) . getName ( ) ) } ) ; catchNode . addChild ( "begin" , new String [ ] { "label" } , new String [ ] { stmtToName . get ( trap . getBeginUnit ( ) ) . toString ( ) } ) ; catchNode . addChild ( "end" , new String [ ] { "label" } , new String [ ] { stmtToName . get ( trap . getEndUnit ( ) ) . toString ( ) } ) ; catchNode . addChild ( "handler" , new String [ ] { "label" } , new String [ ] { stmtToName . get ( trap . getHandlerUnit ( ) ) . toString ( ) } ) ; } } exceptionsNode . addAttribute ( "count" , exceptionsNode . getNumberOfChildren ( ) + "" ) ; return ; }

Imprime el <código> jimplebody dado </ code> al <código> Printwriter </ Code>.


public static SparseGradient createVariable  ( final int idx , final double value ) { return new SparseGradient ( value , Collections . singletonMap ( idx , 1.0 ) ) ; }

Método de fábrica que crea una variable independiente.


Obtenga la cantidad de elementos almacenados en el mapa.


@ Override public boolean isAutoStartup  ( ) { return false ; }

Se inicia automáticamente en la creación de contexto.


public static File [ ] convertFileCollectionToFileArray  ( Collection < File > files ) { return files . toArray ( new File [ files . size ( ) ] ) ; }

Convierte una colección que contiene java.io.file instanciado en la representación de la matriz.Esto es para tener en cuenta la diferencia entre el archivo.listfiles () y fileutils.listfiles ().


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


public SparseFieldMatrix ( final Field < T > field , final int rowDimension , final int columnDimension ) { super ( field , rowDimension , columnDimension ) ; this . rows = rowDimension ; this . columns = columnDimension ; entries = new OpenIntToFieldHashMap < T > ( field ) ; }

Cree un nuevo SPARSEFIELDMATRIX <T> con las dimensiones de la fila y la columna suministradas.


protected LinkedHashMap < Dimension , LinkedHashSet < DimensionField > > generateDimensionFields  ( @ NotNull List < PathSegment > apiDimensionPathSegments , @ NotNull DimensionDictionary dimensionDictionary ) { return apiDimensionPathSegments . stream ( ) . filter ( null ) . collect ( Collectors . toMap ( null , null , null , null ) ) ; }

Extrae la lista de dimensiones de los segmentos de la ruta de la dimensión de la URL y los parames de matriz "Mostrar" y genera un mapa de dimensión a los campos de dimensión que deben anotarse en la respuesta.<p> Si no se ha establecido el param matrix, devuelve los campos de dimensión predeterminados configurados para la dimensión.


private boolean pop  ( byte mode ) { if ( top < 0 || stack [ top ] != mode ) { return false ; } -- top ; return true ; }

Pop la pila, asegurando que el modo actual coincide con la expectativa


public boolean isCritical  ( ) { return true ; }

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


@ Override public void show  ( long time , boolean animate ) { super . show ( time , animate ) ; mLayoutTabs = null ; setStaticTab ( mTabModelSelector . getCurrentTabId ( ) ) ; }

Inicialice el diseño que se debe mostrar.


public boolean isApplicable  ( ) { return true ; }

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


public JIndentAction ( ) { super ( "JINDENT" ) ; }

Crea nueva jindection.Código inicial aportado por Ser ... en mail.ru


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

La URL a la versión del tamaño de la retina de la imagen de la sombra del icono.Si no se especifica, no se creará una imagen de sombra.Utilizado para dispositivos de pantalla de retina.


public ZWaveThermostatModeCommandClass ( ZWaveNode node , ZWaveController controller , ZWaveEndpoint endpoint ) { super ( node , controller , endpoint ) ; }

Crea una nueva instancia de la clase ZwavetherMostatmodecommandClassClass.


public boolean cancelAlarm  ( Intent scheduledIntent ) { PendingIntent pendingIntent = PendingIntent . getService ( mContext , 0 , scheduledIntent , PendingIntent . FLAG_NO_CREATE ) ; if ( pendingIntent != null ) { AlarmManager am = ( AlarmManager ) mContext . getSystemService ( Context . ALARM_SERVICE ) ; am . cancel ( pendingIntent ) ; pendingIntent . cancel ( ) ; return true ; } else { return false ; } }

Intenta cancelar cualquier alarma establecida con la intención dada.


public static Map updateOrderItemShipGroupAssoc  ( DispatchContext dctx , Map context ) throws GeneralException { Map < String , Object > result = ServiceUtil . returnSuccess ( ) ; String message = null ; Delegator delegator = dctx . getDelegator ( ) ; LocalDispatcher dispatcher = dctx . getDispatcher ( ) ; Locale locale = ( Locale ) context . get ( "locale" ) ; GenericValue userLogin = ( GenericValue ) context . get ( "userLogin" ) ; String orderId = ( String ) context . get ( "orderId" ) ; String orderItemSeqId = ( String ) context . get ( "orderItemSeqId" ) ; String shipGroupSeqId = ( String ) context . get ( "shipGroupSeqId" ) ; BigDecimal quantity = ( BigDecimal ) context . get ( "quantity" ) ; if ( UtilValidate . isEmpty ( quantity ) ) { quantity = BigDecimal . ZERO ; } BigDecimal totalQuantity = ( BigDecimal ) context . get ( "totalQuantity" ) ; if ( UtilValidate . isEmpty ( totalQuantity ) ) { totalQuantity = BigDecimal . ZERO ; } String mainErrorMessage = UtilProperties . getMessage ( resource_error , "OrderUnableToUpdateOrderItemFromOISG" , locale ) ; Integer rowCount = ( Integer ) context . get ( "rowCount" ) ; Integer rowNumber = ( Integer ) context . get ( "rowNumber" ) ; if ( rowNumber == null ) { Long count = EntityQuery . use ( delegator ) . from ( "OrderItemShipGroupAssoc" ) . where ( "orderId" , orderId , "orderItemSeqId" , orderItemSeqId ) . queryCount ( ) ; if ( count != null ) { rowNumber = new Integer ( count . intValue ( ) ) ; result . put ( "rowNumber" , rowNumber ) ; } } GenericValue oisga = EntityQuery . use ( delegator ) . from ( "OrderItemShipGroupAssoc" ) . where ( "orderId" , orderId , "orderItemSeqId" , orderItemSeqId , "shipGroupSeqId" , shipGroupSeqId ) . queryOne ( ) ; if ( UtilValidate . isEmpty ( oisga ) ) { String errMsg = mainErrorMessage + " : Order Item Ship Group Assoc Does Not Exist" ; Debug . logError ( errMsg , module ) ; return ServiceUtil . returnError ( errMsg ) ; } GenericValue oisg = EntityQuery . use ( delegator ) . from ( "OrderItemShipGroup" ) . where ( "orderId" , orderId , "shipGroupSeqId" , shipGroupSeqId ) . queryOne ( ) ; GenericValue orderItem = EntityQuery . use ( delegator ) . from ( "OrderItem" ) . where ( "orderId" , orderId , "orderItemSeqId" , orderItemSeqId ) . queryOne ( ) ; if ( UtilValidate . isEmpty ( orderItem ) ) { String errMsg = mainErrorMessage + UtilProperties . getMessage ( resource_error , "OrderErrorOrderItemNotFound" , UtilMisc . toMap ( "orderId" , orderId , "orderItemSeqId" , orderItemSeqId ) , locale ) ; return ServiceUtil . returnError ( errMsg ) ; } if ( oisg != null ) { if ( ZERO . compareTo ( quantity ) == 0 ) { if ( rowNumber . intValue ( ) == 1 ) { String errMsg = mainErrorMessage + UtilProperties . getMessage ( resource_error , "OrderQuantityAssociatedCannotBeNullOrNegative" , locale ) ; Debug . logError ( errMsg , module ) ; return ServiceUtil . returnError ( errMsg ) ; } try { Map < String , Object > cancelOrderInventoryReservationMap = dctx . makeValidContext ( "cancelOrderInventoryReservation" , "IN" , context ) ; Map < String , Object > localResult = dispatcher . runSync ( "cancelOrderInventoryReservation" , cancelOrderInventoryReservationMap ) ; if ( ServiceUtil . isError ( localResult ) ) return localResult ; Map < String , Object > deleteOrderItemShipGroupAssocMap = dctx . makeValidContext ( "deleteOrderItemShipGroupAssoc" , "IN" , context ) ; localResult = dispatcher . runSync ( "deleteOrderItemShipGroupAssoc" , deleteOrderItemShipGroupAssocMap ) ; if ( ServiceUtil . isError ( localResult ) ) return localResult ; } catch ( GenericServiceException e ) { return ServiceUtil . returnError ( e . toString ( ) ) ; } if ( rowCount != null && rowNumber != null ) { int rowCountInt = rowCount . intValue ( ) ; int rowNumberInt = rowNumber . intValue ( ) ; if ( rowCountInt == rowNumberInt - 1 ) { try { message = validateOrderItemShipGroupAssoc ( delegator , dispatcher , orderItem , totalQuantity , oisga , userLogin , locale ) ; } catch ( Exception e ) { String errMsg = mainErrorMessage + UtilProperties . getMessage ( resource_error , "OrderQuantityAssociatedIsLessThanOrderItemQuantity" , locale ) ; Debug . logError ( errMsg , module ) ; return ServiceUtil . returnError ( errMsg ) ; } } } result . put ( "totalQuantity" , totalQuantity ) ; if ( UtilValidate . isNotEmpty ( message ) ) { result . put ( "successMessage" , message ) ; } return result ; } BigDecimal actualQuantity = totalQuantity . add ( quantity ) ; BigDecimal qty = ( BigDecimal ) orderItem . get ( "quantity" ) ; if ( UtilValidate . isEmpty ( qty ) ) { qty = BigDecimal . ZERO ; } BigDecimal cancelQty = ( BigDecimal ) orderItem . get ( "cancelQuantity" ) ; if ( UtilValidate . isEmpty ( cancelQty ) ) { cancelQty = BigDecimal . ZERO ; } BigDecimal orderItemQuantity = qty . subtract ( cancelQty ) ; if ( actualQuantity . compareTo ( orderItemQuantity ) > 0 ) { String errMsg = mainErrorMessage + UtilProperties . getMessage ( resource_error , "OrderQuantityAssociatedIsBiggerThanOrderItemQuantity" , locale ) ; Debug . logError ( errMsg , module ) ; return ServiceUtil . returnError ( errMsg ) ; } if ( quantity . compareTo ( orderItemQuantity ) > 0 ) { String errMsg = mainErrorMessage + UtilProperties . getMessage ( resource_error , "OrderQuantityAssociatedIsBiggerThanOrderItemQuantity" , locale ) ; Debug . logError ( errMsg , module ) ; return ServiceUtil . returnError ( errMsg ) ; } oisga . set ( "quantity" , quantity ) ; oisga . store ( ) ; GenericValue orderHeader = EntityQuery . use ( delegator ) . from ( "OrderHeader" ) . where ( "orderId" , orderId ) . queryOne ( ) ; if ( UtilValidate . isNotEmpty ( orderHeader ) ) { Map < String , Object > cancelResp = dispatcher . runSync ( "cancelOrderInventoryReservation" , UtilMisc . toMap ( "userLogin" , userLogin , "orderId" , orderId , "orderItemSeqId" , orderItemSeqId , "shipGroupSeqId" , shipGroupSeqId ) ) ; if ( ServiceUtil . isError ( cancelResp ) ) { throw new GeneralException ( ServiceUtil . getErrorMessage ( cancelResp ) ) ; } String productStoreId = orderHeader . getString ( "productStoreId" ) ; String orderTypeId = orderHeader . getString ( "orderTypeId" ) ; List < String > resErrorMessages = new LinkedList < String > ( ) ; if ( Debug . infoOn ( ) ) Debug . logInfo ( "Calling reserve inventory..." , module ) ; reserveInventory ( delegator , dispatcher , userLogin , locale , UtilMisc . toList ( oisga ) , null , UtilMisc . < String , GenericValue > toMap ( orderItemSeqId , orderItem ) , orderTypeId , productStoreId , resErrorMessages ) ; } totalQuantity = totalQuantity . add ( quantity ) ; result . put ( "totalQuantity" , totalQuantity ) ; if ( rowCount != null && rowNumber != null ) { int rowCountInt = rowCount . intValue ( ) ; int rowNumberInt = rowNumber . intValue ( ) ; if ( rowCountInt == rowNumberInt - 1 ) { try { message = validateOrderItemShipGroupAssoc ( delegator , dispatcher , orderItem , totalQuantity , oisga , userLogin , locale ) ; } catch ( GeneralException e ) { String errMsg = mainErrorMessage + UtilProperties . getMessage ( resource_error , "OrderQuantityAssociatedIsLessThanOrderItemQuantity" , locale ) ; Debug . logError ( errMsg , module ) ; return ServiceUtil . returnError ( errMsg ) ; } } if ( UtilValidate . isNotEmpty ( message ) ) { result . put ( "successMessage" , message ) ; } } } else { totalQuantity = totalQuantity . add ( quantity ) ; result . put ( "totalQuantity" , totalQuantity ) ; } return result ; }

Actualizar la asociación ORDESITEM y SHIPGROUP


AppendOnlyStreamReader ( DistributedLogManager dlm )  throws IOException  { this . dlm = dlm ; reader = dlm . getInputStream ( 0 ) ; currentPosition = 0 ; }

Construir un flujo de entrada del libro mayor


public static final void drawWheelJoint  ( GL2 gl , WheelJoint joint ) { Vector2 anchor = joint . getAnchor1 ( ) ; gl . glColor4f ( 0.8f , 0.8f , 0.8f , 1.0f ) ; RenderUtilities . fillCircleFromCenter ( gl , 0.025 , anchor . x , anchor . y ) ; gl . glColor4f ( 0.3f , 0.3f , 0.3f , 1.0f ) ; RenderUtilities . drawCircleFromCenter ( gl , 0.025 , anchor . x , anchor . y , false , false ) ; }

Hace una sesión de rueda al objeto gráfico dado.


Context fork  ( ) { return new Context ( snippets , globals ) ; }

FORKS El contexto dado en uno nuevo con los mismos fragmentos y globales, y los locales vacíos.


public ImageOverlayOptions build  ( ) { ImageOverlayOptions options = new ImageOverlayOptions ( ) ; options . opacity = this . opacity ; options . attribution = this . attribution ; return options ; }

Construye la instancia de ImagenOverLayOportions.


public boolean hasSimilarityMatrix  ( int featureIndex ) { if ( featureIndex >= this . getNumberOfByteFeatures ( ) ) { return false ; } return this . similarityMatrices != null && this . similarityMatrices [ featureIndex ] != null ; }

VERDADERO, si se da un índice de características dado contiene matriz de similitud


public void startFirstSampleTimer  ( ) { }

Inicia el primer temporizador de muestra.


public IntDataType ( ) { this . i = 0 ; }

Construir un intdatatype vacío con valor 0.


static double slowexp  ( final double x , final double result [ ] ) { final double xs [ ] = new double [ 2 ] ; final double ys [ ] = new double [ 2 ] ; final double facts [ ] = new double [ 2 ] ; final double as [ ] = new double [ 2 ] ; split ( x , xs ) ; ys [ 0 ] = ys [ 1 ] = 0.0 ; for ( int i = FACT . length - 1 ; i >= 0 ; i -- ) { splitMult ( xs , ys , as ) ; ys [ 0 ] = as [ 0 ] ; ys [ 1 ] = as [ 1 ] ; split ( FACT [ i ] , as ) ; splitReciprocal ( as , facts ) ; splitAdd ( ys , facts , as ) ; ys [ 0 ] = as [ 0 ] ; ys [ 1 ] = as [ 1 ] ; } if ( result != null ) { result [ 0 ] = ys [ 0 ] ; result [ 1 ] = ys [ 1 ] ; } return ys [ 0 ] + ys [ 1 ] ; }

Para x entre 0 y 1, devuelve EXP (X), usa la precisión extendida


public static String toString  ( InputStream input ) throws IOException { return toString ( input , Charset . defaultCharset ( ) ) ; }

Obtenga los contenidos de un <código> inputstream </ code> como una cadena usando la codificación de caracteres predeterminada de la plataforma.<p> Este método almacena la entrada internamente, por lo que no es necesario usar un <código> tamponputStream </ Code>.


public static String generateActivationKey  ( ) { return RandomStringUtils . randomNumeric ( DEF_COUNT ) ; }


public int readUnsignedShort  ( ) throws JMSException  { initializeReading ( ) ; try { this . dataIn . mark ( Integer . MAX_VALUE ) ; return this . dataIn . readUnsignedShort ( ) ; } catch ( EOFException eof ) { try { this . dataIn . reset ( ) ; } catch ( IOException e ) { JMSException jmsEx = new JMSException ( e . toString ( ) ) ; jmsEx . setLinkedException ( e ) ; throw jmsEx ; } JMSException jmsEx = new MessageEOFException ( eof . toString ( ) ) ; jmsEx . setLinkedException ( eof ) ; throw jmsEx ; } catch ( IOException ioe ) { try { this . dataIn . reset ( ) ; } catch ( IOException e ) { JMSException jmsEx = new JMSException ( e . toString ( ) ) ; jmsEx . setLinkedException ( e ) ; throw jmsEx ; } JMSException jmsEx = new MessageFormatException ( "Format error occurred" + ioe . toString ( ) ) ; jmsEx . setLinkedException ( ioe ) ; throw jmsEx ; } }

Lee un número de 16 bits sin firmar desde el flujo de mensajes de bytes.


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

Construye nueva instancia de <tt> cm_ping </ tt> paquete


@ Override public void addIdRef  ( String name ) { if ( fIdIdrefChecking ) { super . addIdRef ( name ) ; } }

Agrega el IDREF, si la verificación ID / IDREF está habilitada.


public int size  ( ) { return worldMaps == null ? 0 : worldMaps . size ( ) ; }


public void refined__Program_addCompilationUnit  ( CompilationUnit node ) { List < CompilationUnit > list = ( parent == null || state == null ) ? getCompilationUnitListNoTransform ( ) : getCompilationUnitList ( ) ; list . addChild ( node ) ; }

Anexar un elemento a la lista de compilaciones.


private void addDataElementOperandValues  ( DataQueryParams params , Grid grid ) { if ( ! params . getDataElementOperands ( ) . isEmpty ( ) && ! params . isSkipData ( ) ) { DataQueryParams dataSourceParams = DataQueryParams . newBuilder ( params ) . retainDataDimension ( DataDimensionItemType . DATA_ELEMENT_OPERAND ) . withIncludeNumDen ( false ) . build ( ) ; List < DataElementOperand > operands = asTypedList ( dataSourceParams . getDataElementOperands ( ) ) ; List < DimensionalItemObject > dataElements = Lists . newArrayList ( DimensionalObjectUtils . getDataElements ( operands ) ) ; List < DimensionalItemObject > categoryOptionCombos = Lists . newArrayList ( DimensionalObjectUtils . getCategoryOptionCombos ( operands ) ) ; DataQueryParams operandParams = DataQueryParams . newBuilder ( dataSourceParams ) . removeDimension ( DATA_X_DIM_ID ) . addDimension ( new BaseDimensionalObject ( DATA_X_DIM_ID , DimensionType . DATA_X , dataElements ) ) . addDimension ( new BaseDimensionalObject ( CATEGORYOPTIONCOMBO_DIM_ID , DimensionType . CATEGORY_OPTION_COMBO , categoryOptionCombos ) ) . build ( ) ; Map < String , Object > aggregatedDataMap = getAggregatedDataValueMapObjectTyped ( operandParams ) ; aggregatedDataMap = AnalyticsUtils . convertDxToOperand ( aggregatedDataMap ) ; for ( Map . Entry < String , Object > entry : aggregatedDataMap . entrySet ( ) ) { Object value = AnalyticsUtils . getRoundedValueObject ( operandParams , entry . getValue ( ) ) ; grid . addRow ( ) ; grid . addValues ( entry . getKey ( ) . split ( DIMENSION_SEP ) ) ; grid . addValue ( value ) ; if ( params . isIncludeNumDen ( ) ) { grid . addNullValues ( 3 ) ; } } } }

Agrega los valores del operando del elemento de datos a la cuadrícula dada en función de los parámetros de consulta de datos dados.


public InstanceNotExistException ( String s ) { super ( s ) ; }

Construye un <código> instancenExistException </ Code> con el mensaje de detalle especificado.


protected boolean needsToSaveDirtyEditors  ( ) { IResource [ ] selectedResources = getSelectedResources ( ) ; if ( selectedResources != null && selectedResources . length > 0 ) { IEditorReference [ ] editorReferences = PlatformUI . getWorkbench ( ) . getActiveWorkbenchWindow ( ) . getActivePage ( ) . getEditorReferences ( ) ; for ( IEditorReference editorReference : editorReferences ) { if ( editorReference . isDirty ( ) ) { try { IEditorInput editorInput = editorReference . getEditorInput ( ) ; if ( editorInput instanceof IFileEditorInput ) { IFile file = ( ( IFileEditorInput ) editorInput ) . getFile ( ) ; if ( needsToSave ( file , selectedResources ) ) { return true ; } } } catch ( PartInitException e ) { } } } } return false ; }

La mayoría de las acciones de espacio de trabajo SVN modifican el espacio de trabajo y, por lo tanto, deben salvar a los editores sucios.


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

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


private void populateConnectionComboBox  ( ) { connectionComboBox . removeAllItems ( ) ; if ( geoServerConnectionManager != null ) { List < GeoServerConnection > connectionList = geoServerConnectionManager . getConnectionList ( ) ; for ( GeoServerConnection connection : connectionList ) { connectionComboBox . addItem ( connection . getConnectionName ( ) ) ; connectionMap . put ( connection . getConnectionName ( ) , connection ) ; } } }


public GermanLexicon ( ) { this  ( "germanlex" ) ; }

Crea el léxico de CMU predeterminado que es un léxico binario.


public void release  ( ) { releaseEglSurface ( ) ; }

Libera cualquier recursos asociados con la superficie.


public static List < String > splitPath  ( String path ) { return splitPath ( new File ( path ) ) ; }

Dividir un camino en una lista de directorios que terminan con el nombre del archivo


public void saveToXML  ( boolean forceSave ) { Selection selection = getSelection ( ) ; if ( forceSave || ! selection . getModifiedWidgets ( ) . isEmpty ( ) ) { ourLock . lock ( ) ; myModificationCount ++ ; ourLock . unlock ( ) ; if ( DEBUG ) { System . out . println ( "Model Saved to XML -> " + myModificationCount + "(" + selection . getModifiedWidgets ( ) . size ( ) + " elements modified)" ) ; } ConstraintUtilities . saveModelToXML ( myNlModel , true ) ; selection . clearModifiedWidgets ( ) ; requestRender ( ) ; } }


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

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


public MessagesGetDialogsQuery ( VkApiClient client , Actor actor ) { super ( client , "messages.getDialogs" , GetDialogsResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


protected void prepareDataSet  ( ) { dataSet1 = Arrays . asList ( new String [ ] { "a" , "b" , "c" } ) ; dataSet2 = Arrays . asList ( new String [ ] { "d" , "e" , "f" } ) ; dataSet3 = Arrays . asList ( new String [ ] { "b" , "c" , "a" , "d" } ) ; }

Prepare el conjunto de datos requerido para correr los casos de prueba


public void parseCommandLine  ( String [ ] args ) { String language = DEFAULT_LANGUAGE ; String country = DEFAULT_COUNTRY ; if ( args != null ) { for ( String arg : args ) { if ( arg . startsWith ( ARG_STRING ) ) { String locale = arg . substring ( ARG_STRING . length ( ) ) ; String [ ] components = locale . split ( "\\:" ) ; if ( components . length == 2 ) { language = components [ 0 ] ; country = components [ 1 ] ; } } } } currentLocale = new Locale ( language , country ) ; }


@ Override public boolean isChildFragmentResolved  ( ) { if ( fIsShortHand && fShortHandPointer != null && fChildSequence . length <= 0 ) { return fShortHandPointer . isChildFragmentResolved ( ) ; } else { return fWasOnlyEmptyElementFound ? ! fWasOnlyEmptyElementFound : ( fIsFragmentResolved && ( fCurrentChildDepth >= fFoundDepth ) ) ; } }

Devuelve VERDADERO si la expresión XPointer se resuelve a un niño no elemento del fragmento de recursos actual.


public boolean equals  ( Object t ) { return t == this ; }

Dos ArrayType son "iguales" si están parametrados de manera idéntica.(Es decir, tener el mismo tipo de tipo y dimensión.


private FileChannel updateCache  ( String filePath ) { FileChannel fileChannel = fileNameAndStreamCache . get ( filePath ) ; try { if ( null == fileChannel ) { FileInputStream stream = new FileInputStream ( filePath ) ; fileChannel = stream . getChannel ( ) ; fileNameAndStreamCache . put ( filePath , fileChannel ) ; } } catch ( IOException e ) { LOGGER . error ( e , e . getMessage ( ) ) ; } return fileChannel ; }

Este método se utilizará para verificar si la secuencia ya está presente en la memoria caché o no para FilePath, si no está presente, lo cree y luego agregue a la memoria caché, otros sabios obtengan del caché


public boolean isCritical  ( ) { return true ; }

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


public static void copyURLToFile  ( URL source , File destination , int connectionTimeout , int readTimeout ) throws IOException { URLConnection connection = source . openConnection ( ) ; connection . setConnectTimeout ( connectionTimeout ) ; connection . setReadTimeout ( readTimeout ) ; InputStream input = connection . getInputStream ( ) ; copyInputStreamToFile ( input , destination ) ; }

COPIAS BYTES DE LA URL <CÓDIGO> FUENTE </ CODE> A UN ARCHIVO <CÓDIGO> Destino </ código>.Los directorios hasta <código> destino </ código> se crearán si aún no existen.<Código> Destino </ código> se sobrescribirá si ya existe.


@ Override public int fillChunkData  ( byte [ ] data , int offset , int index , KeyStructureInfo keyStructureInfo ) { if ( chunkAttributes . getInvertedIndexes ( ) != null ) { index = chunkAttributes . getInvertedIndexesReverse ( ) [ index ] ; } System . arraycopy ( dataChunk , index * chunkAttributes . getColumnValueSize ( ) , data , offset , chunkAttributes . getColumnValueSize ( ) ) ; return chunkAttributes . getColumnValueSize ( ) ; }

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


public static ServerRequest [ ] fillRequest  ( ServerRequest request , PokemonGo api ) { return new ServerRequest [ ] { request , new ServerRequest ( RequestType . CHECK_CHALLENGE , CheckChallengeMessage . getDefaultInstance ( ) ) , new ServerRequest ( RequestType . GET_HATCHED_EGGS , GetHatchedEggsMessage . getDefaultInstance ( ) ) , new ServerRequest ( RequestType . GET_INVENTORY , CommonRequest . getDefaultGetInventoryMessage ( api ) ) , new ServerRequest ( RequestType . CHECK_AWARDED_BADGES , CheckAwardedBadgesMessage . getDefaultInstance ( ) ) , new ServerRequest ( RequestType . DOWNLOAD_SETTINGS , CommonRequest . getDownloadSettingsMessageRequest ( api ) ) } ; }

La mayoría de las solicitudes del cliente oficial se disparan junto con las siguientes solicitudes.Añadiremos nuestra solicitud en la parte superior de la matriz y lo enviaremos junto con los demás.


public static void main1  ( String [ ] args ) throws Exception { HMMData htsData = new HMMData ( ) ; HTSPStream lf0Pst , mcepPst , strPst , magPst ; boolean [ ] voiced = null ; LEDataInputStream lf0Data , mcepData , strData , magData ; String lf0File , mcepFile , strFile , magFile , outFile , residualFile ; String voiceName , voiceConfig , outDir , voiceExample , hmmTrainDir ; String MaryBase = "/project/mary/marcela/openmary/" ; outDir = "/project/mary/marcela/openmary/tmp/" ; outFile = outDir + "tmp.wav" ; voiceName = "hsmm-ot" ; voiceConfig = "tr-hsmm-ot.config" ; voiceExample = "ot0010" ; hmmTrainDir = "/project/mary/marcela/HMM-voices/turkish/" ; htsData . initHMMData ( voiceName , MaryBase , voiceConfig ) ; htsData . setUseMixExc ( true ) ; htsData . setUseFourierMag ( true ) ; lf0File = hmmTrainDir + "data/lf0/" + voiceExample + ".lf0" ; mcepFile = hmmTrainDir + "data/mgc/" + voiceExample + ".mgc" ; strFile = hmmTrainDir + "data/str/" + voiceExample + ".str" ; magFile = hmmTrainDir + "data/mag/" + voiceExample + ".mag" ; int mcepVsize = htsData . getCartTreeSet ( ) . getMcepVsize ( ) ; int strVsize = htsData . getCartTreeSet ( ) . getStrVsize ( ) ; int lf0Vsize = htsData . getCartTreeSet ( ) . getLf0Stream ( ) ; int magVsize = htsData . getCartTreeSet ( ) . getMagVsize ( ) ; int totalFrame = 0 ; int lf0VoicedFrame = 0 ; float fval ; int i , j ; lf0Data = new LEDataInputStream ( new BufferedInputStream ( new FileInputStream ( lf0File ) ) ) ; try { while ( true ) { fval = lf0Data . readFloat ( ) ; totalFrame ++ ; if ( fval > 0 ) lf0VoicedFrame ++ ; } } catch ( EOFException e ) { } lf0Data . close ( ) ; totalFrame = totalFrame - 2 ; System . out . println ( "Total number of Frames = " + totalFrame ) ; voiced = new boolean [ totalFrame ] ; lf0Pst = new HTSPStream ( lf0Vsize , totalFrame , HMMData . FeatureType . LF0 , 0 ) ; mcepPst = new HTSPStream ( mcepVsize , totalFrame , HMMData . FeatureType . MGC , 0 ) ; strPst = new HTSPStream ( strVsize , totalFrame , HMMData . FeatureType . STR , 0 ) ; magPst = new HTSPStream ( magVsize , totalFrame , HMMData . FeatureType . MAG , 0 ) ; lf0VoicedFrame = 0 ; lf0Data = new LEDataInputStream ( new BufferedInputStream ( new FileInputStream ( lf0File ) ) ) ; for ( i = 0 ; i < totalFrame ; i ++ ) { fval = lf0Data . readFloat ( ) ; if ( fval < 0 ) voiced [ i ] = false ; else { voiced [ i ] = true ; lf0Pst . setPar ( lf0VoicedFrame , 0 , fval ) ; lf0VoicedFrame ++ ; } } lf0Data . close ( ) ; mcepData = new LEDataInputStream ( new BufferedInputStream ( new FileInputStream ( mcepFile ) ) ) ; for ( i = 0 ; i < totalFrame ; i ++ ) { for ( j = 0 ; j < mcepPst . getOrder ( ) ; j ++ ) mcepPst . setPar ( i , j , mcepData . readFloat ( ) ) ; } mcepData . close ( ) ; strData = new LEDataInputStream ( new BufferedInputStream ( new FileInputStream ( strFile ) ) ) ; for ( i = 0 ; i < totalFrame ; i ++ ) { for ( j = 0 ; j < strPst . getOrder ( ) ; j ++ ) strPst . setPar ( i , j , strData . readFloat ( ) ) ; } strData . close ( ) ; magData = new LEDataInputStream ( new BufferedInputStream ( new FileInputStream ( magFile ) ) ) ; for ( i = 0 ; i < totalFrame ; i ++ ) { for ( j = 0 ; j < magPst . getOrder ( ) ; j ++ ) magPst . setPar ( i , j , magData . readFloat ( ) ) ; } magData . close ( ) ; AudioFormat af = getHTSAudioFormat ( htsData ) ; double [ ] audio_double = null ; HTSVocoder par2speech = new HTSVocoder ( ) ; audio_double = par2speech . htsMLSAVocoder ( lf0Pst , mcepPst , strPst , magPst , voiced , htsData , null ) ; long lengthInSamples = ( audio_double . length * 2 ) / ( af . getSampleSizeInBits ( ) / 8 ) ; Log . d ( Mary . LOG , "length in samples=" + lengthInSamples ) ; double MaxSample = MathUtils . getAbsMax ( audio_double ) ; for ( i = 0 ; i < audio_double . length ; i ++ ) audio_double [ i ] = 0.3 * ( audio_double [ i ] / MaxSample ) ; DDSAudioInputStream oais = new DDSAudioInputStream ( new BufferedDoubleDataSource ( audio_double ) , af ) ; File fileOut = new File ( outFile ) ; System . out . println ( "saving to file: " + outFile ) ; if ( AudioSystem . isFileTypeSupported ( AudioFileFormat . Type . WAVE , oais ) ) { AudioSystem . write ( oais , AudioFileFormat . Type . WAVE , fileOut ) ; } System . out . println ( "Calling audioplayer:" ) ; AudioPlayer player = new AudioPlayer ( fileOut ) ; player . start ( ) ; player . join ( ) ; System . out . println ( "audioplayer finished..." ) ; }

Parámetros de lectura independientes de las pruebas de archivos en formato SPTK


private void populateDefaults  ( ) { MqttConfigurationUtils . populateMessageLogDefaults ( configuration . getConnection ( ) . getMessageLog ( ) ) ; populateDaemonDefaults ( configuration . getConnection ( ) . getBackgroundScript ( ) ) ; generateClientIdIfMissing ( configuration . getConnection ( ) ) ; }

Ubica la configuración de la conexión con los valores predeterminados.


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

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


private boolean journalRebuildRequired  ( ) { final int redundantOpCompactThreshold = 2000 ; return redundantOpCount >= redundantOpCompactThreshold && redundantOpCount >= lruEntries . size ( ) ; }

Solo reconstruimos la revista cuando reducirá el tamaño del tamaño de la revista y eliminará al menos 2000 operadores.


public static IOFileFilter magicNumberFileFilter  ( String magicNumber ) { return new MagicNumberFileFilter ( magicNumber ) ; }

Devuelve un filtro que acepta archivos que comienzan con el número mágico provisto.


@ SuppressWarnings ( "unchecked" ) public synchronized < T extends  Output > void output ( @ NotNull T output ) { Class < ? extends Output > outputClass = output . getClass ( )  ; List < OutputSink < ? > > outputSinks = this . outputSinks . get ( outputClass ) ; boolean continuePropagation = true ; for ( int i = outputSinks . size ( ) - 1 ; i >= 0 ; -- i ) { OutputSink < ? > outputSink = outputSinks . get ( i ) ; OutputSink . Propagation propagation = ( ( OutputSink < T > ) outputSink ) . onOutput ( output ) ; continuePropagation = propagation == OutputSink . Propagation . Continue ; if ( ! continuePropagation ) { break ; } } if ( continuePropagation && parentContext != null ) { parentContext . output ( output ) ; } }

Produce la producción enviándola a cualquier lavamanos registrados.


public boolean isFlipped  ( ) { return this . flipped ; }

Devuelve VERDADERO si se intercambiaron los bordes de referencia y los bordes incidentes.


@ POST @ Path ( "/echoParam" ) public void testSameCapitalizationDuplicate  ( @ QueryParam ( "tEstingEChO" ) String param ) { }

Un punto final posterior que toma un parámetro de consulta de lujo y no hace nada.


@ Override public void createRaster  ( Symbolizer symbolizer ) { }


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

Offset se necesita para devolver un subconjunto específico de solicitudes de amistad.


public boolean isAddColumnSupported  ( ) { return true ; }


public CreateException ( ) { super ( ) ; }

Construye un <código> CreateException </ Code> con <Code> Null </ Code> como su mensaje de detalle de error.


public void testApp  ( ) { assertTrue ( true ) ; }


private void digitsDashToWords  ( String tokenVal ) { int tokenLength = tokenVal . length ( ) ; int a = 0 ; for ( int p = 0 ; p <= tokenLength ; p ++ ) { if ( p == tokenLength || tokenVal . charAt ( p ) == '-' ) { String aaa = tokenVal . substring ( a , p ) ; NumberExpander . expandDigits ( aaa , wordRelation ) ; wordRelation . addBreak ( ) ; a = p + 1 ; } } }

Convierta el token de dígito dado con guiones (por ejemplo, 999-999-9999) en elementos (palabra) en la palabraRelación.


@ Override public boolean isApplicableTo  ( Schema sch ) { return true ; }

Devuelve VERDADERO, porque una constante se aplica a cualquier esquema.


public AdsGetAdsQuery campaignIds  ( String value ) { return unsafeParam ( "campaign_ids" , value ) ; }

Filtrar por campañas publicitarias.Array de JSON serializada con identificaciones de campaña.Si el parámetro es 'null', se mostrarán anuncios de todas las campañas.


private MonsterHunterDatabaseHelper ( Context context ) { super ( context , DATABASE_NAME , null , DATABASE_VERSION ) ; myContext = context ; setForcedUpgrade ( ) ; }


public boolean filterOut  ( final SAMRecord first , final SAMRecord second ) { throw new UnsupportedOperationException ( "Paired *Filter not implemented!" ) ; }

Determina si un par de samrecord coincide con este filtro


public void removeRasterImageOutline  ( RasterSymbolizer rasterSymbolizer ) { if ( rasterSymbolizer != null ) { rasterSymbolizer . setImageOutline ( null ) ; } }


public static final SM_SYSTEM_MESSAGE STR_MSG_HOUSING_BID_WIN  ( int address ) { return new SM_SYSTEM_MESSAGE ( 1401267 , address ) ; }


public GettingInvolvedTooltip ( final String textValue , final String logo ) { final HBox tooltipContent = new HBox ( ) ; final Label text = new Label ( textValue ) ; text . getStyleClass ( ) . add ( "small-font" ) ; tooltipContent . getChildren ( ) . addAll ( ImageUtils . createIcon ( logo , 70 ) , text ) ; tooltipContent . setSpacing ( 20 ) ; tooltipContent . setPadding ( new Insets ( 0 , 10 , 0 , 0 ) ) ; setGraphic ( tooltipContent ) ; setAutoHide ( false ) ; setHideOnEscape ( true ) ; setOpacity ( 0.95 ) ; }


public void print  ( ) { for ( int i = 0 ; i < clusters . length ; i ++ ) clusters [ i ] . print ( ) ; }


protected MessagesAddChatUserQuery userId  ( int value ) { return unsafeParam ( "user_id" , value ) ; }


private List < EventQueryParams > groupByQueryItems  ( EventQueryParams params ) { List < EventQueryParams > queries = new ArrayList < > ( ) ; if ( params . isAggregateData ( ) ) { for ( QueryItem item : params . getItemsAndItemFilters ( ) ) { EventQueryParams . Builder query = new EventQueryParams . Builder ( params ) . removeItems ( ) . removeItemProgramIndicators ( ) . withValue ( item . getItem ( ) ) ; if ( item . hasProgram ( ) ) { query . withProgram ( item . getProgram ( ) ) ; } queries . add ( query . build ( ) ) ; } for ( ProgramIndicator programIndicator : params . getItemProgramIndicators ( ) ) { EventQueryParams query = new EventQueryParams . Builder ( params ) . removeItems ( ) . removeItemProgramIndicators ( ) . withProgramIndicator ( programIndicator ) . withProgram ( programIndicator . getProgram ( ) ) . build ( ) ; queries . add ( query ) ; } } else if ( params . isCollapseDataDimensions ( ) && ! params . getItems ( ) . isEmpty ( ) ) { for ( QueryItem item : params . getItems ( ) ) { EventQueryParams . Builder query = new EventQueryParams . Builder ( params ) . removeItems ( ) . addItem ( item ) ; if ( item . hasProgram ( ) ) { query . withProgram ( item . getProgram ( ) ) ; } queries . add ( query . build ( ) ) ; } } else { queries . add ( new EventQueryParams . Builder ( params ) . build ( ) ) ; } return queries ; }

Grupo por artículos Si se deben colapsar elementos de consulta para agregar cada elemento individualmente.


public boolean verify  ( ) { if ( ! keepAlive ) return ( false ) ; boolean verified = false ; try { checkAvailability ( ) ; verified = true ; } catch ( RemoteException e ) { if ( logger . isLoggable ( Level . FINEST ) ) logger . finest ( "RemoteException reaching space, " + "space cannot be reached" ) ; keepAlive = false ; } catch ( Throwable t ) { final int category = ThrowableConstants . retryable ( t ) ; if ( category == ThrowableConstants . BAD_INVOCATION || category == ThrowableConstants . BAD_OBJECT ) { keepAlive = false ; if ( logger . isLoggable ( Level . FINE ) ) logger . log ( Level . FINE , "Unrecoverable Exception invoking " + "IJSpace.ping()" , t ) ; } } return ( verified ) ; }

Se puede llegar a verificar el servicio.Si el servicio no se puede llegar a la devolución FALSO


public static Map < String , Object > updateElectronicTextMethod  ( DispatchContext dctx , Map < String , ? extends Object > context ) { Map < String , Object > result = FastMap . newInstance ( ) ; Delegator delegator = dctx . getDelegator ( ) ; GenericValue electronicText = null ; Locale locale = ( Locale ) context . get ( "locale" ) ; String dataResourceId = ( String ) context . get ( "dataResourceId" ) ; result . put ( "dataResourceId" , dataResourceId ) ; String contentId = ( String ) context . get ( "contentId" ) ; result . put ( "contentId" , contentId ) ; if ( UtilValidate . isEmpty ( dataResourceId ) ) { Debug . logError ( "dataResourceId is null." , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ContentDataResourceIsNull" , locale ) ) ; } String textData = ( String ) context . get ( "textData" ) ; if ( Debug . verboseOn ( ) ) { Debug . logVerbose ( "in updateElectronicText, textData:" + textData , module ) ; } try { electronicText = EntityQuery . use ( delegator ) . from ( "ElectronicText" ) . where ( "dataResourceId" , dataResourceId ) . queryOne ( ) ; if ( electronicText != null ) { electronicText . put ( "textData" , textData ) ; electronicText . store ( ) ; } else { electronicText = delegator . makeValue ( "ElectronicText" ) ; electronicText . put ( "dataResourceId" , dataResourceId ) ; electronicText . put ( "textData" , textData ) ; electronicText . create ( ) ; } } catch ( GenericEntityException e ) { Debug . logWarning ( e , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "ContentElectronicTextNotFound" , locale ) + " " + e . getMessage ( ) ) ; } return result ; }

Debido a que a veces existirá un DataSource, pero no se ha creado ningún dispositivo electrónico, este método creará un electrodicText si no existe.


@ Override public void onWebDriverClosed  ( boolean terminated ) { reset ( ) ; }

Este método es llamado automáticamente por el WOBDRIVER.No debe ser llamado manualmente por el usuario.Se restablece el marco de la pila cuando el controlador web está cerrado.


public static boolean isSimpleName  ( String name ) { return reSimpleName . matcher ( name ) . matches ( ) ; }

Verifica este nombre no usa ningún carácter "exótico".


public static boolean sameProxyClass  ( Object proxy1 , Object proxy2 ) { return ( proxy1 . getClass ( ) == proxy2 . getClass ( ) || ( Proxy . isProxyClass ( proxy2 . getClass ( ) ) && equalInterfaces ( proxy1 , proxy2 ) ) ) ; }

Devuelve VERDADERO si proxy2 es un proxy generado (se supone que proxy1 es una) y las clases de ambos proxies implementan la misma lista de interfaces ordenadas y devuelve False de lo contrario.


private boolean initializeAuthority  ( String p_uriSpec ) { int index = 0 ; int start = 0 ; int end = p_uriSpec . length ( ) ; char testChar = '\0' ; String userinfo = null ; if ( p_uriSpec . indexOf ( '@' , start ) != - 1 ) { while ( index < end ) { testChar = p_uriSpec . charAt ( index ) ; if ( testChar == '@' ) { break ; } index ++ ; } userinfo = p_uriSpec . substring ( start , index ) ; index ++ ; } String host = null ; start = index ; boolean hasPort = false ; if ( index < end ) { if ( p_uriSpec . charAt ( start ) == '[' ) { int bracketIndex = p_uriSpec . indexOf ( ']' , start ) ; index = ( bracketIndex != - 1 ) ? bracketIndex : end ; if ( index + 1 < end && p_uriSpec . charAt ( index + 1 ) == ':' ) { ++ index ; hasPort = true ; } else { index = end ; } } else { int colonIndex = p_uriSpec . lastIndexOf ( ':' , end ) ; index = ( colonIndex > start ) ? colonIndex : end ; hasPort = ( index != end ) ; } } host = p_uriSpec . substring ( start , index ) ; int port = - 1 ; if ( host . length ( ) > 0 ) { if ( hasPort ) { index ++ ; start = index ; while ( index < end ) { index ++ ; } String portStr = p_uriSpec . substring ( start , index ) ; if ( portStr . length ( ) > 0 ) { try { port = Integer . parseInt ( portStr ) ; if ( port == - 1 ) -- port ; } catch ( NumberFormatException nfe ) { port = - 2 ; } } } } if ( isValidServerBasedAuthority ( host , port , userinfo ) ) { m_host = host ; m_port = port ; m_userinfo = userinfo ; return true ; } else if ( isValidRegistryBasedAuthority ( p_uriSpec ) ) { m_regAuthority = p_uriSpec ; return true ; } return false ; }

Inicialice la autoridad (basada en el servidor o registro) para este URI de una especificación de la cadena de URI.


public static ResourcesPoet create  ( File file ) { init ( ) ; try { Document document = sDocumentBuilder . parse ( file ) ; Element resources ; NodeList list = document . getElementsByTagName ( ELEMENT_RESOURCES ) ; if ( list == null || list . getLength ( ) == 0 ) { resources = document . createElement ( ELEMENT_RESOURCES ) ; document . appendChild ( resources ) ; } else { resources = ( Element ) list . item ( 0 ) ; } return create ( document , resources ) ; } catch ( IOException | SAXException e ) { throw new IllegalStateException ( "Unable to parse the resource file you passed. Make sure it is properly formatted" , e ) ; } }

Crea un constructor en la parte superior del archivo XML de los recursos actuales


protected void initSentenceRepresentationFilter  ( ) { if ( SentenceRepresentationFilter == null ) SentenceRepresentationFilter = new IdentityObjectFilter < DocumentNGramGraph > ( ) ; }

Se asegura de que el filtro de representación no sea nulo.


public boolean forEachKey  ( TObjectProcedure < K > procedure ) { return forEach ( procedure ) ; }

Ejecuta <tt> procedimiento </ tt> para cada clave en el mapa.


private boolean isErrorResponse  ( final SoapMessage msg ) { final Map < String , List < String > > headers = ( Map < String , List < String > > ) msg . get ( Message . PROTOCOL_HEADERS ) ; final List < String > strings = headers . get ( "X-Backside-Transport" ) ; for ( final String header : strings ) { final List < String > split = Arrays . asList ( header . split ( " " ) ) ; if ( split . contains ( "FAIL" ) ) { return true ; } } return false ; }

Compruebe, si la respuesta contiene encabezados de error.TODO: ¿Hay una mejor solución?


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


public static String toString  ( Object object , String tagName ) throws JSONException { StringBuilder sb = new StringBuilder ( ) ; int i ; JSONArray ja ; JSONObject jo ; String key ; Iterator < String > keys ; int length ; String string ; Object value ; if ( object instanceof JSONObject ) { if ( tagName != null ) { sb . append ( '<' ) ; sb . append ( tagName ) ; sb . append ( '>' ) ; } jo = ( JSONObject ) object ; keys = jo . keys ( ) ; while ( keys . hasNext ( ) ) { key = keys . next ( ) ; value = jo . opt ( key ) ; if ( value == null ) { value = "" ; } string = value instanceof String ? ( String ) value : null ; if ( "content" . equals ( key ) ) { if ( value instanceof JSONArray ) { ja = ( JSONArray ) value ; length = ja . length ( ) ; for ( i = 0 ; i < length ; i += 1 ) { if ( i > 0 ) { sb . append ( '\n' ) ; } sb . append ( escape ( ja . get ( i ) . toString ( ) ) ) ; } } else { sb . append ( escape ( value . toString ( ) ) ) ; } } else if ( value instanceof JSONArray ) { ja = ( JSONArray ) value ; length = ja . length ( ) ; for ( i = 0 ; i < length ; i += 1 ) { value = ja . get ( i ) ; if ( value instanceof JSONArray ) { sb . append ( '<' ) ; sb . append ( key ) ; sb . append ( '>' ) ; sb . append ( toString ( value ) ) ; sb . append ( "</" ) ; sb . append ( key ) ; sb . append ( '>' ) ; } else { sb . append ( toString ( value , key ) ) ; } } } else if ( "" . equals ( value ) ) { sb . append ( '<' ) ; sb . append ( key ) ; sb . append ( "/>" ) ; } else { sb . append ( toString ( value , key ) ) ; } } if ( tagName != null ) { sb . append ( "</" ) ; sb . append ( tagName ) ; sb . append ( '>' ) ; } return sb . toString ( ) ; } else { if ( object . getClass ( ) . isArray ( ) ) { object = new JSONArray ( object ) ; } if ( object instanceof JSONArray ) { ja = ( JSONArray ) object ; length = ja . length ( ) ; for ( i = 0 ; i < length ; i += 1 ) { sb . append ( toString ( ja . opt ( i ) , tagName == null ? "array" : tagName ) ) ; } return sb . toString ( ) ; } else { string = ( object == null ) ? "null" : escape ( object . toString ( ) ) ; return ( tagName == null ) ? "\"" + string + "\"" : ( string . length ( ) == 0 ) ? "<" + tagName + "/>" : "<" + tagName + ">" + string + "</" + tagName + ">" ; } } }

Convierta un JSONOBJECT en una cadena XML de elemento y elemento bien formado.


public boolean isCollapsed  ( ) { return collapsed ; }

Devuelve verdadero si se colapsan entradas similares


public boolean lazy_pts  ( ) { return soot . PhaseOptions . getBoolean ( options , "lazy-pts" ) ; }

Cree puntos perezosos a los conjuntos: cree puntos perezosos a los conjuntos que crean información de contexto solo cuando sea necesario. Cuando esta opción está deshabilitada, la información de contexto se calcula para cada consulta al método REACHINGOBJECTS.Cuando está habilitado, una llamada para llegar a los objetivos de retención devuelve un objeto envoltorio perezoso que contiene un punto-insensible a contexto, para configurar.Este conjunto se refina luego automáticamente con información de contexto cuando sea necesario, es decir, cuando intentamos determinar la intersección con otros puntos, para configurar y esta intersección parece no vacía.


public int addDecoration  ( int pieceIndex , Decoration decoration , boolean updateSkills ) { Log . v ( "ASB" , "Adding decoration at piece index " + pieceIndex ) ; if ( getAvailableSlots ( pieceIndex ) >= decoration . getNumSlots ( ) ) { int i = 0 ; while ( decorations [ pieceIndex ] [ i ] != null ) { i ++ ; } decorations [ pieceIndex ] [ i ] = decoration ; if ( decoration . getNumSlots ( ) == 2 ) { decorations [ pieceIndex ] [ i + 1 ] = dummyDecoration ; } else if ( decoration . getNumSlots ( ) == 3 ) { decorations [ pieceIndex ] [ i + 1 ] = dummyDecoration ; decorations [ pieceIndex ] [ i + 2 ] = dummyDecoration ; } if ( updateSkills ) { updateSkillTreePointsSets ( ) ; } return i ; } else { Log . e ( "ASB" , "Cannot add that decoration!" ) ; return - 1 ; } }

Intenta agregar una decoración a la pieza de armadura especificada.


static void commitGuideline  ( NlModel model , @ NotNull AttributesTransaction component , @ NotNull Guideline guideline ) { int behaviour = guideline . getRelativeBehaviour ( ) ; WidgetCompanion companion = ( WidgetCompanion ) guideline . getCompanionWidget ( ) ; component . setAttribute ( SdkConstants . SHERPA_URI , SdkConstants . LAYOUT_CONSTRAINT_GUIDE_BEGIN , null ) ; component . setAttribute ( SdkConstants . SHERPA_URI , SdkConstants . LAYOUT_CONSTRAINT_GUIDE_END , null ) ; component . setAttribute ( SdkConstants . SHERPA_URI , SdkConstants . LAYOUT_CONSTRAINT_GUIDE_PERCENT , null ) ; component . setAttribute ( SdkConstants . SHERPA_URI , SdkConstants . LAYOUT_CONSTRAINT_DEPRECATED_GUIDE_PERCENT , null ) ; String previousValue = companion . getWidgetProperties ( ) . getGuidelineAttribute ( ) ; if ( previousValue != null && ! previousValue . startsWith ( "@" ) ) { previousValue = null ; } String value = previousValue ; if ( behaviour == Guideline . RELATIVE_PERCENT ) { boolean useFloat = useGuidelineFloat ( model ) ; if ( value == null ) { float percent = guideline . getRelativePercent ( ) ; if ( useFloat ) { value = String . valueOf ( percent ) ; } else { value = String . valueOf ( ( int ) ( percent * 100 ) ) ; } } String percentAttribute = useFloat ? SdkConstants . LAYOUT_CONSTRAINT_GUIDE_PERCENT : SdkConstants . LAYOUT_CONSTRAINT_DEPRECATED_GUIDE_PERCENT ; component . setAttribute ( SdkConstants . SHERPA_URI , percentAttribute , value ) ; } else if ( behaviour == Guideline . RELATIVE_BEGIN ) { if ( value == null ) { value = String . format ( SdkConstants . VALUE_N_DP , guideline . getRelativeBegin ( ) ) ; } component . setAttribute ( SdkConstants . SHERPA_URI , SdkConstants . LAYOUT_CONSTRAINT_GUIDE_BEGIN , value ) ; } else if ( behaviour == Guideline . RELATIVE_END ) { if ( value == null ) { value = String . format ( SdkConstants . VALUE_N_DP , guideline . getRelativeEnd ( ) ) ; } component . setAttribute ( SdkConstants . SHERPA_URI , SdkConstants . LAYOUT_CONSTRAINT_GUIDE_END , value ) ; } }

Actualice el componente con los valores de un widget de guía


private void updateFields  ( TimePeriodPanel panel ) { if ( panel == null ) { return ; } if ( panel . areFieldsConfigured ( ) ) { boolean dateEnabled = panel . dateRadioButton . isSelected ( ) ; panel . datePicker . setEnabled ( dateEnabled ) ; panel . timePicker . setEnabled ( dateEnabled ) ; if ( panel . durationRadioButton . isSelected ( ) ) { panel . dateCheckbox . setEnabled ( true ) ; boolean durationDateEnabled = panel . dateCheckbox . isSelected ( ) ; panel . yearSpinner . setEnabled ( durationDateEnabled ) ; panel . monthSpinner . setEnabled ( durationDateEnabled ) ; panel . daySpinner . setEnabled ( durationDateEnabled ) ; panel . timeCheckbox . setEnabled ( true ) ; boolean durationTimeEnabled = panel . timeCheckbox . isSelected ( ) ; panel . hourSpinner . setEnabled ( durationTimeEnabled ) ; panel . minuteSpinner . setEnabled ( durationTimeEnabled ) ; panel . secondSpinner . setEnabled ( durationTimeEnabled ) ; } else { panel . dateCheckbox . setEnabled ( false ) ; panel . yearSpinner . setEnabled ( false ) ; panel . monthSpinner . setEnabled ( false ) ; panel . daySpinner . setEnabled ( false ) ; panel . timeCheckbox . setEnabled ( false ) ; panel . hourSpinner . setEnabled ( false ) ; panel . minuteSpinner . setEnabled ( false ) ; panel . secondSpinner . setEnabled ( false ) ; } } }