public void renderNormals  ( GL2 gl ) { gl . glColor4fv ( Preferences . getBodyNormalColor ( ) , 0 ) ; int fSize = this . getFixtureCount ( ) ; for ( int i = 0 ; i < fSize ; i ++ ) { BodyFixture bf = this . getFixture ( i ) ; Convex convex = bf . getShape ( ) ; if ( convex instanceof Wound ) { Wound w = ( Wound ) convex ; Vector2 [ ] vertices = w . getVertices ( ) ; Vector2 [ ] normals = w . getNormals ( ) ; int size = normals . length ; Vector2 p1 , p2 , n ; Vector2 mid = new Vector2 ( ) ; for ( int j = 0 ; j < size ; j ++ ) { p1 = vertices [ j ] ; p2 = vertices [ ( j + 1 == size ) ? 0 : j + 1 ] ; n = normals [ j ] ; mid . set ( p2 ) . subtract ( p1 ) . multiply ( 0.5 ) . add ( p1 ) ; gl . glBegin ( GL . GL_LINES ) ; gl . glVertex2d ( mid . x , mid . y ) ; gl . glVertex2d ( mid . x + n . x * 0.1 , mid . y + n . y * 0.1 ) ; gl . glEnd ( ) ; } } } }

Hace que las normales de borde de cualquier formas de heridas en este cuerpo.


private BSPTree < S > recurseComplement  ( final BSPTree < S > node , final Map < BSPTree < S > , BSPTree < S > > map ) { final BSPTree < S > transformedNode ; if ( node . getCut ( ) == null ) { transformedNode = new BSPTree < S > ( ( ( Boolean ) node . getAttribute ( ) ) ? Boolean . FALSE : Boolean . TRUE ) ; } else { @ SuppressWarnings ( "unchecked" ) BoundaryAttribute < S > attribute = ( BoundaryAttribute < S > ) node . getAttribute ( ) ; if ( attribute != null ) { final SubHyperplane < S > plusOutside = ( attribute . getPlusInside ( ) == null ) ? null : attribute . getPlusInside ( ) . copySelf ( ) ; final SubHyperplane < S > plusInside = ( attribute . getPlusOutside ( ) == null ) ? null : attribute . getPlusOutside ( ) . copySelf ( ) ; attribute = new BoundaryAttribute < S > ( plusOutside , plusInside , new NodesSet < S > ( ) ) ; } transformedNode = new BSPTree < S > ( node . getCut ( ) . copySelf ( ) , recurseComplement ( node . getPlus ( ) , map ) , recurseComplement ( node . getMinus ( ) , map ) , attribute ) ; } map . put ( node , transformedNode ) ; return transformedNode ; }

Construya recursivamente el complemento de un árbol BSP.


protected void addFieldTranslation  ( String esriField , String newField ) { translationMap . put ( esriField , newField ) ; }


private boolean updateAnchorFromChildren  ( RecyclerView . State state , AnchorInfo anchorInfo ) { if ( getChildCount ( ) == 0 ) { return false ; } View focused = getFocusedChild ( ) ; if ( focused != null && anchorInfo . assignFromViewIfValid ( focused , state ) ) { if ( DEBUG ) { Log . d ( TAG , "decided anchor child from focused view" ) ; } return true ; } if ( mLastStackFromEnd != mStackFromEnd ) { return false ; } View referenceChild = anchorInfo . mLayoutFromEnd ? findReferenceChildClosestToEnd ( state ) : findReferenceChildClosestToStart ( state ) ; if ( referenceChild != null ) { anchorInfo . assignFromView ( referenceChild ) ; if ( ! state . isPreLayout ( ) && supportsPredictiveItemAnimations ( ) ) { final boolean notVisible = mOrientationHelper . getDecoratedStart ( referenceChild ) >= mOrientationHelper . getEndAfterPadding ( ) || mOrientationHelper . getDecoratedEnd ( referenceChild ) < mOrientationHelper . getStartAfterPadding ( ) ; if ( notVisible ) { anchorInfo . mCoordinate = anchorInfo . mLayoutFromEnd ? mOrientationHelper . getEndAfterPadding ( ) : mOrientationHelper . getStartAfterPadding ( ) ; } } return true ; } return false ; }

Encuentra un niño de ancla de las vistas existentes.La mayoría de las veces, esta es la vista más cercana al inicio o finalización que tiene una posición válida (por ejemplo, no eliminada).<P> Si un niño tiene enfocado, se le da prioridad.


public static VersionNumber fromString  ( String str ) { if ( str == null ) { return null ; } String [ ] pieces = str . split ( "\\." ) ; if ( pieces . length != 4 ) { return null ; } VersionNumber version = new VersionNumber ( ) ; try { for ( int i = 0 ; i < 4 ; ++ i ) { version . mVersion [ i ] = Integer . parseInt ( pieces [ i ] ) ; } } catch ( NumberFormatException e ) { return null ; } return version ; }

Analiza los números de versión de una cadena de versión dada.


public ViewActionMenu ( @ NotNull String menuName , @ Nullable Icon icon , @ NotNull List < ViewAction > actions ) { this ( - 1 , menuName , icon , actions ) ; }


public Crop withAspect  ( int x , int y ) { cropIntent . putExtra ( Extra . ASPECT_X , x ) ; cropIntent . putExtra ( Extra . ASPECT_Y , y ) ; return this ; }

Establezca la relación de aspecto fijo para el área de cultivo


public ProtocolReactor findProtocolReactor  ( IapMessageFields messageFields ) { for ( int i = 0 ; i < protocolReactors . length ; i ++ ) { if ( messageFields . equalsSemanticProtocolId ( protocolReactors [ i ] . protocolId ) && messageFields . equalsSemanticProtocolVersion ( protocolReactors [ i ] . protocolVersion ) ) { return protocolReactors [ i ] ; } } return null ; }

Encuentra el controlador de mensajes que coincide con el tipo de mensaje dado.Si no se encuentra ningún controlador de mensajes para el tipo de mensaje dado, se devuelve NULL.


XSAttributeDecl traverseNamedAttr  ( Element attrDecl , Object [ ] attrValues , XSDocumentInfo schemaDoc , SchemaGrammar grammar , boolean isGlobal , XSComplexTypeDecl enclosingCT ) { String defaultAtt = ( String ) attrValues [ XSAttributeChecker . ATTIDX_DEFAULT ] ; String fixedAtt = ( String ) attrValues [ XSAttributeChecker . ATTIDX_FIXED ] ; XInt formAtt = ( XInt ) attrValues [ XSAttributeChecker . ATTIDX_FORM ] ; String nameAtt = ( String ) attrValues [ XSAttributeChecker . ATTIDX_NAME ] ; QName typeAtt = ( QName ) attrValues [ XSAttributeChecker . ATTIDX_TYPE ] ; XSAttributeDecl attribute = null ; if ( fSchemaHandler . fDeclPool != null ) { attribute = fSchemaHandler . fDeclPool . getAttributeDecl ( ) ; } else { attribute = new XSAttributeDecl ( ) ; } if ( nameAtt != null ) nameAtt = fSymbolTable . addSymbol ( nameAtt ) ; String tnsAtt = null ; XSComplexTypeDecl enclCT = null ; short scope = XSAttributeDecl . SCOPE_ABSENT ; if ( isGlobal ) { tnsAtt = schemaDoc . fTargetNamespace ; scope = XSAttributeDecl . SCOPE_GLOBAL ; } else { if ( enclosingCT != null ) { enclCT = enclosingCT ; scope = XSAttributeDecl . SCOPE_LOCAL ; } if ( formAtt != null ) { if ( formAtt . intValue ( ) == SchemaSymbols . FORM_QUALIFIED ) tnsAtt = schemaDoc . fTargetNamespace ; } else if ( schemaDoc . fAreLocalAttributesQualified ) { tnsAtt = schemaDoc . fTargetNamespace ; } } ValidatedInfo attDefault = null ; short constraintType = XSConstants . VC_NONE ; if ( isGlobal ) { if ( fixedAtt != null ) { attDefault = new ValidatedInfo ( ) ; attDefault . normalizedValue = fixedAtt ; constraintType = XSConstants . VC_FIXED ; } else if ( defaultAtt != null ) { attDefault = new ValidatedInfo ( ) ; attDefault . normalizedValue = defaultAtt ; constraintType = XSConstants . VC_DEFAULT ; } } Element child = DOMUtil . getFirstChildElement ( attrDecl ) ; XSAnnotationImpl annotation = null ; if ( child != null && DOMUtil . getLocalName ( child ) . equals ( SchemaSymbols . ELT_ANNOTATION ) ) { annotation = traverseAnnotationDecl ( child , attrValues , false , schemaDoc ) ; child = DOMUtil . getNextSiblingElement ( child ) ; } else { String text = DOMUtil . getSyntheticAnnotation ( attrDecl ) ; if ( text != null ) { annotation = traverseSyntheticAnnotation ( attrDecl , text , attrValues , false , schemaDoc ) ; } } XSSimpleType attrType = null ; boolean haveAnonType = false ; if ( child != null ) { String childName = DOMUtil . getLocalName ( child ) ; if ( childName . equals ( SchemaSymbols . ELT_SIMPLETYPE ) ) { attrType = fSchemaHandler . fSimpleTypeTraverser . traverseLocal ( child , schemaDoc , grammar ) ; haveAnonType = true ; child = DOMUtil . getNextSiblingElement ( child ) ; } } if ( attrType == null && typeAtt != null ) { XSTypeDefinition type = ( XSTypeDefinition ) fSchemaHandler . getGlobalDecl ( schemaDoc , XSDHandler . TYPEDECL_TYPE , typeAtt , attrDecl ) ; if ( type != null && type . getTypeCategory ( ) == XSTypeDefinition . SIMPLE_TYPE ) { attrType = ( XSSimpleType ) type ; } else { reportSchemaError ( "src-resolve" , new Object [ ] { typeAtt . rawname , "simpleType definition" } , attrDecl ) ; if ( type == null ) { attribute . fUnresolvedTypeName = typeAtt ; } } } if ( attrType == null ) { attrType = SchemaGrammar . fAnySimpleType ; } XSObjectList annotations ; if ( annotation != null ) { annotations = new XSObjectListImpl ( ) ; ( ( XSObjectListImpl ) annotations ) . addXSObject ( annotation ) ; } else { annotations = XSObjectListImpl . EMPTY_LIST ; } attribute . setValues ( nameAtt , tnsAtt , attrType , constraintType , scope , attDefault , enclCT , annotations ) ; if ( nameAtt == null ) { if ( isGlobal ) reportSchemaError ( "s4s-att-must-appear" , new Object [ ] { SchemaSymbols . ELT_ATTRIBUTE , SchemaSymbols . ATT_NAME } , attrDecl ) ; else reportSchemaError ( "src-attribute.3.1" , null , attrDecl ) ; nameAtt = NO_NAME ; } if ( child != null ) { reportSchemaError ( "s4s-elt-must-match.1" , new Object [ ] { nameAtt , "(annotation?, (simpleType?))" , DOMUtil . getLocalName ( child ) } , child ) ; } if ( defaultAtt != null && fixedAtt != null ) { reportSchemaError ( "src-attribute.1" , new Object [ ] { nameAtt } , attrDecl ) ; } if ( haveAnonType && ( typeAtt != null ) ) { reportSchemaError ( "src-attribute.4" , new Object [ ] { nameAtt } , attrDecl ) ; } checkNotationType ( nameAtt , attrType , attrDecl ) ; if ( attDefault != null ) { fValidationState . setNamespaceSupport ( schemaDoc . fNamespaceSupport ) ; try { checkDefaultValid ( attribute ) ; } catch ( InvalidDatatypeValueException ide ) { reportSchemaError ( ide . getKey ( ) , ide . getArgs ( ) , attrDecl ) ; reportSchemaError ( "a-props-correct.2" , new Object [ ] { nameAtt , attDefault . normalizedValue } , attrDecl ) ; attDefault = null ; constraintType = XSConstants . VC_NONE ; attribute . setValues ( nameAtt , tnsAtt , attrType , constraintType , scope , attDefault , enclCT , annotations ) ; } } if ( attDefault != null ) { if ( attrType . isIDType ( ) ) { reportSchemaError ( "a-props-correct.3" , new Object [ ] { nameAtt } , attrDecl ) ; attDefault = null ; constraintType = XSConstants . VC_NONE ; attribute . setValues ( nameAtt , tnsAtt , attrType , constraintType , scope , attDefault , enclCT , annotations ) ; } } if ( nameAtt != null && nameAtt . equals ( XMLSymbols . PREFIX_XMLNS ) ) { reportSchemaError ( "no-xmlns" , null , attrDecl ) ; return null ; } if ( tnsAtt != null && tnsAtt . equals ( SchemaSymbols . URI_XSI ) ) { reportSchemaError ( "no-xsi" , new Object [ ] { SchemaSymbols . URI_XSI } , attrDecl ) ; return null ; } if ( nameAtt . equals ( NO_NAME ) ) return null ; if ( isGlobal ) { if ( grammar . getGlobalAttributeDecl ( nameAtt ) == null ) { grammar . addGlobalAttributeDecl ( attribute ) ; } final String loc = fSchemaHandler . schemaDocument2SystemId ( schemaDoc ) ; final XSAttributeDecl attribute2 = grammar . getGlobalAttributeDecl ( nameAtt , loc ) ; if ( attribute2 == null ) { grammar . addGlobalAttributeDecl ( attribute , loc ) ; } if ( fSchemaHandler . fTolerateDuplicates ) { if ( attribute2 != null ) { attribute = attribute2 ; } fSchemaHandler . addGlobalAttributeDecl ( attribute ) ; } } return attribute ; }

Traverse un atributo declarado globalmente.


public static String numberToString  ( Number number ) throws JSONException { if ( number == null ) { throw new JSONException ( "Number must be non-null" ) ; } double doubleValue = number . doubleValue ( ) ; JSON . checkDouble ( doubleValue ) ; if ( number . equals ( NEGATIVE_ZERO ) ) { return "-0" ; } long longValue = number . longValue ( ) ; if ( doubleValue == ( double ) longValue ) { return Long . toString ( longValue ) ; } return number . toString ( ) ; }

Codifica el número como una cadena JSON.


public void removeRenderStatement  ( String instanceId ) { if ( ! WXUtils . isUiThread ( ) ) { throw new WXRuntimeException ( "[WXRenderManager] removeRenderStatement can only be called in main thread" ) ; } WXRenderStatement statement = mRegistries . remove ( instanceId ) ; if ( statement != null ) { statement . destroy ( ) ; } }

Retire la articulación del renta, solo se puede invocar en el hilo de UI.


public String toString  ( ) { return getName ( ) ; }


public void exitFullScreen  ( ) { View decorView = mContext . getWindow ( ) . getDecorView ( ) ; showSystemUI ( decorView ) ; for ( View view : views ) { view . setVisibility ( View . VISIBLE ) ; view . invalidate ( ) ; } }

Llame a este método para salir de la pantalla completa


public void check  ( ) { Response < Set < String > > serversResp = clusterService . listOnlineServers ( ) ; if ( ! serversResp . isSuccess ( ) ) { Logs . error ( "failed to get all online servers, cause: {}" , serversResp . getErr ( ) ) ; return ; } try { Set < String > allServers = serversResp . getData ( ) ; final Set < String > failedServers = Sets . newHashSet ( ) ; doCheck ( allServers , failedServers ) ; removeFailedServers ( failedServers ) ; } catch ( InterruptedException e ) { Logs . error ( "failed to check online servers: {}" , Throwables . getStackTraceAsString ( e ) ) ; } }

Verifique que todos los servidores en línea sean salud y elimine los servidores en línea muertos


public Repository createRepoAndAssetAndTextUnitsAndVariants  ( TestIdWatcher testIdWatcher ) throws Exception { Repository repository = createRepoAndAssetAndTextUnits ( testIdWatcher ) ; List < TMTextUnit > tmTextUnits = tmTextUnitRepository . findByTm_id ( repository . getTm ( ) . getId ( ) ) ; Locale frFrLocale = localeService . findByBcp47Tag ( "fr-FR" ) ; for ( TMTextUnit tmTextUnit : tmTextUnits ) { Long tmTextUnitId = tmTextUnit . getId ( ) ; tmService . addCurrentTMTextUnitVariant ( tmTextUnitId , frFrLocale . getId ( ) , "Variant for tmTextUnit " + tmTextUnitId + " - " + frFrLocale . getBcp47Tag ( ) ) ; } return repository ; }

Crea un repositorio que respalda algunos idiomas, un TM, procesa un activo para agregar unidades de texto y agregar algunas variantes.


public InputMapping ( ) { initComponents  ( ) ; }


public boolean canZoomInMoreX  ( ) { return ( mScaleX < mMaxScaleX ) ; }

Devuelve VERDADERO si el gráfico aún no está completamente zoom en el eje X


private static String doNormalize  ( String filename , char separator , boolean keepSeparator ) { if ( filename == null ) { return null ; } int size = filename . length ( ) ; if ( size == 0 ) { return filename ; } int prefix = getPrefixLength ( filename ) ; if ( prefix < 0 ) { return null ; } char [ ] array = new char [ size + 2 ] ; filename . getChars ( 0 , filename . length ( ) , array , 0 ) ; char otherSeparator = separator == SYSTEM_SEPARATOR ? OTHER_SEPARATOR : SYSTEM_SEPARATOR ; for ( int i = 0 ; i < array . length ; i ++ ) { if ( array [ i ] == otherSeparator ) { array [ i ] = separator ; } } boolean lastIsDirectory = true ; if ( array [ size - 1 ] != separator ) { array [ size ++ ] = separator ; lastIsDirectory = false ; } for ( int i = prefix + 1 ; i < size ; i ++ ) { if ( array [ i ] == separator && array [ i - 1 ] == separator ) { System . arraycopy ( array , i , array , i - 1 , size - i ) ; size -- ; i -- ; } } for ( int i = prefix + 1 ; i < size ; i ++ ) { if ( array [ i ] == separator && array [ i - 1 ] == '.' && ( i == prefix + 1 || array [ i - 2 ] == separator ) ) { if ( i == size - 1 ) { lastIsDirectory = true ; } System . arraycopy ( array , i + 1 , array , i - 1 , size - i ) ; size -= 2 ; i -- ; } } outer : for ( int i = prefix + 2 ; i < size ; i ++ ) { if ( array [ i ] == separator && array [ i - 1 ] == '.' && array [ i - 2 ] == '.' && ( i == prefix + 2 || array [ i - 3 ] == separator ) ) { if ( i == prefix + 2 ) { return null ; } if ( i == size - 1 ) { lastIsDirectory = true ; } int j ; for ( j = i - 4 ; j >= prefix ; j -- ) { if ( array [ j ] == separator ) { System . arraycopy ( array , i + 1 , array , j + 1 , size - i ) ; size -= i - j ; i = j + 1 ; continue outer ; } } System . arraycopy ( array , i + 1 , array , prefix , size - i ) ; size -= i + 1 - prefix ; i = prefix + 1 ; } } if ( size <= 0 ) { return "" ; } if ( size <= prefix ) { return new String ( array , 0 , size ) ; } if ( lastIsDirectory && keepSeparator ) { return new String ( array , 0 , size ) ; } return new String ( array , 0 , size - 1 ) ; }

Método interno para realizar la normalización.


public Iterator < PDGNode > iterator  ( ) { return new ChildPDGFlowIterator ( this . m_nodes ) ; }

Devuelva un iterador que sepa seguir el flujo de control en una región.Esto realmente devuelve un CHILLPDGFLOWITERATORIO que solo uerma a través de los nodos dependientes que contribuyen a las unidades que pertenecen a una región según lo definido por una región débil.


private void layoutAppearingViews  ( RecyclerView . Recycler recycler , View referenceView , int referencePosition , int extraCount , int offset ) { if ( extraCount < 1 ) return ; for ( int extra = 1 ; extra <= extraCount ; extra ++ ) { final int extraPosition = referencePosition + extra ; if ( extraPosition < 0 || extraPosition >= getItemCount ( ) ) { continue ; } View appearing = recycler . getViewForPosition ( extraPosition ) ; addView ( appearing ) ; final int newRow = getGlobalRowOfPosition ( extraPosition + offset ) ; final int rowDelta = newRow - getGlobalRowOfPosition ( referencePosition + offset ) ; final int newCol = getGlobalColumnOfPosition ( extraPosition + offset ) ; final int colDelta = newCol - getGlobalColumnOfPosition ( referencePosition + offset ) ; layoutTempChildView ( appearing , rowDelta , colDelta , referenceView ) ; } }


public static SM_SYSTEM_MESSAGE STR_MSG_LOOT_GET_ITEM_ME  ( DescriptionId descriptionId ) { return new SM_SYSTEM_MESSAGE ( 1390180 , descriptionId ) ; }


public CharMap4Grid ( CharMap4 charMap4 ) { super ( ) ; this . charMap4 = charMap4 ; cellCount = charCount = glyphCount = 0 ; clickIndex = NO_MOUSE ; clickStartX = clickStartY = NO_MOUSE ; cornerIndex = 0 ; fontData = null ; horizStep = 100 ; hoverIndex = NO_MOUSE ; lineAscent = 100 ; lineHeight = 100 ; maxWidth = 100 ; panelColumns = 10 ; panelCount = - 1 ; panelFont = null ; panelHeight = panelWidth = - 1 ; panelRows = 10 ; vertiStep = 100 ; this . addMouseListener ( ( MouseListener ) this ) ; this . addMouseMotionListener ( ( MouseMotionListener ) this ) ; this . addMouseWheelListener ( ( MouseWheelListener ) this ) ; }

Instantánea una nueva cuadrícula de char4 char4.


public Map < String , Object > addToCartBulk  ( String catalogId , String categoryId , Map < String , ? extends Object > context ) { String itemGroupNumber = ( String ) context . get ( "itemGroupNumber" ) ; String keyPrefix = "quantity_" ; String productQuantityKeyPrefix = "product_" ; String ignSeparator = "_ign_" ; for ( Map . Entry < String , ? extends Object > entry : context . entrySet ( ) ) { String productId = null ; String quantStr = null ; String itemGroupNumberToUse = itemGroupNumber ; String originalProductId = null ; if ( entry . getKey ( ) instanceof String ) { String key = entry . getKey ( ) ; int ignIndex = key . indexOf ( ignSeparator ) ; if ( ignIndex > 0 ) { itemGroupNumberToUse = key . substring ( ignIndex + ignSeparator . length ( ) ) ; key = key . substring ( 0 , ignIndex ) ; } if ( key . startsWith ( keyPrefix ) ) { productId = key . substring ( keyPrefix . length ( ) ) ; quantStr = ( String ) entry . getValue ( ) ; } else if ( key . startsWith ( productQuantityKeyPrefix ) ) { productId = ( String ) entry . getValue ( ) ; quantStr = "1" ; } else { continue ; } } else { continue ; } if ( UtilValidate . isNotEmpty ( quantStr ) ) { BigDecimal quantity = BigDecimal . ZERO ; try { quantity = new BigDecimal ( quantStr ) ; } catch ( NumberFormatException nfe ) { quantity = BigDecimal . ZERO ; } if ( quantity . compareTo ( BigDecimal . ZERO ) > 0 ) { if ( ProductWorker . isAlternativePacking ( delegator , null , productId ) ) { GenericValue originalProduct = null ; originalProductId = productId ; productId = ProductWorker . getOriginalProductId ( delegator , productId ) ; try { originalProduct = EntityQuery . use ( delegator ) . from ( "Product" ) . where ( "productId" , originalProductId ) . queryOne ( ) ; } catch ( GenericEntityException e ) { Debug . logError ( e , "Error getting parent product" , module ) ; } BigDecimal piecesIncluded = BigDecimal . ZERO ; if ( originalProduct != null ) { piecesIncluded = new BigDecimal ( originalProduct . getLong ( "piecesIncluded" ) ) ; quantity = quantity . multiply ( piecesIncluded ) ; } } try { if ( ! ProductWorker . isDecimalQuantityOrderAllowed ( delegator , productId , cart . getProductStoreId ( ) ) ) { BigDecimal remainder = quantity . remainder ( BigDecimal . ONE ) ; if ( remainder . compareTo ( BigDecimal . ZERO ) != 0 ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource_error , "cart.addToCart.quantityInDecimalNotAllowed" , this . cart . getLocale ( ) ) ) ; } quantity = quantity . setScale ( 0 , UtilNumber . getBigDecimalRoundingMode ( "order.rounding" ) ) ; } else { quantity = quantity . setScale ( UtilNumber . getBigDecimalScale ( "order.decimals" ) , UtilNumber . getBigDecimalRoundingMode ( "order.rounding" ) ) ; } } catch ( GenericEntityException e ) { Debug . logError ( e . getMessage ( ) , module ) ; quantity = BigDecimal . ONE ; } if ( quantity . compareTo ( BigDecimal . ZERO ) < 0 ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource_error , "cart.quantity_not_positive_number" , this . cart . getLocale ( ) ) ) ; } try { if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "Bulk Adding to cart [" + quantity + "] of [" + productId + "] in Item Group [" + itemGroupNumber + "]" , module ) ; this . cart . addOrIncreaseItem ( productId , null , quantity , null , null , null , null , null , null , null , catalogId , null , null , itemGroupNumberToUse , originalProductId , dispatcher ) ; } catch ( CartItemModifyException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } catch ( ItemNotFoundException e ) { return ServiceUtil . returnError ( e . getMessage ( ) ) ; } } } } return ServiceUtil . returnSuccess ( ) ; }

Agrega todos los productos en una categoría de acuerdo con el parámetro de solicitud de cantidad para cada uno;Si no hay parámetros para un determinado producto en la categoría, o si la cantidad es 0, no agregue.Si se agrega un _ign _ $ {itemgroupNumber} al nombre que se colocará en ese grupo en lugar del valor predeterminado en el parámetro Solicitud en el elementoGroupNumber, hay 2 opciones para la sintaxis: - Name = "Cantity _ $ {productID}" Value = "$ {cantidad} - Name = "Product _ $ {lo que sea}" Valor = "$ {productID}" (Nota: la cantidad es siempre 1)


public synchronized boolean removeMacro  ( int macroPosition ) { String m = macrosses . remove ( macroPosition ) ; if ( m == null ) { logger . warn ( "Trying to remove non existing macro." ) ; return false ; } return true ; }


@ Override public void onStreamCreated  ( PublisherKit publisherKit , Stream stream ) { sendEvent ( Events . EVENT_PUBLISH_START , Arguments . createMap ( ) ) ; }


@ deprecated public TimeZone parse  ( Style style , String text , ParsePosition pos , Output < TimeType > timeType ) { return parse ( style , text , pos , this . _parseAllStyles , timeType ) ; }


public void loadConf  ( URL confURL ) throws ConfigurationException  { Configuration loadedConf = new PropertiesConfiguration ( confURL ) ; addConfiguration ( loadedConf ) ; }

Puede cargar configuraciones en orden de precedencia.El primero tiene precedencia sobre cualquier cargado más tarde.


public Predicate joinPredicate  ( Schema sch1 , Schema sch2 ) { Predicate result = new Predicate ( ) ; Schema newsch = new Schema ( ) ; newsch . addAll ( sch1 ) ; newsch . addAll ( sch2 ) ; for ( Term t : terms ) if ( ! t . isApplicableTo ( sch1 ) && ! t . isApplicableTo ( sch2 ) && t . isApplicableTo ( newsch ) ) result . terms . add ( t ) ; return result . terms . size ( ) == 0 ? null : result ; }

Devuelve el sub-predicado que consiste en términos que se aplica a la unión de los dos esquemas específicos, pero no a ninguno de los esquemas por separado.


public void testWriteReadEmpty  ( ) throws Exception  { ByteArrayOutputStream out = new ByteArrayOutputStream ( 0 ) ; ObjectOutputStream os = new ObjectOutputStream ( out ) ; os . writeObject ( empty ) ; ObjectInputStream is = new ObjectInputStream ( new ByteArrayInputStream ( out . toByteArray ( ) ) ) ; NIOConfiguration copy = ( NIOConfiguration ) is . readObject ( ) ; is . close ( ) ; os . close ( ) ; assertTrue ( helper . areEquals ( empty , copy ) ) ; }


public Builder iconSize  ( Point iconSize ) { this . iconSize = iconSize ; return this ; }

Tamaño de la imagen del icono en píxeles.


public boolean addDataSetElement  ( DataElement dataElement , DataElementCategoryCombo categoryCombo ) { DataSetElement element = new DataSetElement ( this , dataElement , categoryCombo ) ; dataElement . getDataSetElements ( ) . add ( element ) ; return dataSetElements . add ( element ) ; }

Agrega un elemento de conjunto de datos usando este conjunto de datos, el elemento de datos dado y el combo de categoría dado.


public SimplifiedIntervalList union  ( SimplifiedIntervalList that ) { return simplifyIntervals ( this , that ) ; }

Devuelva la unión de esta lista de intervalo simplificada y los intervalos de otro.


public void addAnimation  ( Animation animation ) { if ( mAnimations . contains ( animation ) ) { return ; } mAnimations . add ( animation ) ; animation . start ( ) ; }

Añade una animación al coreógrafo y lo inicia inmediatamente.


public void changeCenterButtonIcon  ( int icon ) { if ( fab == null ) { Log . e ( TAG , "You should call setCentreButtonIcon() instead, " + "changeCenterButtonIcon works if space navigation already set up" ) ; } else { fab . setImageResource ( icon ) ; centreButtonIcon = icon ; } }

Cambiar el icono del botón del centro si la navegación espacial ya está configurada


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_SkillATKDrain_Instant_INTERVAL_HEAL_TO_ME  ( int num0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201077 , num0 , skillname ) ; }


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


protected void bindToProcessRegistry  ( ) throws RemoteException  { ProcessLogger . log ( "Locating registry on port: " + _procArg . getPort ( ) ) ; ProcessRegistry processRegistry = ProcessRegistry . locateRegistry ( _procArg . getPort ( ) ) ; ProcessLogger . log ( "Located ProcessRegistry: " + processRegistry + "\n\t -> Registering with executerURL:  [JNDI URL=" + _procArg . getExecuterURL ( ) + "]" ) ; processRegistry . register ( _procArg . getExecuterURL ( ) , getProcessStub ( ) ) ; ProcessLogger . log ( " -> Registered." ) ; processRegistry . monitor ( _procArg . getExecuterURL ( ) ) ; }

Inicie JavAPROCESS, exporte IJAVAPROCESSS como remitente y se une al registro de la ejecutora.


protected void stopBKCluster  ( ) throws Exception  { if ( bkc != null ) { bkc . close ( ) ; } for ( BookieServer server : bs ) { server . shutdown ( ) ; AutoRecoveryMain autoRecovery = autoRecoveryProcesses . get ( server ) ; if ( autoRecovery != null && isAutoRecoveryEnabled ( ) ) { autoRecovery . shutdown ( ) ; LOG . debug ( "Shutdown auto recovery for bookieserver:" + server . getLocalAddress ( ) ) ; } } bs . clear ( ) ; for ( File f : tmpDirs ) { FileUtils . deleteDirectory ( f ) ; } }

Detener el cluster.Además, detiene todos los procesos de recuperación de automóviles para el clúster de Bookie, si IsautorecoveryEnabled es verdadero.


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

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


public static void updateAll  ( DataStore dataStore , Iterable < Update > updates ) { updateAll ( dataStore , updates . iterator ( ) , ImmutableSet . < String > of ( ) ) ; }

Crea, actualiza o elimina cero o más piezas de contenido en el almacén de datos.


protected void handleUpdate  ( T oldObject , T newObject ) { this . preprocessMatch ( oldObject , newObject ) ; executor . addForUpdate ( oldObject , newObject ) ; }

Si el comparador decide que los atributos (no clave) no coinciden, este método se llama.La implementación predeterminada es llamar a PREPROCESSMATCH, seguido de ejecutor.addforUpdate


public CSVTableReader ( ) { super ( ) ; }


public BufferedReadOnlyIterator ( StorageReadOnlyIterator < T > externalIterator ) { this . _externalIterator = externalIterator ; }

Cree un iterador que protagonice la ieneración sobre los paquetes que residen en el almacenamiento externo


@ RequestMapping ( value = "/pet-categories" , method = RequestMethod . PUT , produces = MediaType . APPLICATION_JSON_VALUE ) @ Timed public ResponseEntity < PetCategory > updatePetCategory  ( @ RequestBody PetCategory petCategory ) throws URISyntaxException { log . debug ( "REST request to update PetCategory : {}" , petCategory ) ; if ( petCategory . getPetCategoryId ( ) == null ) { return createPetCategory ( petCategory ) ; } PetCategory result = petCategoryService . save ( petCategory ) ; return ResponseEntity . ok ( ) . headers ( HeaderUtil . createEntityUpdateAlert ( "petCategory" , petCategory . getPetCategoryId ( ) . toString ( ) ) ) . body ( result ) ; }

PUT / PET-Categorías: actualiza un PetCategoría PetCategoría existente.


public static JSONObject toJSONObject  ( String string ) throws JSONException { String n ; JSONObject o = new JSONObject ( ) ; Object v ; JSONTokener x = new JSONTokener ( string ) ; o . put ( "name" , x . nextTo ( '=' ) ) ; x . next ( '=' ) ; o . put ( "value" , x . nextTo ( ';' ) ) ; x . next ( ) ; while ( x . more ( ) ) { n = unescape ( x . nextTo ( "=;" ) ) ; if ( x . next ( ) != '=' ) { if ( n . equals ( "secure" ) ) { v = Boolean . TRUE ; } else { throw x . syntaxError ( "Missing '=' in cookie parameter." ) ; } } else { v = unescape ( x . nextTo ( ';' ) ) ; x . next ( ) ; } o . put ( n , v ) ; } return o ; }

Convierta una cadena de especificaciones de cookies en un JSONOBJECT.La cadena contendrá un par de valores de nombre separado por '='.El nombre y el valor se incumplirán, posiblemente convertirán las secuencias '+' y '%'.Las propiedades de las cookies pueden seguir, separadas por ';', también representadas como nombre = valor (excepto la propiedad segura, que no tiene un valor).El nombre se almacenará bajo la tecla "Nombre", y el valor se almacenará bajo la tecla "Value".Este método no realiza la verificación o la validación de los parámetros.Solo convierte la cadena de cookies en un jsonobject.


public List < T > nearestEuclidean  ( final double [ ] key , final double dist ) throws KeySizeException { return nearestDistance ( key , dist , new EuclideanDistance ( ) ) ; }

Encuentre nodos kd-árboles cuyas llaves estén dentro de una distancia euclidiana dada de una clave dada.


private void sendProgressReport  ( final int totalOperations , final int currentOperation , final int totalParts , final int currentPart , final String description ) { ClientRequestResult report = new ConfigurationReport ( totalOperations , currentOperation , totalParts , currentPart , description ) ; Collection < ClientRequestResult > response = new ArrayList < ClientRequestResult > ( ) ; response . add ( report ) ; sendResponse ( response ) ; }


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

No soportado, porque HTMLReporter no participa en la implementación del visitante.Debes llamar "GenerateReport".


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 Predictor createPredictor  ( DataElement writes , String uniqueCharacter , Expression expr , Expression skipTest , PeriodType periodType , OrganisationUnitLevel organisationUnitLevel , int sequentialSampleCount , int sequentialSkipCount , int annualSampleCount ) { Predictor predictor = new Predictor ( ) ; Set < OrganisationUnitLevel > orglevels = Sets . newHashSet ( organisationUnitLevel ) ; predictor . setAutoFields ( ) ; predictor . setOutput ( writes ) ; predictor . setName ( "Predictor" + uniqueCharacter ) ; predictor . setDescription ( "Description" + uniqueCharacter ) ; predictor . setGenerator ( expr ) ; predictor . setSampleSkipTest ( skipTest ) ; predictor . setPeriodType ( periodType ) ; predictor . setOrganisationUnitLevels ( orglevels ) ; predictor . setSequentialSampleCount ( sequentialSampleCount ) ; predictor . setAnnualSampleCount ( annualSampleCount ) ; predictor . setSequentialSkipCount ( sequentialSkipCount ) ; return predictor ; }


protected boolean lockJobIfNeeded  ( ) { try { if ( job . isExclusive ( ) ) { processEngineConfiguration . getCommandExecutor ( ) . execute ( new LockExclusiveJobCmd ( job ) ) ; } } catch ( Throwable lockException ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Could not lock exclusive job. Unlocking job so it can be acquired again. Catched exception: " + lockException . getMessage ( ) ) ; } unacquireJob ( ) ; return false ; } return true ; }

Devuelve VERDADERO si la cerradura tuvo éxito, o no se necesitaba bloqueo.Devuelve False si el bloqueo no tuvo éxito.


public void tabsAllClosingEffect  ( long time ) { boolean needAnimation = false ; if ( mStackTabs != null ) { for ( int i = 0 ; i < mStackTabs . length ; ++ i ) { needAnimation |= ! mStackTabs [ i ] . isDying ( ) ; mStackTabs [ i ] . setDying ( true ) ; } } else { needAnimation = true ; } if ( needAnimation ) { mScrollOffsetForDyingTabs = mScrollOffset ; mSpacing = computeSpacing ( 0 ) ; if ( mStackTabs != null ) { boolean isRtl = ! ( ( mCurrentMode == Orientation . PORTRAIT ) ^ LocalizationUtils . isLayoutRtl ( ) ) ; for ( int i = 0 ; i < mStackTabs . length ; i ++ ) { StackTab tab = mStackTabs [ i ] ; tab . setDiscardOriginY ( 0.f ) ; tab . setDiscardOriginX ( isRtl ? 0.f : tab . getLayoutTab ( ) . getOriginalContentWidth ( ) ) ; tab . setDiscardFromClick ( true ) ; } } startAnimation ( time , OverviewAnimationType . DISCARD_ALL ) ; } mIsDying = true ; }

Anima todas las pestañas que se cierran a la vez.


public VocalizationUnitFileReader ( String fileName ) throws IOException , MaryConfigurationException  { load ( fileName ) ; }

Cree un lector de archivos de unidad del archivo de la unidad dado


public synchronized Object remove  ( int index ) { Object [ ] elements = getArray ( ) ; int len = elements . length ; Object oldValue = elements [ index ] ; int numMoved = len - index - 1 ; if ( numMoved == 0 ) setArray ( copyOf ( elements , len - 1 ) ) ; else { Object [ ] newElements = new Object [ len - 1 ] ; System . arraycopy ( elements , 0 , newElements , 0 , index ) ; System . arraycopy ( elements , index + 1 , newElements , index , numMoved ) ; setArray ( newElements ) ; } return oldValue ; }

Elimina el elemento en la posición especificada en esta lista.Cambia los elementos posteriores a la izquierda (restan uno de sus índices).Devuelve el elemento que se eliminó de la lista.


public String toString  ( ) { return "L" + System . identityHashCode ( this ) ; }

Devuelve una representación de cadena de esta etiqueta.


public void failPicture  ( String err ) { this . callbackContext . error ( err ) ; }


private void updateNotificationsNodeLabel  ( DefaultMutableTreeNode node , String label ) { DefaultMutableTreeNode selectedNode = ( DefaultMutableTreeNode ) mbeansTab . getTree ( ) . getLastSelectedPathComponent ( ) ; if ( node != selectedNode ) { return ; } invalidate ( ) ; mbeansTab . getButtonAt ( 2 ) . setText ( label ) ; validate ( ) ; repaint ( ) ; }

Actualice la etiqueta del nodo de árbol de MBEAN suministrado.


public void add  ( Boolean bool ) { elements . add ( bool == null ? JsonNull . INSTANCE : new JsonPrimitive ( bool ) ) ; }

Agrega el booleano especificado a uno mismo.


public static List < GenericValue > findPartiesById  ( Delegator delegator , String idToFind , String partyIdentificationTypeId , boolean searchPartyFirst , boolean searchAllId ) throws GenericEntityException { if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "Analyze partyIdentification: entered id = " + idToFind + ", partyIdentificationTypeId = " + partyIdentificationTypeId , module ) ; GenericValue party = null ; List < GenericValue > partiesFound = null ; if ( searchPartyFirst ) { party = EntityQuery . use ( delegator ) . from ( "Party" ) . where ( "partyId" , idToFind ) . cache ( ) . queryOne ( ) ; } if ( searchAllId || ( searchPartyFirst && UtilValidate . isEmpty ( party ) ) ) { Map < String , String > conditions = UtilMisc . toMap ( "idValue" , idToFind ) ; if ( UtilValidate . isNotEmpty ( partyIdentificationTypeId ) ) { conditions . put ( "partyIdentificationTypeId" , partyIdentificationTypeId ) ; } partiesFound = EntityQuery . use ( delegator ) . from ( "PartyIdentificationAndParty" ) . where ( conditions ) . orderBy ( "partyId" ) . cache ( true ) . queryList ( ) ; } if ( ! searchPartyFirst ) { party = EntityQuery . use ( delegator ) . from ( "Party" ) . where ( "partyId" , idToFind ) . cache ( ) . queryOne ( ) ; } if ( UtilValidate . isNotEmpty ( party ) ) { if ( UtilValidate . isNotEmpty ( partiesFound ) ) partiesFound . add ( party ) ; else partiesFound = UtilMisc . toList ( party ) ; } if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "Analyze partyIdentification: found party.partyId = " + party + ", and list : " + partiesFound , module ) ; return partiesFound ; }

Servicio genérico para encontrar partido por ID.De forma predeterminada, devuelva la parte la parte Buscar por PartyID, pero puede pasar la búsqueda en FALSE si desea buscar en Partyidentification antes o después de que se puedan solicitar un apartamento con esta ID (Party.Partyid y PartyEdtification.IDVALUE)


public void killLocal  ( Local l ) { int base = types . size ( ) * locals . indexOf ( l ) ; for ( int i = 0 ; i < types . size ( ) ; i ++ ) { clear ( i + base ) ; } }

Elimina todos los pares correspondientes a LOCAL L desde el set.


private static boolean checkLearnIsPossible  ( Player player , PlayerSkillList playerSkillList , SkillLearnTemplate template ) { if ( playerSkillList . isSkillPresent ( template . getSkillId ( ) ) ) return true ; if ( player . havePermission ( MembershipConfig . STIGMA_AUTOLEARN ) && template . isStigma ( ) ) return true ; if ( template . isAutolearn ( ) ) return true ; return false ; }

Compruebe Skill_Autolearn HABITACIÓN HABILIDAD Y HABILIDAD Ya aprendido Verificación de habilidades Atributo Aprendizaje Automóvil


public static SM_SYSTEM_MESSAGE STR_BLOCKLIST_ADD_BLOCKED  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300892 , value0 ) ; }


public IVarAbstraction findInstanceField  ( AllocNode obj , SparkField field ) { AllocDotField af = findAllocDotField ( obj , field ) ; return consG . get ( af ) ; }

Obtenga la representación interna de un campo de objeto.


public void stop  ( ) { getTimer ( SELF ) . stop ( verbose ) ; }


public DataParseException ( String message , Throwable cause ) { super ( message , cause ) ; }


@ RequestMapping ( value = "/{id}/upload/extractBinary" , method = POST , produces = APPLICATION_JSON_VALUE ) public ResponseEntity < Void > extractBinaryFileUpload  ( @ PathVariable Integer id , @ RequestParam ( "extractBinary" ) MultipartFile multipartFile ) { log . debug ( "File Upload: {}" , multipartFile . getName ( ) ) ; Book book = bookRepository . findOne ( id ) ; try { book . setExtractBinary ( multipartFile . getBytes ( ) ) ; } catch ( IOException ioe ) { return ResponseEntity . status ( HttpStatus . CONFLICT ) . build ( ) ; } book . setExtractSize ( multipartFile . getSize ( ) ) ; book . setExtractContentType ( multipartFile . getContentType ( ) ) ; book . setExtractFileName ( multipartFile . getOriginalFilename ( ) ) ; bookRepository . save ( book ) ; return ResponseEntity . ok ( ) . build ( ) ; }

URL de destino para la carga de archivos extractuales.


public PointsToSet reachingObjects  ( SootField f ) { Type t = f . getType ( ) ; if ( t instanceof RefType ) return FullObjectSet . v ( ( RefType ) t ) ; return FullObjectSet . v ( ) ; }

Devuelve el conjunto de objetos apuntados por el campo estático f.


public static void print  ( int x ) { out . print ( x ) ; out . flush ( ) ; }

Imprime un entero a la salida estándar de salida y la salida estándar de lavado.


public TrustingMonotonicArraySet ( T [ ] elements ) { this ( ) ; for ( T element : elements ) add ( element ) ; }

Crea un conjunto que contenga los elementos dados.


void addField  ( AllocDotField adf , SparkField field ) { if ( fields == null ) fields = new HashMap < SparkField , AllocDotField > ( ) ; fields . put ( field , adf ) ; }

Registra un aloctotfield como tener este nodo como su base.


public void write  ( TBase t ) throws IOException  { try { t . write ( binaryOut ) ; dataOutputStream . flush ( ) ; } catch ( TException e ) { throw new IOException ( e ) ; } }


private char read  ( ) throws CompileException , IOException  { this . peek ( ) ; if ( this . nextChar == - 1 ) throw new CompileException ( "Unexpected end-of-input" , this . location ( ) ) ; final char result = ( char ) this . nextChar ; this . sb . append ( result ) ; this . nextChar = this . nextButOneChar ; this . nextButOneChar = - 1 ; return result ; }

Consume y devuelve el siguiente personaje.


private void tryScrollBackToTopAfterComplete  ( ) { tryScrollBackToTop ( ) ; }


public boolean hasAggregationLevels  ( ) { return aggregationLevels . size ( ) > 0 ; }

Prueba si el operando tiene algún nivel de agregación.


public static < T extends  Enum < T >> T forKey ( int key , Map < Integer , T > mapping , Class < T > enumeration )  { T t = mapping . get ( key ) ; if ( t != null ) { return t ; } throw new IllegalArgumentException ( "Not an alternate key for " + enumeration . toString ( ) + ": " + key ) ; }

Método de la placa de la caldera para recuperar un método enumio a través de una clave arbitraria, en lugar de solo el valor enumio.


public static CredentialsDialogFragment newInstanceForCredentials  ( WebView webView , HttpAuthHandler handler ) { if ( handler == null ) { throw new IllegalArgumentException ( "Trying to create instance with parameter handler" + " == null" ) ; } CredentialsDialogFragment frag = new CredentialsDialogFragment ( ) ; frag . mHandler = handler ; frag . mWebView = webView ; return frag ; }

Método de fábrica pública para crear nuevas instancias de fragmentación de CredentialesDialog.


public void populateTextField  ( FieldIdEnum fieldId , String value ) { if ( fieldConfigManager == null ) { return ; } FieldConfigBase fieldConfig = fieldConfigManager . get ( fieldId ) ; if ( fieldConfig != null ) { ( ( FieldConfigValuePopulateInterface ) fieldConfig ) . populateField ( value ) ; storeOriginalData ( fieldConfig ) ; } else { ConsoleManager . getInstance ( ) . error ( this , String . format ( "populateTextField - %s : %s" , Localisation . getString ( StandardPanel . class , "StandardPanel.unknownField" ) , fieldId ) ) ; } }


public boolean isLocked  ( ) { return locked ; }

¿Es el espectador actualmente bloqueado?


public JsonParser ( Charset charset ) { this ( new DefaultJsonFeeder ( charset ) ) ; }


public DatabaseGetUniversitiesQuery ( VkApiClient client ) { super ( client , "database.getUniversities" , GetUniversitiesResponse . class ) ; }

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


public FriendsGetRequestsQueryWithExtended out  ( Boolean value ) { return unsafeParam ( "out" , value ) ; }

VERDADERO - Para devolver las solicitudes salientes falsas: para devolver las solicitudes entrantes (predeterminado)


private void closeConnectionQuietly  ( ) { response . body ( ) . close ( ) ; response = null ; responseByteStream = null ; }

Cierra la conexión actual en silencio, si hay una.


public static SM_SYSTEM_MESSAGE STR_MSG_COMBAT_PARTY_ENEMY_PARRY  ( String value0 , String value1 ) { return new SM_SYSTEM_MESSAGE ( 1230219 , value0 , value1 ) ; }


private static boolean inAppended  ( String [ ] names ) { for ( int i = 0 ; i < names . length ; i ++ ) { if ( ! theAppended . contains ( names [ i ] ) ) { return false ; } } return true ; }

Cheques Si todos los elementos </ code> los elementos </ codifica> están en <código> theappended </ code>


public Experiment ( String id ) { this . id = id ; }

Crea un experimento con solo una identificación.


private void fillLoadedBlocks  ( AbstractIndex [ ] loadedBlockArray , List < Future < AbstractIndex > > blocksList ) throws IndexBuilderException { int blockCounter = 0 ; for ( int i = 0 ; i < loadedBlockArray . length ; i ++ ) { if ( null == loadedBlockArray [ i ] ) { try { loadedBlockArray [ i ] = blocksList . get ( blockCounter ++ ) . get ( ) ; } catch ( InterruptedException | ExecutionException e ) { throw new IndexBuilderException ( e ) ; } } } }

Se utilizará por debajo del método para llenar los bloques cargados a la matriz que se utilizará para la ejecución de consultas


private int measureLong  ( int measureSpec ) { int result ; int specMode = MeasureSpec . getMode ( measureSpec ) ; int specSize = MeasureSpec . getSize ( measureSpec ) ; if ( ( specMode == MeasureSpec . EXACTLY ) || ( mViewPager == null ) ) { result = specSize ; } else { final int count = mViewPager . getAdapter ( ) . getCount ( ) ; result = ( int ) ( getPaddingLeft ( ) + getPaddingRight ( ) + ( count * 2 * mRadius ) + ( count - 1 ) * mRadius + 1 ) ; if ( specMode == MeasureSpec . AT_MOST ) { result = Math . min ( result , specSize ) ; } } return result ; }


public static void moveDirectory  ( File srcDir , File destDir ) throws IOException { if ( srcDir == null ) { throw new NullPointerException ( "Source must not be null" ) ; } if ( destDir == null ) { throw new NullPointerException ( "Destination must not be null" ) ; } if ( ! srcDir . exists ( ) ) { throw new FileNotFoundException ( "Source '" + srcDir + "' does not exist" ) ; } if ( ! srcDir . isDirectory ( ) ) { throw new IOException ( "Source '" + srcDir + "' is not a directory" ) ; } if ( destDir . exists ( ) ) { throw new FileExistsException ( "Destination '" + destDir + "' already exists" ) ; } boolean rename = srcDir . renameTo ( destDir ) ; if ( ! rename ) { if ( destDir . getCanonicalPath ( ) . startsWith ( srcDir . getCanonicalPath ( ) ) ) { throw new IOException ( "Cannot move directory: " + srcDir + " to a subdirectory of itself: " + destDir ) ; } copyDirectory ( srcDir , destDir ) ; deleteDirectory ( srcDir ) ; if ( srcDir . exists ( ) ) { throw new IOException ( "Failed to delete original directory '" + srcDir + "' after copy to '" + destDir + "'" ) ; } } }

Mueve un directorio.<P /> Cuando el directorio de destino está en otro sistema de archivos, haga una "Copia y eliminación".


private void createUI  ( ) { setBorder ( new LineBorder ( new Color ( 0 , 0 , 0 ) ) ) ; setLayout ( new BoxLayout ( this , BoxLayout . Y_AXIS ) ) ; JPanel panelSymbolMarkerTree = new JPanel ( ) ; add ( panelSymbolMarkerTree ) ; JScrollPane scrollpane = new JScrollPane ( ) ; rootNode = new DefaultMutableTreeNode ( "SLD" ) ; treeModel = new DefaultTreeModel ( rootNode ) ; symbolTree = new JTree ( treeModel ) ; symbolTree . setEditable ( true ) ; symbolTree . setBorder ( new LineBorder ( Color . black ) ) ; ComponentCellRenderer cellRenderer = new ComponentCellRenderer ( symbolTree . getCellRenderer ( ) ) ; symbolTree . setCellRenderer ( cellRenderer ) ; symbolTree . setCellEditor ( new CheckBoxNodeEditor ( symbolTree , cellRenderer , this ) ) ; symbolTree . setEditable ( true ) ; symbolTree . setRowHeight ( 0 ) ; symbolTree . addTreeSelectionListener ( this ) ; panelSymbolMarkerTree . setLayout ( new BorderLayout ( 0 , 0 ) ) ; scrollpane . setViewportView ( symbolTree ) ; panelSymbolMarkerTree . add ( scrollpane ) ; if ( treeTools != null ) { treeTools . configure ( this , symbolTree , treeModel , renderList ) ; add ( treeTools . getButtonPanel ( ) ) ; } else { setPreferredSize ( new Dimension ( SLDTreeTools . getPanelWidth ( ) , PANEL_HEIGHT ) ) ; } }


public void addFootView  ( View view , int footerHeight ) { addFootView ( view , footerHeight , false ) ; }

Agregue la vista de pie de página con la altura del pie de página


public static void writeAnalysisHTMLToFile  ( String outputPath , DataAnalysis dataAnalysis , JavaSparkContext sc ) { try { String analysisAsHtml = HtmlAnalysis . createHtmlAnalysisString ( dataAnalysis ) ; writeStringToFile ( outputPath , analysisAsHtml , sc ) ; } catch ( Exception e ) { throw new RuntimeException ( "Error generating or writing HTML analysis file (normalized data)" , e ) ; } }

Escriba un análisis de datos a HDFS (o localmente) como un archivo HTML


@ Override public boolean skipSpaces  ( ) throws IOException  { if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } int c = fCurrentEntity . ch [ fCurrentEntity . position ] ; if ( fCurrentEntity . isExternal ( ) ) { if ( XML11Char . isXML11Space ( c ) ) { do { boolean entityChanged = false ; if ( c == '\n' || c == '\r' || c == 0x85 || c == 0x2028 ) { fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count - 1 ) { fCurrentEntity . ch [ 0 ] = ( char ) c ; entityChanged = load ( 1 , true ) ; if ( ! entityChanged ) { fCurrentEntity . startPosition = 0 ; fCurrentEntity . position = 0 ; } } if ( c == '\r' ) { int cc = fCurrentEntity . ch [ ++ fCurrentEntity . position ] ; if ( cc != '\n' && cc != 0x85 ) { fCurrentEntity . position -- ; } } } else { fCurrentEntity . columnNumber ++ ; } if ( ! entityChanged ) fCurrentEntity . position ++ ; if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } } while ( XML11Char . isXML11Space ( c = fCurrentEntity . ch [ fCurrentEntity . position ] ) ) ; return true ; } } else if ( XMLChar . isSpace ( c ) ) { do { boolean entityChanged = false ; if ( c == '\n' ) { fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count - 1 ) { fCurrentEntity . ch [ 0 ] = ( char ) c ; entityChanged = load ( 1 , true ) ; if ( ! entityChanged ) { fCurrentEntity . startPosition = 0 ; fCurrentEntity . position = 0 ; } } } else { fCurrentEntity . columnNumber ++ ; } if ( ! entityChanged ) fCurrentEntity . position ++ ; if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } } while ( XMLChar . isSpace ( c = fCurrentEntity . ch [ fCurrentEntity . position ] ) ) ; return true ; } return false ; }

Salta los caracteres del espacio que aparecen inmediatamente en la entrada.<p /> <strong> Nota: </ strong> Los personajes se consumen solo si son caracteres espaciales.


public static int readLittleEndianInt  ( DataInputStream dataStream ) throws IOException { int bits = 0x00000000 ; for ( int shift = 0 ; shift < 32 ; shift += 8 ) { int byteRead = ( 0x000000ff & dataStream . readByte ( ) ) ; bits |= ( byteRead << shift ) ; } return bits ; }

Lee el siguiente entero de Little-Endian desde el DataInputStream dado.


Evitar que cualquiera de instancias de esta clase.Solo usa el método estático


private void addInsideTouching  ( final SubHyperplane < S > sub , final List < BSPTree < S > > splitters ) { if ( insideTouching == null ) { insideTouching = sub ; } else { insideTouching = insideTouching . reunite ( sub ) ; } insideSplitters . addAll ( splitters ) ; }

Agregue una parte del sub-hiperplano de corte conocido para tocar una celda interior.


protected boolean isUnauthenticated  ( ClientHttpResponse clientHttpResponse ) throws IOException { return ( clientHttpResponse . getStatusCode ( ) . equals ( HttpStatus . FOUND ) && clientHttpResponse . getHeaders ( ) . getLocation ( ) . getPath ( ) . equals ( "/login" ) ) || ( clientHttpResponse . getStatusCode ( ) . equals ( HttpStatus . UNAUTHORIZED ) ) ; }

Comprueba si el estado de respuesta no está autorizado


public FormField withIcon  ( int resId ) { this . mIconView . setImageResource ( resId ) ; return this ; }

Agregue el icono de este campo de Formulario para darle al usuario una señal visual de lo que se debe completar.


private static String doGetPath  ( String filename , int separatorAdd ) { if ( filename == null ) { return null ; } int prefix = getPrefixLength ( filename ) ; if ( prefix < 0 ) { return null ; } int index = indexOfLastSeparator ( filename ) ; int endIndex = index + separatorAdd ; if ( prefix >= filename . length ( ) || index < 0 || prefix >= endIndex ) { return "" ; } return filename . substring ( prefix , endIndex ) ; }


public synchronized void rotate  ( final Point2D p , double theta ) { m_itransform . transform ( p , m_tmpPoint ) ; rotateAbs ( m_tmpPoint , theta ) ; }

Gira la vista proporcionada por esta pantalla por el ángulo dado en radianes, anclando la rotación en el punto especificado en las coordenadas de la pantalla.


public Builder takeFirstColumns  ( String ... columns ) { return add ( ReduceOp . TakeFirst , columns ) ; }

Reducir las columnas especificadas tomando el primer valor


public RevealBuilder withChildAnimationDuration  ( final int childAnimationDuration ) { this . mChildAnimationDuration = childAnimationDuration ; return this ; }

Define la duración de la animación infantil.


public void testAddModuleWithNondefaultLocationOutsideProject  ( ) throws IOException  { final String modulePath = FileUtil . toSystemIndependentName ( FileUtil . getTempDirectory ( ) ) + "/directory/module" ; File moduleLocation = new File ( modulePath ) ; final GradleSettingsFile file = getSimpleTestFile ( ) ; assertModuleWithNonDefaultLocation ( file , ":mymodule" , modulePath , moduleLocation ) ; }

El módulo debe ser importado y sus ubicaciones deben configurarse en la ruta absoluta.


public AccessPath mayAlias  ( AccessPath ap , Value val ) { if ( ! AccessPath . canContainValue ( val ) ) return null ; if ( val instanceof Constant ) return null ; if ( val instanceof Local ) if ( ap . getPlainValue ( ) != val ) return null ; if ( val instanceof ArrayRef ) if ( ap . getPlainValue ( ) != ( ( ArrayRef ) val ) . getBase ( ) ) return null ; if ( val instanceof InstanceFieldRef ) { if ( ! ap . isLocal ( ) && ! ap . isInstanceFieldRef ( ) ) return null ; if ( ( ( InstanceFieldRef ) val ) . getBase ( ) != ap . getPlainValue ( ) ) return null ; } if ( val instanceof StaticFieldRef ) if ( ! ap . isStaticFieldRef ( ) ) return null ; SootField [ ] fields = val instanceof FieldRef ? new SootField [ ] { ( ( FieldRef ) val ) . getField ( ) } : new SootField [ 0 ] ; return getReferencedAPBase ( ap , fields ) ; }

Obtiene si un valor y una ruta de acceso pueden apuntar potencialmente al mismo objeto de tiempo de ejecución


public JSONStringer key  ( String name ) throws JSONException { if ( name == null ) { throw new JSONException ( "Names must be non-null" ) ; } beforeKey ( ) ; string ( name ) ; return this ; }

Codifica la llave (nombre de la propiedad) a este stringer.


public static String camelCaseToUnderlines  ( String string ) { if ( string . isEmpty ( ) ) { return string ; } StringBuilder sb = new StringBuilder ( 2 * string . length ( ) ) ; int n = string . length ( ) ; boolean lastWasUpperCase = Character . isUpperCase ( string . charAt ( 0 ) ) ; for ( int i = 0 ; i < n ; i ++ ) { char c = string . charAt ( i ) ; boolean isUpperCase = Character . isUpperCase ( c ) ; if ( isUpperCase && ! lastWasUpperCase ) { sb . append ( '_' ) ; } lastWasUpperCase = isUpperCase ; c = Character . toLowerCase ( c ) ; sb . append ( c ) ; } return sb . toString ( ) ; }

Convierte una palabra de camella en una palabra underlined_word


@ Override protected void fillUtterance  ( Utterance utterance , Element sentence ) { fillUtterance ( utterance , sentence , true , true , false ) ; }

Dependiendo del tipo de datos, encuentre la información correcta en la oración e insértelo en la expresión.


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


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

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


public boolean needsHighlight  ( int xIndex , int dataSetIndex ) { if ( ! valuesToHighlight ( ) || dataSetIndex < 0 ) return false ; for ( int i = 0 ; i < mIndicesToHighlight . length ; i ++ ) if ( mIndicesToHighlight [ i ] . getXIndex ( ) == xIndex && mIndicesToHighlight [ i ] . getDataSetIndex ( ) == dataSetIndex ) return true ; return false ; }

verifica si el índice dado en el conjunto de datos dado se establece para resaltar o no


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Curse_A_TO_B  ( String skilltarget , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200921 , skilltarget , skillcaster , skillname ) ; }

[% SkillTarget] está maldito porque [% Skillcaster] usó [% de habilidad].


private static boolean isDigit  ( char p_char ) { return p_char >= '0' && p_char <= '9' ; }


public void collapseSelectedNodes  ( ) { for ( Node v = getSelectedNodes ( ) . getFirstElement ( ) ; v != null ; v = getSelectedNodes ( ) . getNextElement ( v ) ) { getCollapsedIds ( ) . add ( ( Integer ) v . getInfo ( ) ) ; } updateTree ( ) ; }


@ SuppressFBWarnings ( "DM_EXIT" ) public static void show  ( Activity activity , int errorCode ) { int msg ; switch ( errorCode ) { case LoaderErrors . LOADER_ERROR_NATIVE_LIBRARY_LOAD_FAILED : msg = R . string . os_version_missing_features ; break ; case LoaderErrors . LOADER_ERROR_NATIVE_LIBRARY_WRONG_VERSION : msg = R . string . incompatible_libraries ; break ; default : msg = R . string . native_startup_failed ; } final String message = activity . getResources ( ) . getString ( msg ) ; if ( ! ( activity instanceof FragmentActivity ) ) { Log . e ( TAG , "Unable to start chrome due to: " + msg ) ; System . exit ( - 1 ) ; return ; } Bundle dialogArgs = new Bundle ( ) ; dialogArgs . putString ( MESSAGE_KEY , message ) ; InvalidStartupDialog dialog = new InvalidStartupDialog ( ) ; dialog . setArguments ( dialogArgs ) ; dialog . show ( ( ( FragmentActivity ) activity ) . getSupportFragmentManager ( ) , "InvalidStartupDialog" ) ; }

Muestra el diálogo de inicio no válido para un código de error dado.


public Boolean isRepeat  ( ) { return repeat ; }

Obtiene el valor de la propiedad repetida.


public String process  ( Item seg ) throws ProcessException  { return segOnsetCtype ( seg , "f" ) ; }

Realiza un poco de procesamiento en el artículo dado.


public void startFirstSampleTimer  ( ) { firstSound = true ; timer . start ( "AudioFirstSound" ) ; }

Inicia el primer temporizador de muestra.


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

Crea una nueva instancia de la clase de ZwaveusCodeComandClassClass.


public Jim2Mov ( ImageProvider ip , MovieInfoProvider mip , FrameSavedListener listener ) { this ( ip , mip ) ; addFrameSavedListener ( listener ) ; }


@ Override public void apply  ( NexusStreamParser np ) throws Exception { ChartViewer viewer = ( ChartViewer ) getViewer ( ) ; np . matchIgnoreCase ( "show what=" ) ; String what = np . getWordMatchesIgnoringCase ( "all none selected" ) ; final LabelsJList list ; if ( np . peekMatchIgnoreCase ( "target=" ) ) { np . matchIgnoreCase ( "target=" ) ; list = viewer . getLabelsJList ( np . getWordMatchesIgnoringCase ( "series classes attributes" ) ) ; } else { list = viewer . getActiveLabelsJList ( ) ; } np . matchIgnoreCase ( ";" ) ; if ( what . equalsIgnoreCase ( "none" ) ) { list . disableLabels ( list . getAllLabels ( ) ) ; } else if ( what . equalsIgnoreCase ( "selected" ) ) { list . enableLabels ( list . getSelectedLabels ( ) ) ; } else { list . enableLabels ( list . getAllLabels ( ) ) ; } }


@ SuppressWarnings ( { "unchecked" , "cast" } ) public LocalClassDeclStmt fullCopy  ( ) { LocalClassDeclStmt tree = ( LocalClassDeclStmt ) 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.


@ Override public boolean writeAnnotation  ( Object target , short targetType ) { if ( targetType == XSAnnotation . W3C_DOM_ELEMENT || targetType == XSAnnotation . W3C_DOM_DOCUMENT ) { writeToDOM ( ( Node ) target , targetType ) ; return true ; } else if ( targetType == SAX_CONTENTHANDLER ) { writeToSAX ( ( ContentHandler ) target ) ; return true ; } return false ; }

Escribe contenidos de la anotación al objeto DOM especificado.Si el objeto <código> de destino </ código> especificado es un elemento de espacio de nombres en el ámbito de DOM para <Código> anotación </ code> se agregan como atributos nodos de la anotación <código> Serializada </ code>, de lo contrario el correspondienteLos eventos para todas las declaraciones de espacio de nombres en el ámbito se envían a través del controlador de documentos especificado.


private void adjustIndeterminate  ( ) { try { Field mOnlyIndeterminateField = ProgressBar . class . getDeclaredField ( "mOnlyIndeterminate" ) ; mOnlyIndeterminateField . setAccessible ( true ) ; mOnlyIndeterminateField . set ( this , false ) ; Field mIndeterminateField = ProgressBar . class . getDeclaredField ( "mIndeterminate" ) ; mIndeterminateField . setAccessible ( true ) ; mIndeterminateField . set ( this , false ) ; Field mCurrentDrawableField = ProgressBar . class . getDeclaredField ( "mCurrentDrawable" ) ; mCurrentDrawableField . setAccessible ( true ) ; mCurrentDrawableField . set ( this , null ) ; } catch ( NoSuchFieldException e ) { e . printStackTrace ( ) ; } catch ( IllegalAccessException e ) { e . printStackTrace ( ) ; } }

Para trabajar bien, es necesario modificar algunos de los siguientes campos a través de la reflexión.Otra forma disponible: escriba los siguientes atributos al XML <P> Android: indefinTininInyly = "Falso" Android: Indeterminato = "Falso"


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


@ TargetApi ( Build . VERSION_CODES . LOLLIPOP ) private void startScreenService  ( ) { launchButton . setText ( R . string . accept_screen_capture ) ; MediaProjectionManager projectionManager = ( MediaProjectionManager ) getSystemService ( Context . MEDIA_PROJECTION_SERVICE ) ; startActivityForResult ( projectionManager . createScreenCaptureIntent ( ) , SCREEN_CAPTURE_REQ_CODE ) ; }


public Editor edit  ( ) throws IOException  { return DiskLruCache . this . edit ( key , sequenceNumber ) ; }

Devuelve un editor para la entrada de esta instantánea, o NULL si la entrada ha cambiado desde que se creó esta instantánea o si otra edición está en progreso.


public < R > Plan < R > then  ( Function8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , R > selector ) { if ( selector == null ) { throw new NullPointerException ( ) ; } return new Plan8 < T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 , R > ( this , selector ) ; }

Partidos Cuando todas las secuencias observables tienen un elemento disponible y proyecta los elementos invocando la función del selector.


public CollectionAdapter ( Context a , List < Collection > list ) { this . a = a ; this . itemList = list ; }


public GameTime minus  ( GameTime gt ) { return new GameTime ( this . getTime ( ) - gt . getTime ( ) ) ; }

Restar el tiempo de juego dado desde este juego.


@ Override public TableView formatTable  ( LogicalTable logicalTable , UriInfo uriInfo ) { TableView resultRow = new TableView ( ) ; resultRow . put ( "name" , logicalTable . getName ( ) ) ; resultRow . put ( "longName" , logicalTable . getLongName ( ) ) ; resultRow . put ( "description" , logicalTable . getDescription ( ) ) ; resultRow . put ( "category" , logicalTable . getCategory ( ) ) ; return resultRow ; }

Método para proporcionar metadatos de la tabla.


public static BigDecimal safeAdd  ( BigDecimal left , BigDecimal right ) { return right != null ? left . add ( right ) : left ; }

Un método nulo-consciente para agregar bigdecimal, pero solo para el operando derecho.


boolean isVariablePrecision  ( ) { return variablePrecision ; }

Compruebe si el especificador tiene una precisión variable que se va a configurar por un argumento.


public AdsGetCategoriesQuery ( VkApiClient client , UserActor actor ) { super ( client , "ads.getCategories" , Utils . buildParametrizedType ( List . class , Category . class ) ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


public static boolean exists  ( Bson query , Class < ? extends Bean > t ) throws Exception { String collection = getCollection ( t ) ; if ( collection != null ) { return exists ( collection , query ) ; } throw new Exception ( "the Class<" + t . getName ( ) + "> doest annotated by @DBMapping()!" ) ; }


@ Override public Scan open  ( ) { TempTable tt = copyRecordsFrom ( rhs ) ; TableInfo ti = tt . getTableInfo ( ) ; Scan leftscan = lhs . open ( ) ; return new MultiBufferProductScan ( leftscan , ti , tx ) ; }

Se crea y devuelve un escaneo para esta consulta, de la siguiente manera.Primero, el método materializa su consulta RHS.Luego, determina el tamaño de un trozo óptimo, según el tamaño del archivo materializado y el número de búferes disponibles.Crea un plan de trozos para cada trozo, guardándolos en una lista.Finalmente, crea un multisca para esta lista de planes, y devuelve ese escaneo.


public static Map < String , Object > sendMail  ( DispatchContext ctx , Map < String , ? extends Object > context ) { Delegator delegator = ctx . getDelegator ( ) ; String communicationEventId = ( String ) context . get ( "communicationEventId" ) ; String orderId = ( String ) context . get ( "orderId" ) ; Locale locale = ( Locale ) context . get ( "locale" ) ; if ( communicationEventId != null ) { Debug . logInfo ( "SendMail Running, for communicationEventId : " + communicationEventId , module ) ; } Map < String , Object > results = ServiceUtil . returnSuccess ( ) ; String subject = ( String ) context . get ( "subject" ) ; subject = FlexibleStringExpander . expandString ( subject , context ) ; String partyId = ( String ) context . get ( "partyId" ) ; String body = ( String ) context . get ( "body" ) ; List < Map < String , Object > > bodyParts = UtilGenerics . checkList ( context . get ( "bodyParts" ) ) ; GenericValue userLogin = ( GenericValue ) context . get ( "userLogin" ) ; results . put ( "communicationEventId" , communicationEventId ) ; results . put ( "partyId" , partyId ) ; results . put ( "subject" , subject ) ; if ( UtilValidate . isNotEmpty ( orderId ) ) { results . put ( "orderId" , orderId ) ; } if ( UtilValidate . isNotEmpty ( body ) ) { body = FlexibleStringExpander . expandString ( body , context ) ; results . put ( "body" , body ) ; } if ( UtilValidate . isNotEmpty ( bodyParts ) ) { results . put ( "bodyParts" , bodyParts ) ; } results . put ( "userLogin" , userLogin ) ; String sendTo = ( String ) context . get ( "sendTo" ) ; String sendCc = ( String ) context . get ( "sendCc" ) ; String sendBcc = ( String ) context . get ( "sendBcc" ) ; String redirectAddress = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.notifications.redirectTo" , delegator ) ; if ( UtilValidate . isNotEmpty ( redirectAddress ) ) { String originalRecipients = " [To: " + sendTo + ", Cc: " + sendCc + ", Bcc: " + sendBcc + "]" ; subject += originalRecipients ; sendTo = redirectAddress ; sendCc = null ; sendBcc = null ; if ( subject . length ( ) > 255 ) { subject = subject . substring ( 0 , 255 ) ; } } String sendFrom = ( String ) context . get ( "sendFrom" ) ; String sendType = ( String ) context . get ( "sendType" ) ; String port = ( String ) context . get ( "port" ) ; String socketFactoryClass = ( String ) context . get ( "socketFactoryClass" ) ; String socketFactoryPort = ( String ) context . get ( "socketFactoryPort" ) ; String socketFactoryFallback = ( String ) context . get ( "socketFactoryFallback" ) ; String sendVia = ( String ) context . get ( "sendVia" ) ; String authUser = ( String ) context . get ( "authUser" ) ; String authPass = ( String ) context . get ( "authPass" ) ; String messageId = ( String ) context . get ( "messageId" ) ; String contentType = ( String ) context . get ( "contentType" ) ; Boolean sendPartial = ( Boolean ) context . get ( "sendPartial" ) ; Boolean isStartTLSEnabled = ( Boolean ) context . get ( "startTLSEnabled" ) ; boolean useSmtpAuth = false ; if ( sendType == null || sendType . equals ( "mail.smtp.host" ) ) { sendType = "mail.smtp.host" ; if ( UtilValidate . isEmpty ( sendVia ) ) { sendVia = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.smtp.relay.host" , "localhost" , delegator ) ; } if ( UtilValidate . isEmpty ( authUser ) ) { authUser = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.smtp.auth.user" , delegator ) ; } if ( UtilValidate . isEmpty ( authPass ) ) { authPass = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.smtp.auth.password" , delegator ) ; } if ( UtilValidate . isNotEmpty ( authUser ) ) { useSmtpAuth = true ; } if ( UtilValidate . isEmpty ( port ) ) { port = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.smtp.port" , delegator ) ; } if ( UtilValidate . isEmpty ( socketFactoryPort ) ) { socketFactoryPort = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.smtp.socketFactory.port" , delegator ) ; } if ( UtilValidate . isEmpty ( socketFactoryClass ) ) { socketFactoryClass = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.smtp.socketFactory.class" , delegator ) ; } if ( UtilValidate . isEmpty ( socketFactoryFallback ) ) { socketFactoryFallback = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.smtp.socketFactory.fallback" , "false" , delegator ) ; } if ( sendPartial == null ) { sendPartial = EntityUtilProperties . propertyValueEqualsIgnoreCase ( "general.properties" , "mail.smtp.sendpartial" , "true" , delegator ) ? true : false ; } if ( isStartTLSEnabled == null ) { isStartTLSEnabled = EntityUtilProperties . propertyValueEqualsIgnoreCase ( "general.properties" , "mail.smtp.starttls.enable" , "true" , delegator ) ; } } else if ( sendVia == null ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendMissingParameterSendVia" , locale ) ) ; } if ( contentType == null ) { contentType = "text/html" ; } if ( UtilValidate . isNotEmpty ( bodyParts ) ) { contentType = "multipart/mixed" ; } results . put ( "contentType" , contentType ) ; Session session ; MimeMessage mail ; try { Properties props = System . getProperties ( ) ; props . put ( sendType , sendVia ) ; if ( UtilValidate . isNotEmpty ( port ) ) { props . put ( "mail.smtp.port" , port ) ; } if ( UtilValidate . isNotEmpty ( socketFactoryPort ) ) { props . put ( "mail.smtp.socketFactory.port" , socketFactoryPort ) ; } if ( UtilValidate . isNotEmpty ( socketFactoryClass ) ) { props . put ( "mail.smtp.socketFactory.class" , socketFactoryClass ) ; Security . addProvider ( new com . sun . net . ssl . internal . ssl . Provider ( ) ) ; } if ( UtilValidate . isNotEmpty ( socketFactoryFallback ) ) { props . put ( "mail.smtp.socketFactory.fallback" , socketFactoryFallback ) ; } if ( useSmtpAuth ) { props . put ( "mail.smtp.auth" , "true" ) ; } if ( sendPartial != null ) { props . put ( "mail.smtp.sendpartial" , sendPartial ? "true" : "false" ) ; } if ( isStartTLSEnabled ) { props . put ( "mail.smtp.starttls.enable" , "true" ) ; } session = Session . getInstance ( props ) ; boolean debug = EntityUtilProperties . propertyValueEqualsIgnoreCase ( "general.properties" , "mail.debug.on" , "Y" , delegator ) ; session . setDebug ( debug ) ; mail = new MimeMessage ( session ) ; if ( messageId != null ) { mail . setHeader ( "In-Reply-To" , messageId ) ; mail . setHeader ( "References" , messageId ) ; } mail . setFrom ( new InternetAddress ( sendFrom ) ) ; mail . setSubject ( subject , "UTF-8" ) ; mail . setHeader ( "X-Mailer" , "Apache OFBiz, The Open For Business Project" ) ; mail . setSentDate ( new Date ( ) ) ; mail . addRecipients ( Message . RecipientType . TO , sendTo ) ; if ( UtilValidate . isNotEmpty ( sendCc ) ) { mail . addRecipients ( Message . RecipientType . CC , sendCc ) ; } if ( UtilValidate . isNotEmpty ( sendBcc ) ) { mail . addRecipients ( Message . RecipientType . BCC , sendBcc ) ; } if ( UtilValidate . isNotEmpty ( bodyParts ) ) { MimeMultipart mp = new MimeMultipart ( ) ; Debug . logInfo ( bodyParts . size ( ) + " multiparts found" , module ) ; for ( Map < String , Object > bodyPart : bodyParts ) { Object bodyPartContent = bodyPart . get ( "content" ) ; MimeBodyPart mbp = new MimeBodyPart ( ) ; if ( bodyPartContent instanceof String ) { Debug . logInfo ( "part of type: " + bodyPart . get ( "type" ) + " and size: " + bodyPart . get ( "content" ) . toString ( ) . length ( ) , module ) ; mbp . setText ( ( String ) bodyPartContent , "UTF-8" , ( ( String ) bodyPart . get ( "type" ) ) . substring ( 5 ) ) ; } else if ( bodyPartContent instanceof byte [ ] ) { ByteArrayDataSource bads = new ByteArrayDataSource ( ( byte [ ] ) bodyPartContent , ( String ) bodyPart . get ( "type" ) ) ; Debug . logInfo ( "part of type: " + bodyPart . get ( "type" ) + " and size: " + ( ( byte [ ] ) bodyPartContent ) . length , module ) ; mbp . setDataHandler ( new DataHandler ( bads ) ) ; } else if ( bodyPartContent instanceof DataHandler ) { mbp . setDataHandler ( ( DataHandler ) bodyPartContent ) ; } else { mbp . setDataHandler ( new DataHandler ( bodyPartContent , ( String ) bodyPart . get ( "type" ) ) ) ; } String fileName = ( String ) bodyPart . get ( "filename" ) ; if ( fileName != null ) { mbp . setFileName ( fileName ) ; } mp . addBodyPart ( mbp ) ; } mail . setContent ( mp ) ; mail . saveChanges ( ) ; } else { if ( contentType . startsWith ( "text" ) ) { mail . setText ( body , "UTF-8" , contentType . substring ( 5 ) ) ; } else { mail . setContent ( body , contentType ) ; } mail . saveChanges ( ) ; } } catch ( MessagingException e ) { Debug . logError ( e , "MessagingException when creating message to [" + sendTo + "] from [" + sendFrom + "] cc [" + sendCc + "] bcc [" + sendBcc + "] subject [" + subject + "]" , module ) ; Debug . logError ( "Email message that could not be created to [" + sendTo + "] had context: " + context , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendMessagingException" , UtilMisc . toMap ( "sendTo" , sendTo , "sendFrom" , sendFrom , "sendCc" , sendCc , "sendBcc" , sendBcc , "subject" , subject ) , locale ) ) ; } catch ( IOException e ) { Debug . logError ( e , "IOExcepton when creating message to [" + sendTo + "] from [" + sendFrom + "] cc [" + sendCc + "] bcc [" + sendBcc + "] subject [" + subject + "]" , module ) ; Debug . logError ( "Email message that could not be created to [" + sendTo + "] had context: " + context , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendIOException" , UtilMisc . toMap ( "sendTo" , sendTo , "sendFrom" , sendFrom , "sendCc" , sendCc , "sendBcc" , sendBcc , "subject" , subject ) , locale ) ) ; } String mailEnabled = EntityUtilProperties . getPropertyValue ( "general.properties" , "mail.notifications.enabled" , "N" , delegator ) ; if ( ! "Y" . equalsIgnoreCase ( mailEnabled ) ) { Debug . logImportant ( "Mail notifications disabled in general.properties; mail with subject [" + subject + "] not sent to addressee [" + sendTo + "]" , module ) ; Debug . logVerbose ( "What would have been sent, the addressee: " + sendTo + " subject: " + subject + " context: " + context , module ) ; results . put ( "messageWrapper" , new MimeMessageWrapper ( session , mail ) ) ; return results ; } Transport trans = null ; try { trans = session . getTransport ( "smtp" ) ; if ( ! useSmtpAuth ) { trans . connect ( ) ; } else { trans . connect ( sendVia , authUser , authPass ) ; } trans . sendMessage ( mail , mail . getAllRecipients ( ) ) ; results . put ( "messageWrapper" , new MimeMessageWrapper ( session , mail ) ) ; results . put ( "messageId" , mail . getMessageID ( ) ) ; trans . close ( ) ; } catch ( SendFailedException e ) { Debug . logError ( e , "[ADDRERR] Address error when sending message to [" + sendTo + "] from [" + sendFrom + "] cc [" + sendCc + "] bcc [" + sendBcc + "] subject [" + subject + "]" , module ) ; List < SMTPAddressFailedException > failedAddresses = new LinkedList < SMTPAddressFailedException > ( ) ; Exception nestedException = null ; while ( ( nestedException = e . getNextException ( ) ) != null && nestedException instanceof MessagingException ) { if ( nestedException instanceof SMTPAddressFailedException ) { SMTPAddressFailedException safe = ( SMTPAddressFailedException ) nestedException ; Debug . logError ( "Failed to send message to [" + safe . getAddress ( ) + "], return code [" + safe . getReturnCode ( ) + "], return message [" + safe . getMessage ( ) + "]" , module ) ; failedAddresses . add ( safe ) ; break ; } } Boolean sendFailureNotification = ( Boolean ) context . get ( "sendFailureNotification" ) ; if ( sendFailureNotification == null || sendFailureNotification ) { sendFailureNotification ( ctx , context , mail , failedAddresses ) ; results . put ( "messageWrapper" , new MimeMessageWrapper ( session , mail ) ) ; try { results . put ( "messageId" , mail . getMessageID ( ) ) ; trans . close ( ) ; } catch ( MessagingException e1 ) { Debug . logError ( e1 , module ) ; } } else { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendAddressError" , UtilMisc . toMap ( "sendTo" , sendTo , "sendFrom" , sendFrom , "sendCc" , sendCc , "sendBcc" , sendBcc , "subject" , subject ) , locale ) ) ; } } catch ( MessagingException e ) { Debug . logError ( e , "[CON] Connection error when sending message to [" + sendTo + "] from [" + sendFrom + "] cc [" + sendCc + "] bcc [" + sendBcc + "] subject [" + subject + "]" , module ) ; Debug . logError ( "Email message that could not be sent to [" + sendTo + "] had context: " + context , module ) ; return ServiceUtil . returnError ( UtilProperties . getMessage ( resource , "CommonEmailSendConnectionError" , UtilMisc . toMap ( "sendTo" , sendTo , "sendFrom" , sendFrom , "sendCc" , sendCc , "sendBcc" , sendBcc , "subject" , subject ) , locale ) ) ; } return results ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_CaseHeal_INTERVAL_HEAL_TO_ME  ( int num0 , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201045 , num0 , skillname ) ; }


public String toString  ( ) { return "MulticastRequest[" + host + ":" + port + ", " + Arrays . asList ( groups ) + ", " + Arrays . asList ( serviceIDs ) + "]" ; }

Devuelve la representación de la cadena de esta solicitud.


public void terminate  ( ) throws RemoteException  { Hashtable < String , IJSpace > tmpDepot = ( Hashtable < String , IJSpace > ) _registeredSpaces . clone ( ) ; for ( String spaceName : tmpDepot . keySet ( ) ) unregister ( spaceName ) ; if ( _logger . isLoggable ( Level . FINE ) ) _logger . fine ( "All spaces unregistered successfully" ) ; }

Desciende a todos los contenedores JSPACE y JSPACE de todos los servicios de búsqueda.


@ Nullable ( "if theme with this name was already added or resolution has failed" ) private ConfiguredThemeEditorStyle constructThemeFromResourceValue  ( @ NotNull StyleResourceValue value , @ Nullable Module sourceModule ) { final String name = ResolutionUtils . getQualifiedStyleName ( value ) ; if ( myThemeByName . containsKey ( name ) ) { return null ; } final ConfiguredThemeEditorStyle theme = ResolutionUtils . getStyle ( myConfiguration , name , sourceModule ) ; if ( theme != null ) { myThemeByName . put ( name , theme ) ; } return theme ; }

Cree una instancia de ThemeeditorStyle almacenada en Themeresolver, que se puede agregar a una de las listas de temas.


public GroupValue ( Scan s , Collection < String > groupFlds ) { vals = new HashMap < String , Constant > ( ) ; for ( String fldname : groupFlds ) vals . put ( fldname , s . getVal ( fldname ) ) ; }

Crea un nuevo valor de grupo, dado la exploración y lista especificados de los campos.Los valores en el registro actual de cada campo se almacenan.


@ Deployment public void testProcessDefinitionListenerDefinition  ( ) throws Exception  { ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "testEventListeners" ) ; assertNotNull ( testListenerBean ) ; Task task = taskService . createTaskQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ( ) ; taskService . complete ( task . getId ( ) ) ; assertFalse ( testListenerBean . getEventsReceived ( ) . isEmpty ( ) ) ; for ( ActivitiEvent event : testListenerBean . getEventsReceived ( ) ) { assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; } assertTrue ( testListenerBean . getEventsReceived ( ) . get ( 0 ) instanceof ActivitiEntityEvent ) ; ActivitiEntityEvent event = ( ActivitiEntityEvent ) testListenerBean . getEventsReceived ( ) . get ( 0 ) ; assertTrue ( event . getEntity ( ) instanceof ProcessInstance ) ; assertEquals ( processInstance . getId ( ) , ( ( ProcessInstance ) event . getEntity ( ) ) . getId ( ) ) ; List < ActivitiEvent > events = StaticTestActivitiEventListener . getEventsReceived ( ) ; assertFalse ( events . isEmpty ( ) ) ; boolean insertFound = false ; boolean deleteFound = false ; for ( ActivitiEvent e : events ) { if ( ActivitiEventType . ENTITY_CREATED == e . getType ( ) ) { insertFound = true ; } else if ( ActivitiEventType . ENTITY_DELETED == e . getType ( ) ) { deleteFound = true ; } } assertTrue ( insertFound ) ; assertTrue ( deleteFound ) ; }

La prueba para verificar los oyentes definidos en el XML BPMN se agregan a la definición del proceso y están activos.


private static boolean haveChecked  ( String category , String name , boolean createWithProject ) { String key = getCheckKey ( category , name , createWithProject ) ; return ourTemplatesChecked . contains ( key ) ; }

Comprueba si ya hemos revisado la plantilla dada en un nuevo proyecto o el contexto del proyecto existente


public static < T > Set < T > stringToSet  ( String val , Class < T > type ) { String [ ] tokens = trim ( val ) . split ( "," ) ; return Arrays . stream ( tokens ) . map ( null ) . collect ( Collectors . toSet ( ) ) ; }

Convierte la cadena separada por comas para establecer


public synchronized void reset  ( ) { timer . start ( "audioOut" ) ; if ( line != null ) { waitResume ( ) ; if ( isCancelled ( ) && ! isDone ( ) ) { cancelled = false ; line . start ( ) ; } } }

Se prepara para otro lote de salida.Los grupos más grandes de salida (como toda la salida asociada con un solo freettspeakable) deben agruparse entre un par de reinicio / drenaje.


@ Override public boolean isEnabled  ( ) { if ( ( attributeSelectionPanel != null ) && ! isValueOnly ( ) ) { return attributeSelectionPanel . isEnabled ( ) ; } else { if ( textField != null ) { return textField . isEnabled ( ) ; } } return false ; }


private static boolean isTrusted  ( Object obj , TrustVerifier . Context ctx ) throws RemoteException { Object saved = state . get ( ) ; try { state . set ( obj ) ; return ctx . isTrustedObject ( obj ) ; } finally { state . set ( saved ) ; } }

Resultados de devoluciones de llamadas CTX.istrusedObject (OBJ) con el estado local de hilos establecido en OBJ.


public static String convertAsciiInputStreamToString  ( InputStream inputStream , int inputStreamLength ) throws IOException { InputStreamReader in = new InputStreamReader ( inputStream ) ; StringWriter writer = new StringWriter ( ) ; int blockSize = DEFAULT_BUFFER_SIZE ; char [ ] buffer = new char [ blockSize ] ; int left = inputStreamLength ; while ( left > 0 ) { int read = in . read ( buffer , 0 , left > blockSize ? blockSize : left ) ; if ( read == - 1 ) break ; writer . write ( buffer , 0 , read ) ; left -= read ; } writer . close ( ) ; return writer . toString ( ) ; }

Convierte un flujo de entrada ASCII a una cadena


public boolean isCritical  ( ) { return true ; }

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


public void actionPerformed  ( ActionEvent ev ) { execute ( "set index=" + CalculateEcologicalIndices . GOODALL_NORMALIZED + ";" ) ; }


private StyledLayerDescriptor createSLD  ( ) { String sldContents = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" + "<StyledLayerDescriptor version=\"1.0.0\" " + "    xsi:schemaLocation=\"http://www.opengis.net/sld StyledLayerDescriptor.xsd\" " + "    xmlns=\"http://www.opengis.net/sld\" " + "    xmlns:ogc=\"http://www.opengis.net/ogc\" " + "    xmlns:xlink=\"http://www.w3.org/1999/xlink\" " + "    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">" + "  <NamedLayer>" + "    <Name>Attribute-based point</Name>" + "    <UserStyle>" + "      <Title>GeoServer SLD Cook Book: Attribute-based point</Title>" + "      <FeatureTypeStyle>" + "        <Rule>" + "          <Name>SmallPop</Name>" + "          <Title>1 to 50000</Title>" + "          <ogc:Filter>" + "            <ogc:PropertyIsLessThan>" + "              <ogc:PropertyName>pop</ogc:PropertyName>" + "              <ogc:Literal>50000</ogc:Literal>" + "            </ogc:PropertyIsLessThan>" + "          </ogc:Filter>" + "          <PointSymbolizer>" + "            <Graphic>" + "              <Mark>" + "                <WellKnownName>star</WellKnownName>" + "                <Fill>" + "                  <CssParameter name=\"fill\">#0033CC</CssParameter>" + "                </Fill>" + "              </Mark>" + "              <Rotation>" + "                <ogc:PropertyName>angle</ogc:PropertyName>" + "              </Rotation>" + "              <Size>" + "                <ogc:PropertyName>size</ogc:PropertyName>" + "              </Size>" + "            </Graphic>" + "          </PointSymbolizer>" + "        </Rule>" + "        <Rule>" + "          <Name>MediumPop</Name>" + "          <Title>50000 to 500000</Title>" + "          <ogc:Filter>" + "            <ogc:PropertyIsLessThan>" + "              <ogc:PropertyName>pop</ogc:PropertyName>" + "              <ogc:Literal>500000</ogc:Literal>" + "            </ogc:PropertyIsLessThan>" + "          </ogc:Filter>" + "          <PointSymbolizer>" + "            <Graphic>" + "              <Mark>" + "                <WellKnownName>star</WellKnownName>" + "                <Fill>" + "                  <CssParameter name=\"fill\">#0033CC</CssParameter>" + "                </Fill>" + "              </Mark>" + "              <Rotation>" + "                <ogc:PropertyName>angle</ogc:PropertyName>" + "              </Rotation>" + "              <Size>" + "                <ogc:PropertyName>size</ogc:PropertyName>" + "              </Size>" + "            </Graphic>" + "          </PointSymbolizer>" + "          <PointSymbolizer>" + "            <Graphic>" + "              <Mark>" + "                <WellKnownName>circle</WellKnownName>" + "                <Fill>" + "                  <CssParameter name=\"fill\">#123456</CssParameter>" + "                </Fill>" + "              </Mark>" + "              <Rotation>" + "                <ogc:PropertyName>angle</ogc:PropertyName>" + "              </Rotation>" + "              <Size>" + "                <ogc:PropertyName>size</ogc:PropertyName>" + "              </Size>" + "            </Graphic>" + "          </PointSymbolizer>" + "        </Rule>" + "        <Rule>" + "          <Name>LargePop</Name>" + "          <Title>500000 to 900000</Title>" + "          <ogc:Filter>" + "            <ogc:PropertyIsLessThan>" + "              <ogc:PropertyName>pop</ogc:PropertyName>" + "              <ogc:Literal>900000</ogc:Literal>" + "            </ogc:PropertyIsLessThan>" + "          </ogc:Filter>" + "          <PointSymbolizer>" + "            <Graphic>" + "              <Mark>" + "                <WellKnownName>star</WellKnownName>" + "                <Fill>" + "                  <CssParameter name=\"fill\">#0033CC</CssParameter>" + "                </Fill>" + "              </Mark>" + "              <Rotation>" + "                <ogc:PropertyName>angle</ogc:PropertyName>" + "              </Rotation>" + "              <Size>" + "                <ogc:PropertyName>size</ogc:PropertyName>" + "              </Size>" + "            </Graphic>" + "          </PointSymbolizer>" + "        </Rule>" + "      </FeatureTypeStyle>" + "    </UserStyle>" + "  </NamedLayer>" + "</StyledLayerDescriptor>" ; SLDData sldData = new SLDData ( new StyleWrapper ( null , "test.sld" ) , sldContents ) ; sldData . setDataSourceProperties ( DataSourceConnectorFactory . getNoDataSource ( ) ) ; StyledLayerDescriptor sld = SLDUtils . createSLDFromString ( sldData ) ; return sld ; }


public static < T > T  def ( T original , T def )  { return original != null ? original : def ; }

Devuelva el original si no es nulo, de lo contrario, devuelve DEF.


protected void init  ( Table table , Graph graph , int row ) { m_table = table ; m_graph = graph ; m_row = m_table . isValidRow ( row ) ? row : - 1 ; }

Inicialice un nuevo nodo respaldado por una tabla de nodos.Este método es utilizado por la instancia de TUPLEMANAGER, y no se debe llamar directamente directamente por el código del cliente, a menos que sea realizado en Tuplanager personalizado.


public double distance  ( double x , double y ) { double dx = this . x - x ; double dy = this . y - y ; return Math . sqrt ( dx * dx + dy * dy ) ; }

Devuelve la distancia desde este punto hasta el punto dado.


@ Override public void onRequestError  ( int code , String message ) { progressDialog . cancel ( ) ; showMessage ( message ) ; }

Si la solicitud devuelve cualquier archivo de error se ejecuta para mostrar el mensaje de error al usuario.


protected static byte [ ] buildPayload  ( SendMessageType sendMessageType , MedtronicCNLSession pumpSession , byte [ ] payload ) throws EncryptionException { byte payloadLength = ( byte ) ( payload == null ? 0 : payload . length ) ; ByteBuffer sendPayloadBuffer = ByteBuffer . allocate ( ENCRYPTED_ENVELOPE_SIZE + payloadLength + CRC_SIZE ) ; sendPayloadBuffer . order ( ByteOrder . BIG_ENDIAN ) ; sendPayloadBuffer . put ( sendSequenceNumber ( sendMessageType ) ) ; sendPayloadBuffer . putShort ( sendMessageType . value ) ; if ( payloadLength != 0 ) { sendPayloadBuffer . put ( payload ) ; } sendPayloadBuffer . putShort ( ( short ) MessageUtils . CRC16CCITT ( sendPayloadBuffer . array ( ) , 0xffff , 0x1021 , ENCRYPTED_ENVELOPE_SIZE + payloadLength ) ) ; ByteBuffer payloadBuffer = ByteBuffer . allocate ( ENVELOPE_SIZE + sendPayloadBuffer . capacity ( ) ) ; payloadBuffer . order ( ByteOrder . LITTLE_ENDIAN ) ; payloadBuffer . putLong ( pumpSession . getPumpMAC ( ) ) ; payloadBuffer . put ( ( byte ) pumpSession . getMedtronicSequenceNumber ( ) ) ; payloadBuffer . put ( ( byte ) 0x10 ) ; payloadBuffer . put ( ( byte ) sendPayloadBuffer . capacity ( ) ) ; payloadBuffer . put ( encrypt ( pumpSession . getKey ( ) , pumpSession . getIV ( ) , sendPayloadBuffer . array ( ) ) ) ; return payloadBuffer . array ( ) ; }


public void processPackets  ( Player player , List < DataPacket > packets ) { if ( packets . isEmpty ( ) ) return ; List < Byte > filter = new ArrayList < > ( ) ; for ( DataPacket packet : packets ) { player . handleDataPacket ( packet ) ; } }

Paquetes de proceso obtenidos de paquetes por lotes requeridos para realizar análisis adicionales y filtrar paquetes innecesarios


private void postTreeBuildInit  ( CMNode nodeCur ) throws RuntimeException { nodeCur . setMaxStates ( fLeafCount ) ; XSCMLeaf leaf = null ; int pos = 0 ; if ( nodeCur . type ( ) == XSParticleDecl . PARTICLE_WILDCARD ) { leaf = ( XSCMLeaf ) nodeCur ; pos = leaf . getPosition ( ) ; fLeafList [ pos ] = leaf ; fLeafListType [ pos ] = XSParticleDecl . PARTICLE_WILDCARD ; } else if ( ( nodeCur . type ( ) == XSModelGroupImpl . MODELGROUP_CHOICE ) || ( nodeCur . type ( ) == XSModelGroupImpl . MODELGROUP_SEQUENCE ) ) { postTreeBuildInit ( ( ( XSCMBinOp ) nodeCur ) . getLeft ( ) ) ; postTreeBuildInit ( ( ( XSCMBinOp ) nodeCur ) . getRight ( ) ) ; } else if ( nodeCur . type ( ) == XSParticleDecl . PARTICLE_ZERO_OR_MORE || nodeCur . type ( ) == XSParticleDecl . PARTICLE_ONE_OR_MORE || nodeCur . type ( ) == XSParticleDecl . PARTICLE_ZERO_OR_ONE ) { postTreeBuildInit ( ( ( XSCMUniOp ) nodeCur ) . getChild ( ) ) ; } else if ( nodeCur . type ( ) == XSParticleDecl . PARTICLE_ELEMENT ) { leaf = ( XSCMLeaf ) nodeCur ; pos = leaf . getPosition ( ) ; fLeafList [ pos ] = leaf ; fLeafListType [ pos ] = XSParticleDecl . PARTICLE_ELEMENT ; } else { throw new RuntimeException ( "ImplementationMessages.VAL_NIICM" ) ; } }

Inicialización de construcción de árboles post.


protected int countToken  ( String token , String target ) { int tokenIndex = 0 ; int count = 0 ; while ( tokenIndex != - 1 ) { tokenIndex = target . indexOf ( token , tokenIndex ) ; if ( tokenIndex > - 1 ) { tokenIndex ++ ; count ++ ; } } return count ; }

Devuelve el número de veces que aparece el token en el objetivo.


public boolean dump_solution  ( ) { return soot . PhaseOptions . getBoolean ( options , "dump-solution" ) ; }

Solución de descarga - Solución final de descarga para comparación con otros solversos.Cuando esta opción se establece en VERDADERO, se vertida una representación de los puntos de punto resultantes a los conjuntos.El formato es similar al de la opción PAG de volcado, y por lo tanto es adecuado para comparación con los resultados de otros solversadores.


public void putMessageFormatter  ( String domain , MessageFormatter messageFormatter ) { fMessageFormatters . put ( domain , messageFormatter ) ; }

Registra un formato de mensaje para el dominio especificado.<P /> <strong> Nota: </ strong> registrando un formato de mensaje para un dominio cuando ya hay un formato registrado hará que se pierda el formateador anterior.Este método reemplaza cualquier formato de mensaje previamente registrado para el dominio especificado.


private TypeRef resolveType  ( Location location , FieldDescriptorProto . Type kind , String name ) { TypeRef type ; switch ( kind ) { case TYPE_MESSAGE : case TYPE_ENUM : case TYPE_GROUP : type = symbolTable . resolveType ( namespaces . peek ( ) , name ) ; break ; default : type = TypeRef . of ( kind ) ; } if ( type == null ) { model . getDiagCollector ( ) . addDiag ( Diag . error ( location , "Unresolved type '%s'" , name ) ) ; } return type ; }

Resuelve un tipo basado en el nombre parcial dado.Esto no asume que el nombre, como se obtiene del descriptor, está en forma absoluta.


public void add  ( Map . Entry < String , String > entry ) { if ( entry == null ) { throw new NullPointerException ( "context" ) ; } synchronized ( contexts ) { contexts . add ( Maps . immutableEntry ( entry . getKey ( ) , entry . getValue ( ) ) ) ; } }

Agrega un nuevo par de valor de clave al conjunto


public void show  ( String title ) { long overall = getTimer ( SELF ) . getCurrentTime ( ) ; Collection values = timers . values ( ) ; Timer . showTimesShortTitle ( title ) ; for ( Iterator i = values . iterator ( ) ; i . hasNext ( ) ; ) { Timer t = ( Timer ) i . next ( ) ; t . showTimes ( overall ) ; } }


public static void deleteFriend  ( Player deleter , int exFriend2Id ) { if ( DAOManager . getDAO ( FriendListDAO . class ) . delFriends ( deleter . getObjectId ( ) , exFriend2Id ) ) { Player friend2Player = PlayerService . getCachedPlayer ( exFriend2Id ) ; if ( friend2Player == null ) { friend2Player = World . getInstance ( ) . findPlayer ( exFriend2Id ) ; } String friend2Name = friend2Player != null ? friend2Player . getName ( ) : DAOManager . getDAO ( PlayerDAO . class ) . loadPlayerCommonData ( exFriend2Id ) . getName ( ) ; deleter . getFriendList ( ) . delFriend ( exFriend2Id ) ; deleter . getClientConnection ( ) . sendPacket ( new SM_FRIEND_LIST ( ) ) ; deleter . getClientConnection ( ) . sendPacket ( new SM_FRIEND_RESPONSE ( friend2Name , SM_FRIEND_RESPONSE . TARGET_REMOVED ) ) ; if ( friend2Player != null ) { friend2Player . getFriendList ( ) . delFriend ( deleter . getObjectId ( ) ) ; if ( friend2Player . isOnline ( ) ) { friend2Player . getClientConnection ( ) . sendPacket ( new SM_FRIEND_NOTIFY ( SM_FRIEND_NOTIFY . DELETED , deleter . getName ( ) ) ) ; friend2Player . getClientConnection ( ) . sendPacket ( new SM_FRIEND_LIST ( ) ) ; } } } }

Borra a dos jugadores de las listas de amigos de los demás, y actualiza la base de datos <ul> <li> Nota: no envía paquetes de notificación, y no envía nuevos paquetes de lista </ ul> </ li>


public static String stripQuotes  ( String string ) { if ( string . startsWith ( "\"\"\"" ) ) { return string . length ( ) <= 3 ? "" : string . substring ( 3 , endTrimIndex ( string , '"' , 3 ) ) ; } if ( string . startsWith ( "'''" ) ) { return string . length ( ) <= 3 ? "" : string . substring ( 3 , endTrimIndex ( string , '\'' , 3 ) ) ; } if ( string . startsWith ( "\"" ) ) { return string . substring ( 1 , endTrimIndex ( string , '"' , 1 ) ) ; } if ( string . startsWith ( "'" ) ) { return string . substring ( 1 , endTrimIndex ( string , '\'' , 1 ) ) ; } return string ; }

Elimina las cotizaciones principales y posteriores.Implementación ingenua destinada a resolver referencias (en cuyo caso se escapó de caracteres, cadenas crudas, etc., es poco probable).


public LaguerreSolver ( ) { this  ( DEFAULT_ABSOLUTE_ACCURACY ) ; }

Construir un solver con precisión predeterminada (1E-6).


public boolean isJiniProtocol  ( ) { return StringUtils . equalsIgnoreCase ( getProtocol ( ) , JINI_PROTOCOL ) ; }

Devuelve VERDADERO si el protocolo es Jini, falso de lo contrario.


public BorwsableObject ( Intent intent ) { if ( intent . getDataString ( ) == null ) { intentUri = null ; } else { intentUri = Uri . parse ( intent . getDataString ( ) ) ; } service = UserService . getService ( ) ; }


public boolean isEmpty  ( ) { synchronized ( contexts ) { return contexts . isEmpty ( ) ; } }


private void startAnimation  ( long time , OverviewAnimationType type , boolean finishImmediately ) { startAnimation ( time , type , TabModel . INVALID_TAB_INDEX , finishImmediately ) ; }


public static void pickImage  ( Activity activity , String chooserTitle ) { Intent chooseImageIntent = getPickImageIntent ( activity , chooserTitle ) ; activity . startActivityForResult ( chooseImageIntent , PICK_IMAGE_ID ) ; }

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


public boolean isWord  ( ) { return findChild ( '*' ) != null ; }

Prueba si este nodo marca el final de una palabra o no.