public static boolean isAccountPenaltyActive  ( Account account ) { AccountTime accountTime = account . getAccountTime ( ) ; return accountTime != null && accountTime . getPenaltyEnd ( ) != null && ( accountTime . getPenaltyEnd ( ) . getTime ( ) == 1000 || accountTime . getPenaltyEnd ( ) . getTime ( ) >= System . currentTimeMillis ( ) ) ; }

Comprobaciones si la cuenta está restringida por penalización o no


public static String commentIsValid  ( String comment ) { if ( comment == null || comment . trim ( ) . isEmpty ( ) ) { return null ; } if ( comment . length ( ) > VALUE_MAX_LENGTH ) { return "comment_length_greater_than_max_length" ; } return null ; }

Comprueba si el comentario dado es válido.Devuelve NULL si es válido y una cadena si es válida, los valores posibles son: </ P> <ul> <li> comment_length_greater_than_max_length </ li> </ ul>


public RRQRDecomposition ( RealMatrix matrix , double threshold ) { super ( matrix , threshold ) ; }

Calcula la descomposición QR de la matriz dada.


public void unindex  ( Tuple t , String attrName ) { throw new UnsupportedOperationException ( ) ; }

Este método arroja una excepción, como no se admite un poco.


public boolean isCritical  ( ) { return true ; }

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


@ Override public void sldDataUpdated  ( SLDDataInterface sldData , boolean dataEditedFlag ) { sldDataUpdated_methodReached = true ; sldDataUpdated_sldData = sldData ; sldDataUpdated_dataEditedFlag = dataEditedFlag ; }


public ScrollObject ( ) { this . toTop = true ; }


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Recall_Instant_A_TO_ME  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1201243 , skillcaster , skillname ) ; }

[% Skillcaster] le solicitó que sean convocados usando [% SkillName].


public Builder delayBeforeLoading  ( int delayInMillis ) { this . delayBeforeLoading = delayInMillis ; return this ; }

Establece el tiempo de retardo antes de comenzar la tarea de carga.Predeterminado - Sin demora.


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

Instantánea un nuevo objeto de excepción.


@ Override public void actionPerformed  ( ActionEvent ev ) { executeImmediately ( "set summarized=" + ( ! isSelected ( ) ) + ";" ) ; }


public void unbind  ( Object obj ) { Set < IBinding > bindings = getBindings ( obj . getClass ( ) ) ; for ( IBinding binding : bindings ) { binding . unbind ( ) ; } mBindings . remove ( obj . getClass ( ) ) ; }

Desinchere todas las enlaces en una cierta clase


public int hashCode  ( ) { return main . hashCode ( ) + boot . hashCode ( ) ; }

Devuelve un valor de código hash para este objeto.


@ Override public Optional < Object > provideValue  ( Object pageObject , Field field , PageObjectContext context ) { By selector = PageObjectProviderHelper . getSelectorFromPageObject ( field ) ; ElementLocatorFactory elementLocatorFactory = new NestedSelectorScopedLocatorFactory ( webDriver , selector , context . getElementLocatorFactory ( ) , AnnotationsHelper . isGlobal ( field ) ) ; final FramePath framePath = frameMap . get ( pageObject ) ; contextStack . push ( new PageObjectContext ( elementLocatorFactory , framePath ) ) ; Object scopedPageObject = null ; try { scopedPageObject = injector . getInstance ( field . getType ( ) ) ; } catch ( Exception e ) { if ( e instanceof ConfigurationException ) { ConfigurationException ce = ( ConfigurationException ) e ; throw new BobcatRuntimeException ( "Configuration exception: " + ce . getErrorMessages ( ) . toString ( ) , e ) ; } throw new BobcatRuntimeException ( e . getMessage ( ) , e ) ; } finally { contextStack . pop ( ) ; } return Optional . ofNullable ( scopedPageObject ) ; }

Este método produce valor para el campo.Construye el contexto para la creación fuera de la creación de la información del marco y la propia información del campo.


public void clearBasicAuth  ( ) { this . httpClient . getCredentialsProvider ( ) . clear ( ) ; }

Elimina establecer credenciales de autenticación básicas


public PhotosReorderPhotosQuery ( VkApiClient client , UserActor actor , int photoId ) { super ( client , "photos.reorderPhotos" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; photoId ( photoId ) ; }

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


public DataFrame toDataFrame  ( JavaSparkContext jsc , DependencyGraph graph , FeatureFrame featureFrame ) { List < ParsingContext > list = TransitionDecoder . decode ( graph , featureFrame ) ; JavaRDD < ParsingContext > javaRDD = jsc . parallelize ( list ) ; return sqlContext . createDataFrame ( javaRDD , ParsingContext . class ) ; }

Convierte un gráfico de dependencia a un marco de datos.


public void endFadeAnimation  ( ) { if ( mFadeAnimation != null ) { mFadeAnimation . end ( ) ; mFadeAnimation = null ; } }

Salta al final del logotipo de animación cruzada, si lo hubiera.


public synchronized void update  ( Vector2 mousePosition ) { this . beginPosition = mousePosition ; }

Actualiza la acción con la nueva posición de inicio en las coordenadas mundiales.<p> Esto se usa si la acción se realiza durante un período de tiempo en el que el usuario les gustaría comentarios visuales.


public LogSeqNum checkpoint  ( List < Long > txNums ) { return new CheckpointRecord ( txNums ) . writeToLog ( ) ; }

Escribe un registro de punto de control al registro.


public PropertiesUI ( Application application ) { initComponents ( ) ; setValues ( application ) ; }

Crea nueva instancia de Propertiesui para mostrar las propiedades de la aplicación proporcionada.


public boolean isSpringForce  ( ) { return true ; }


@ Override public void onBindViewHolder  ( final RecyclerView . ViewHolder holder , int positions ) { super . onBindViewHolder ( holder , positions ) ; int viewType = holder . getItemViewType ( ) ; if ( mItemTouchHelper != null && itemDragEnabled && viewType != LOADING_VIEW && viewType != HEADER_VIEW && viewType != EMPTY_VIEW && viewType != FOOTER_VIEW ) { if ( mToggleViewId != NO_TOGGLE_VIEW ) { View toggleView = ( ( BaseViewHolder ) holder ) . getView ( mToggleViewId ) ; if ( toggleView != null ) { toggleView . setTag ( R . id . BaseQuickAdapter_viewholder_support , holder ) ; if ( mDragOnLongPress ) { toggleView . setOnLongClickListener ( mOnToggleViewLongClickListener ) ; } else { toggleView . setOnTouchListener ( mOnToggleViewTouchListener ) ; } } } else { holder . itemView . setTag ( R . id . BaseQuickAdapter_viewholder_support , holder ) ; holder . itemView . setOnLongClickListener ( mOnToggleViewLongClickListener ) ; } } }

Para enlazar diferentes tipos de titulares y resolver diferentes eventos de vínculos.


public ZonedTimeGrain withZone  ( DateTimeZone dateTimeZone ) { return new ZonedTimeGrain ( this . getBaseTimeGrain ( ) , dateTimeZone ) ; }

Crea un zonedtimegrain con el mismo grano base y una zona horaria diferente.


public String scanPseudoAttribute  ( boolean scanningTextDecl , XMLString value ) throws IOException , XNIException { String name = fEntityScanner . scanName ( ) ; XMLEntityManager . print ( fEntityManager . getCurrentEntity ( ) ) ; if ( name == null ) { reportFatalError ( "PseudoAttrNameExpected" , null ) ; } fEntityScanner . skipDeclSpaces ( ) ; if ( ! fEntityScanner . skipChar ( '=' ) ) { reportFatalError ( scanningTextDecl ? "EqRequiredInTextDecl" : "EqRequiredInXMLDecl" , new Object [ ] { name } ) ; } fEntityScanner . skipDeclSpaces ( ) ; int quote = fEntityScanner . peekChar ( ) ; if ( quote != '\'' && quote != '"' ) { reportFatalError ( scanningTextDecl ? "QuoteRequiredInTextDecl" : "QuoteRequiredInXMLDecl" , new Object [ ] { name } ) ; } fEntityScanner . scanChar ( ) ; int c = fEntityScanner . scanLiteral ( quote , value ) ; if ( c != quote ) { fStringBuffer2 . clear ( ) ; do { fStringBuffer2 . append ( value ) ; if ( c != - 1 ) { if ( c == '&' || c == '%' || c == '<' || c == ']' ) { fStringBuffer2 . append ( ( char ) fEntityScanner . scanChar ( ) ) ; } else if ( XMLChar . isHighSurrogate ( c ) ) { scanSurrogates ( fStringBuffer2 ) ; } else if ( isInvalidLiteral ( c ) ) { String key = scanningTextDecl ? "InvalidCharInTextDecl" : "InvalidCharInXMLDecl" ; reportFatalError ( key , new Object [ ] { Integer . toString ( c , 16 ) } ) ; fEntityScanner . scanChar ( ) ; } } c = fEntityScanner . scanLiteral ( quote , value ) ; } while ( c != quote ) ; fStringBuffer2 . append ( value ) ; value . setValues ( fStringBuffer2 ) ; } if ( ! fEntityScanner . skipChar ( quote ) ) { reportFatalError ( scanningTextDecl ? "CloseQuoteMissingInTextDecl" : "CloseQuoteMissingInXMLDecl" , new Object [ ] { name } ) ; } return name ; }


public PhotosGetByIdQueryWithExtended ( VkApiClient client , UserActor actor , List < String > photos ) { super ( client , "photos.getById" , Utils . buildParametrizedType ( List . class , PhotoFull . class ) ) ; accessToken ( actor . getAccessToken ( ) ) ; photos ( photos ) ; extended ( true ) ; }


public VendorOptionFillFactory ( Class < ? > panelId , FunctionNameInterface functionManager ) { vendorOptionGeoServerRandomFill = new VOGeoServerRandomFill ( panelId , functionManager ) ; vendorOptionList . add ( vendorOptionGeoServerRandomFill ) ; PrefManager . getInstance ( ) . addVendorOptionListener ( this ) ; }

Instantánea una nueva opción de opción de opción de proveedor.


public void handleDecode  ( Result result , Bitmap barcode ) { inactivityTimer . onActivity ( ) ; playBeepSoundAndVibrate ( ) ; if ( result == null || TextUtils . isEmpty ( result . getText ( ) ) ) { if ( analyzeCallback != null ) { analyzeCallback . onAnalyzeFailed ( ) ; } } else { if ( analyzeCallback != null ) { analyzeCallback . onAnalyzeSuccess ( barcode , result . getText ( ) ) ; } } }

Resultado de la exploración del manejador


public static void showProgressDialog  ( final Context context ) { showProgressDialog ( context , DEFAULT_TAG , null ) ; }

Muestra diálogo de progreso predeterminado sin ningún mensaje.


public boolean hasLabels  ( ) { return sample2label . size ( ) > 0 ; }


@ TargetApi ( 11 ) public void centerViewToAnimated  ( float xIndex , float yValue , AxisDependency axis , long duration ) { if ( android . os . Build . VERSION . SDK_INT >= 11 ) { PointD bounds = getValuesByTouchPoint ( mViewPortHandler . contentLeft ( ) , mViewPortHandler . contentTop ( ) , axis ) ; float valsInView = getDeltaY ( axis ) / mViewPortHandler . getScaleY ( ) ; float xsInView = getXAxis ( ) . getValues ( ) . size ( ) / mViewPortHandler . getScaleX ( ) ; Runnable job = new AnimatedMoveViewJob ( mViewPortHandler , xIndex - xsInView / 2f , yValue + valsInView / 2f , getTransformer ( axis ) , this , ( float ) bounds . x , ( float ) bounds . y , duration ) ; addViewportJob ( job ) ; } else { Log . e ( LOG_TAG , "Unable to execute centerViewToAnimated(...) on API level < 11" ) ; } }

Esto moverá el centro de la ventana corriente al valor X específico y el valor Y-ANIMADO.


@ Override public void skippedEntity  ( String name ) throws SAXException { return ; }

El método SAX <CÓDIGO> SALIDA </ CODE> no hace nada.


public StatsGetPostReachQuery ( VkApiClient client , UserActor actor , int ownerId , int postId ) { super ( client , "stats.getPostReach" , Utils . buildParametrizedType ( List . class , WallpostStat . class ) ) ; accessToken ( actor . getAccessToken ( ) ) ; ownerId ( ownerId ) ; postId ( postId ) ; }


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

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


private static Bitmap drawableToBitmap  ( Drawable d ) { return d == null ? null : ( ( BitmapDrawable ) d ) . getBitmap ( ) ; }


public Matrix ( int m , int n , double s ) { this . m = m ; this . n = n ; A = new double [ m ] [ n ] ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { A [ i ] [ j ] = s ; } } }


public boolean isValidMethod  ( SootMethod sm ) { if ( validMethods != null ) { String sig = sm . toString ( ) ; if ( ! validMethods . containsKey ( sig ) ) return false ; validMethods . put ( sig , Boolean . TRUE ) ; } return true ; }

Decir si el método dado está en el archivo dado por la opción "cg.spark geom-verify-name".


public IterativeLegendreGaussIntegrator ( final int n , final double relativeAccuracy , final double absoluteAccuracy ) throws MathIllegalArgumentException { this ( n , relativeAccuracy , absoluteAccuracy , DEFAULT_MIN_ITERATIONS_COUNT , DEFAULT_MAX_ITERATIONS_COUNT ) ; }

Construye un integrador con las precisiones dadas.


private void updateAnimationTime  ( ) { long now = android . os . SystemClock . uptimeMillis ( ) ; if ( mMovieStart == 0 ) { mMovieStart = now ; } int dur = mMovie . duration ( ) ; if ( dur == 0 ) { dur = DEFAULT_MOVIEW_DURATION ; } mCurrentAnimationTime = ( int ) ( ( now - mMovieStart ) % dur ) ; }


public void append  ( byte [ ] utf8 , int start , int len ) { setCapacity ( length + len , true ) ; System . arraycopy ( utf8 , start , bytes , length , len ) ; length += len ; }

Anexen una gama de bytes hasta el final del texto dado.


protected MultivaluedHashMap < String , Serializable > buildHeaderList  ( ) { return new MultivaluedHashMap < > ( ) ; }

Crea encabezados que pertenecen a la respuesta.


protected void handleColumnChanged  ( Column c , int start , int end ) { for ( ; ! isValidRow ( start ) && start <= end ; ++ start ) ; if ( start > end ) return ; int idx ; if ( m_lastCol != - 1 && c == getColumn ( m_lastCol ) ) { idx = m_lastCol ; } else { idx = getColumnNumber ( c ) ; } if ( idx >= 0 ) { fireTableEvent ( start , end , idx , TableModelEvent . UPDATE ) ; } }


public GSXAConnectionImpl ( GSXAConnectionFactoryImpl factory ) throws JMSException { super ( factory ) ; }

Crea una instancia de gsxaconnectionimpl.


public boolean IsOptSet  ( int inOptNum ) { if ( this . optionsList == null ) { initialize ( ) ; } return this . optionsList . contains ( ( byte ) inOptNum ) ; }

Informe si se establece o no la opción de entrada.


private static final void cleanupSingleNamespaceNode  ( ZooKeeper zkc , String path , String selfBrokerUrl ) throws Exception { String brokerUrl = null ; try { byte [ ] data = zkc . getData ( path , false , null ) ; if ( data . length == 0 ) { return ; } NamespaceEphemeralData zdata = jsonMapper . readValue ( data , NamespaceEphemeralData . class ) ; brokerUrl = zdata . getNativeUrl ( ) ; if ( selfBrokerUrl . equals ( brokerUrl ) ) { zkc . delete ( path , - 1 ) ; } } catch ( NoNodeException nne ) { } }

LimpiarSinglenamespacenode solo se llama cuando se inicializa los nombresPaceService.Entonces, no hay necesidad de sincronización.


public static boolean isColorDark  ( int color ) { return ( ( 30 * Color . red ( color ) + 59 * Color . green ( color ) + 11 * Color . blue ( color ) ) / 100 ) <= BRIGHTNESS_THRESHOLD ; }

Calcule si un color es ligero u oscuro, basado en una fórmula de brillo comúnmente conocida.


@ SuppressFBWarnings ( "LI_LAZY_INIT_UPDATE_STATIC" ) static void refreshLastKnownLocation  ( Context context , long maxAge ) { ThreadUtils . assertOnUiThread ( ) ; if ( sListener != null ) return ; LocationManager locationManager = ( LocationManager ) context . getSystemService ( Context . LOCATION_SERVICE ) ; Location location = locationManager . getLastKnownLocation ( LocationManager . NETWORK_PROVIDER ) ; if ( location == null || getLocationAge ( location ) > maxAge ) { String provider = LocationManager . NETWORK_PROVIDER ; if ( locationManager . isProviderEnabled ( provider ) ) { sListener = new SelfCancelingListener ( locationManager ) ; locationManager . requestSingleUpdate ( provider , sListener , null ) ; } } }

Solicita una ubicación actualizada si la última ubicación conocida es mayor que el máximo de milisegundos.Nota: Esto debe ser llamado solo en el hilo de UI.


public void putListBoolean  ( String key , ArrayList < Boolean > boolList ) { checkForNullKey ( key ) ; ArrayList < String > newList = new ArrayList < String > ( ) ; for ( Boolean item : boolList ) { if ( item ) { newList . add ( "true" ) ; } else { newList . add ( "false" ) ; } } putListString ( key , newList ) ; }

Ponga el Lista de Array de Boolean en SharedPreferences con 'Clave' y ahorre


public void attribute  ( String elemName , String attrName , String type , String value ) { ElementType e = getElementType ( elemName ) ; if ( e == null ) { throw new Error ( "Attribute " + attrName + " specified for unknown element type " + elemName ) ; } e . setAttribute ( attrName , type , value ) ; }

Agregue o reemplace un atributo predeterminado para un tipo de elemento en este esquema.


static public LookupLocator [ ] toLookupLocators  ( String lookupLocatorURLs ) { String locatorURL = null ; ArrayList < LookupLocator > locatorList = new ArrayList < LookupLocator > ( ) ; if ( lookupLocatorURLs != null && lookupLocatorURLs . length ( ) > 0 ) { StringTokenizer st = new StringTokenizer ( lookupLocatorURLs , "," ) ; while ( st . hasMoreTokens ( ) ) { try { locatorURL = st . nextToken ( ) . trim ( ) ; if ( locatorURL . length ( ) == 0 || locatorURL . equals ( "\"\"" ) ) { continue ; } if ( ! locatorURL . startsWith ( "jini://" ) ) { locatorURL = "jini://" + locatorURL ; } LookupLocator lookupLocator = new LookupLocator ( locatorURL ) ; locatorList . add ( lookupLocator ) ; } catch ( MalformedURLException ex ) { if ( LOGGER . isLoggable ( Level . WARNING ) ) { LOGGER . log ( Level . WARNING , "Failed to parse list of LookupLocator URLs: " + locatorURL + " - " + ex . toString ( ) , ex ) ; } } } } if ( LOGGER . isLoggable ( Level . FINE ) ) { LOGGER . log ( Level . FINE , locatorList . toString ( ) ) ; } return locatorList . toArray ( new LookupLocator [ 0 ] ) ; }

Analice una serie de URLS y construya una serie de URLS y de construcción de <código> Lookuplocator </ code> fuera de él.Por ejemplo: "Host1: 4180, Host2: 4180, Host3: 4180"


public boolean isCanReport  ( ) { if ( canReport == null ) { return false ; } else { return canReport ; } }

Obtiene el valor de la propiedad Canreport.


private void hideView  ( String type ) { switch ( type ) { case HEADERVIEW : if ( mHeaderView . getLayoutParams ( ) . height < mHeaderViewHeight ) { startAnimator ( mHeaderView , mHeaderView . getLayoutParams ( ) . height , 0 ) ; } else { startAnimator ( mHeaderView , mHeaderView . getLayoutParams ( ) . height , mHeaderViewHeight ) ; } isLoadingMoreData = false ; break ; case FOOTERVIEW : if ( mFooterView . getLayoutParams ( ) . height < mFooterViewHeight ) { startAnimator ( mFooterView , mFooterView . getLayoutParams ( ) . height , 0 ) ; } else { startAnimator ( mFooterView , mFooterView . getLayoutParams ( ) . height , mFooterViewHeight ) ; } isLoadingData = false ; break ; } }


@ RequestMapping ( value = "/data-counters" , method = RequestMethod . PUT , produces = MediaType . APPLICATION_JSON_VALUE ) @ Timed public ResponseEntity < DataCounter > updateDataCounter  ( @ RequestBody DataCounter dataCounter ) throws URISyntaxException { log . debug ( "REST request to update DataCounter : {}" , dataCounter ) ; DataCounter result = dataCounterRepository . save ( dataCounter ) ; return ResponseEntity . ok ( ) . headers ( HeaderUtil . createEntityUpdateAlert ( "dataCounter" , dataCounter . getVtype ( ) ) ) . body ( result ) ; }

PUT / CONTADORES DE DATOS: Actualiza un Datacuntario existente.


private void initModel  ( ) { this . categoryModel = new CategoryObject ( getContext ( ) ) ; this . loadModel = new LoadObject ( LoadObject . LOADING_STATE ) ; this . scrollModel = new ScrollObject ( ) ; }


@ RequestMapping ( value = "/account" , method = RequestMethod . POST , produces = MediaType . APPLICATION_JSON_VALUE ) @ Timed public ResponseEntity < String > saveAccount  ( @ Valid @ RequestBody UserDTO userDTO ) { Optional < User > existingUser = userRepository . findOneByEmail ( userDTO . getEmail ( ) ) ; if ( existingUser . isPresent ( ) && ( ! existingUser . get ( ) . getLogin ( ) . equalsIgnoreCase ( userDTO . getLogin ( ) ) ) ) { return ResponseEntity . badRequest ( ) . headers ( HeaderUtil . createFailureAlert ( "user-management" , "emailexists" , "Email already in use" ) ) . body ( null ) ; } return userRepository . findOneByLogin ( SecurityUtils . getCurrentUserLogin ( ) ) . map ( null ) . orElseGet ( null ) ; }

POST / CUENTA: actualice la información actual del usuario.


public < T4 > Pattern4 < T1 , T2 , T3 , T4 > and  ( Observable < T4 > other ) { if ( other == null ) { throw new NullPointerException ( ) ; } return new Pattern4 < T1 , T2 , T3 , T4 > ( o1 , o2 , o3 , other ) ; }

Crea un patrón que coincide con cuando las tres secuencias observables tienen un elemento disponible.


protected void persistProcessDefinitionsAndAuthorizations  ( ParsedDeployment parsedDeployment ) { CommandContext commandContext = Context . getCommandContext ( ) ; ProcessDefinitionEntityManager processDefinitionManager = commandContext . getProcessDefinitionEntityManager ( ) ; for ( ProcessDefinitionEntity processDefinition : parsedDeployment . getAllProcessDefinitions ( ) ) { processDefinitionManager . insert ( processDefinition , false ) ; bpmnDeploymentHelper . addAuthorizationsForNewProcessDefinition ( parsedDeployment . getProcessModelForProcessDefinition ( processDefinition ) , processDefinition ) ; } }

Guarda cada definición de proceso.Se supone que la implementación es nueva, las definiciones nunca se han guardado antes, y que tienen todos sus valores correctamente configurados.


private static void log  ( String log , Object ... args ) { if ( verbose ) if ( args . length > 0 ) Log . d ( TAG , log + " " + Arrays . asList ( args ) ) ; else Log . d ( TAG , log ) ; }


public List < SootMethod > application  ( ) { List < SootMethod > ret = new ArrayList < SootMethod > ( ) ; if ( Scene . v ( ) . hasMainClass ( ) ) { addMethod ( ret , Scene . v ( ) . getMainClass ( ) , sigMain ) ; for ( SootMethod clinit : clinitsOf ( Scene . v ( ) . getMainClass ( ) ) ) { ret . add ( clinit ) ; } } return ret ; }

Devuelve solo los puntos de entrada de la aplicación, sin incluir los puntos de entrada invocados implícitamente por la VM.


public static GeneralPath cardinalSpline  ( GeneralPath p , float pts [ ] , float slack , boolean closed , float tx , float ty ) { int npoints = 0 ; for ( ; npoints < pts . length ; ++ npoints ) if ( Float . isNaN ( pts [ npoints ] ) ) break ; return cardinalSpline ( p , pts , 0 , npoints / 2 , slack , closed , tx , ty ) ; }

Calcule un spline cardinal, una serie de bezier cúbicos se divide suavemente que conecta un conjunto de puntos.Splines cardinales Mantenga la continuidad C (1), asegurando que los segmentos de spline conectados formen una curva diferenciable, lo que garantiza al menos un nivel mínimo de suavidad.


public static String pad  ( int padding ) { if ( padding > 0 ) { StringBuffer sb = new StringBuffer ( padding ) ; for ( int i = 0 ; i < padding ; i ++ ) { sb . append ( ' ' ) ; } return sb . toString ( ) ; } else { return "" ; } }

Devuelve una cadena con el número dado de espacios.


protected void onBindDialogView  ( View view ) { View dialogMessageView = view . findViewById ( R . id . message ) ; if ( dialogMessageView != null ) { final CharSequence message = getDialogMessage ( ) ; int newVisibility = View . GONE ; if ( ! TextUtils . isEmpty ( message ) ) { if ( dialogMessageView instanceof TextView ) { ( ( TextView ) dialogMessageView ) . setText ( message ) ; } newVisibility = View . VISIBLE ; } if ( dialogMessageView . getVisibility ( ) != newVisibility ) { dialogMessageView . setVisibility ( newVisibility ) ; } } }

Se liga a las vistas en la vista de contenido del diálogo a los datos.<p> Asegúrese de llamar a la implementación de SuperClass.


public boolean scanData  ( String delimiter , XMLStringBuffer buffer ) throws IOException { boolean found = false ; int delimLen = delimiter . length ( ) ; char charAt0 = delimiter . charAt ( 0 ) ; boolean external = fCurrentEntity . isExternal ( ) ; if ( DEBUG_BUFFER ) { System . out . print ( "(scanData: " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } if ( fCurrentEntity . position == fCurrentEntity . count ) { load ( 0 , true ) ; } boolean bNextEntity = false ; while ( ( fCurrentEntity . position > fCurrentEntity . count - delimLen ) && ( ! bNextEntity ) ) { System . arraycopy ( fCurrentEntity . ch , fCurrentEntity . position , fCurrentEntity . ch , 0 , fCurrentEntity . count - fCurrentEntity . position ) ; bNextEntity = load ( fCurrentEntity . count - fCurrentEntity . position , false ) ; fCurrentEntity . position = 0 ; fCurrentEntity . startPosition = 0 ; } if ( fCurrentEntity . position > fCurrentEntity . count - delimLen ) { int length = fCurrentEntity . count - fCurrentEntity . position ; buffer . append ( fCurrentEntity . ch , fCurrentEntity . position , length ) ; fCurrentEntity . columnNumber += fCurrentEntity . count ; fCurrentEntity . baseCharOffset += ( fCurrentEntity . position - fCurrentEntity . startPosition ) ; fCurrentEntity . position = fCurrentEntity . count ; fCurrentEntity . startPosition = fCurrentEntity . count ; load ( 0 , true ) ; return false ; } int offset = fCurrentEntity . position ; int c = fCurrentEntity . ch [ offset ] ; int newlines = 0 ; if ( c == '\n' || ( c == '\r' && external ) ) { if ( DEBUG_BUFFER ) { System . out . print ( "[newline, " + offset + ", " + fCurrentEntity . position + ": " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } do { c = fCurrentEntity . ch [ fCurrentEntity . position ++ ] ; if ( c == '\r' && external ) { newlines ++ ; fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count ) { offset = 0 ; fCurrentEntity . baseCharOffset += ( fCurrentEntity . position - fCurrentEntity . startPosition ) ; fCurrentEntity . position = newlines ; fCurrentEntity . startPosition = newlines ; if ( load ( newlines , false ) ) { break ; } } if ( fCurrentEntity . ch [ fCurrentEntity . position ] == '\n' ) { fCurrentEntity . position ++ ; offset ++ ; } else { newlines ++ ; } } else if ( c == '\n' ) { newlines ++ ; fCurrentEntity . lineNumber ++ ; fCurrentEntity . columnNumber = 1 ; if ( fCurrentEntity . position == fCurrentEntity . count ) { offset = 0 ; fCurrentEntity . baseCharOffset += ( fCurrentEntity . position - fCurrentEntity . startPosition ) ; fCurrentEntity . position = newlines ; fCurrentEntity . startPosition = newlines ; fCurrentEntity . count = newlines ; if ( load ( newlines , false ) ) { break ; } } } else { fCurrentEntity . position -- ; break ; } } while ( fCurrentEntity . position < fCurrentEntity . count - 1 ) ; for ( int i = offset ; i < fCurrentEntity . position ; i ++ ) { fCurrentEntity . ch [ i ] = '\n' ; } int length = fCurrentEntity . position - offset ; if ( fCurrentEntity . position == fCurrentEntity . count - 1 ) { buffer . append ( fCurrentEntity . ch , offset , length ) ; if ( DEBUG_BUFFER ) { System . out . print ( "]newline, " + offset + ", " + fCurrentEntity . position + ": " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } return true ; } if ( DEBUG_BUFFER ) { System . out . print ( "]newline, " + offset + ", " + fCurrentEntity . position + ": " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( ) ; } } OUTER : while ( fCurrentEntity . position < fCurrentEntity . count ) { c = fCurrentEntity . ch [ fCurrentEntity . position ++ ] ; if ( c == charAt0 ) { int delimOffset = fCurrentEntity . position - 1 ; for ( int i = 1 ; i < delimLen ; i ++ ) { if ( fCurrentEntity . position == fCurrentEntity . count ) { fCurrentEntity . position -= i ; break OUTER ; } c = fCurrentEntity . ch [ fCurrentEntity . position ++ ] ; if ( delimiter . charAt ( i ) != c ) { fCurrentEntity . position -- ; break ; } } if ( fCurrentEntity . position == delimOffset + delimLen ) { found = true ; break ; } } else if ( c == '\n' || ( external && c == '\r' ) ) { fCurrentEntity . position -- ; break ; } else if ( XMLChar . isInvalid ( c ) ) { fCurrentEntity . position -- ; int length = fCurrentEntity . position - offset ; fCurrentEntity . columnNumber += length - newlines ; buffer . append ( fCurrentEntity . ch , offset , length ) ; return true ; } } int length = fCurrentEntity . position - offset ; fCurrentEntity . columnNumber += length - newlines ; if ( found ) { length -= delimLen ; } buffer . append ( fCurrentEntity . ch , offset , length ) ; if ( DEBUG_BUFFER ) { System . out . print ( ")scanData: " ) ; XMLEntityManager . print ( fCurrentEntity ) ; System . out . println ( " -> " + ! found ) ; } return ! found ; }

Escanea una gama de datos de caracteres hasta el delimitador especificado, configurando los campos de la estructura XMLString, adecuadamente.<p /> <strong> Nota: </ strong> los personajes se consumen.<p /> <strong> Nota: </ strong> Esto supone que el tampón interno es al menos el mismo tamaño, o más grande, que la longitud del delimitador y que el delimitador contiene al menos un carácter.<p /> <strong> Nota: </ strong> Este método no garantiza devolver la ejecución más larga de los datos de caracteres.Este método puede regresar antes del delimitador debido a que llegue al final del búfer de entrada o cualquier otra razón.<p /> <strong> Nota: </ strong> Los campos contenidos en la estructura XMLString no están garantizados para permanecer válidos en las llamadas posteriores al escáner de la entidad.Por lo tanto, la persona que llama es responsable de utilizar de inmediato los datos de caracteres devueltos o hacer una copia de los datos de caracteres.


public synchronized void begin  ( int size ) { timer . start ( "utteranceOutput" ) ; cancelled = false ; curIndex = 0 ; outputData = new byte [ size ] ; }

Inicia la salida de un conjunto de datos.Los datos de audio para una sola expresión deben agruparse entre pares de inicio / finales.


public static boolean isPrecaching  ( ) { return sIsPrecaching ; }

Devuelve VERDADERO si hay un precaculo en progreso.


public NGramDocument ( ) { Graph = new DocumentNGramGraph ( ) ; Histogram = new DocumentNGramHistogram ( ) ; }

Crea una nueva instancia de insectdocument.


public long putIfAbsent  ( K key , long value ) { int index = insertionIndex ( key ) ; if ( index < 0 ) return _values [ - index - 1 ] ; return doPut ( key , value , index ) ; }

Inserta un par de claves / valor en el mapa si la tecla especificada aún no está asociada con un valor.


public void updateIntent  ( Intent intent ) { mIsMainIntent = intent != null && Intent . ACTION_MAIN . equals ( intent . getAction ( ) ) ; mFirstActionTaken = NO_ACTIVITY ; mSessionStartTimestamp = System . nanoTime ( ) ; mRecordedHistogram = false ; }

Inicia la recopilación de métricas para la última intención enviada a la documentación o la crometabbedactivity.Esto sucede en todas las intenciones que vienen de launciador / Aplicación externa para la documentación y cada vez que obtengan en el modo () en el modo Chrometabbedactivity.


protected PhotosSaveMarketAlbumPhotoQuery photo  ( String value ) { return unsafeParam ( "photo" , value ) ; }

Parámetro devuelto cuando las fotos se cargan en el servidor.


public void quit  ( ) { mQuit = true ; interrupt ( ) ; }

Obliga a este despachador a dejar de fumar inmediatamente.Si alguna solicitud aún está en la cola, no se garantiza que se procesen.


public boolean validate  ( ) throws IOException , XmlParsingException  { executeValidationCommand ( ) ; return analyzeResult ( ) ; }

Realiza la validación del imp y CPL dado.Todos los errores y advertencia se registran.


public static boolean isswitch  ( String cc ) { String first4digs = cc . substring ( 0 , 4 ) ; String first6digs = cc . substring ( 0 , 6 ) ; if ( ( ( cc . length ( ) == 16 ) || ( cc . length ( ) == 18 ) || ( cc . length ( ) == 19 ) ) && ( first4digs . equals ( "4903" ) || first4digs . equals ( "4905" ) || first4digs . equals ( "4911" ) || first4digs . equals ( "4936" ) || first6digs . equals ( "564182" ) || first6digs . equals ( "633110" ) || first4digs . equals ( "6333" ) || first4digs . equals ( "6759" ) ) ) return isCreditCard ( cc ) ; return false ; }

Cheques para ver si el número CC es un número de conmutador válido


public static byte [ ] toByteArray  ( Reader input , String encoding ) throws IOException { return toByteArray ( input , Charsets . toCharset ( encoding ) ) ; }

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


protected void saveLanguage  ( String language ) { fLanguageScope . push ( fDepth ) ; fLanguageStack . push ( language ) ; }

Guarda el idioma dado en la parte superior de la pila.


public static String removeExtraSpaces  ( String text ) { text = text . replace ( ChineseLanguageConstants . SPACE [ 0 ] , ChineseLanguageConstants . SPACE [ 1 ] ) ; text = text . replaceAll ( "[ \t\u000B\u000C\u00A0\uE5F1]+" , " " ) ; text = text . replaceAll ( "(^ +)|( +$)" , "" ) ; return text ; }

Eliminar espacios adicionales, lo que significa que más de un espacio continuo se reducirá a un espacio.El espacio aquí no se limita al carácter de espacio en blanco% 32, también incluye la pestaña, el espacio en la letra de ancho completo chino y otros caracteres especiales que aparecen como un espacio en blanco.Se eliminan los espacios en el principio o en el extremo de una línea.


public DefaultMovieInfoProvider ( MediaLocator mediaLocator ) { this . mediaLocator = mediaLocator ; }

Crea una nueva instancia de defaultMovieinfoproVider


public boolean union  ( RWSet other ) { if ( other == null ) return false ; if ( isFull ) return false ; boolean ret = false ; if ( other instanceof MethodRWSet ) { MethodRWSet o = ( MethodRWSet ) other ; if ( o . getCallsNative ( ) ) { ret = ! getCallsNative ( ) | ret ; setCallsNative ( ) ; } if ( o . isFull ) { ret = ! isFull | ret ; isFull = true ; if ( true ) throw new RuntimeException ( "attempt to add full set " + o + " into " + this ) ; globals = null ; fields = null ; return ret ; } if ( o . globals != null ) { if ( globals == null ) globals = new HashSet ( ) ; ret = globals . addAll ( o . globals ) | ret ; if ( globals . size ( ) > MAX_SIZE ) { globals = null ; isFull = true ; throw new RuntimeException ( "attempt to add full set " + o + " into " + this ) ; } } if ( o . fields != null ) { for ( Object element : o . fields . keySet ( ) ) { final Object field = element ; PointsToSet os = o . getBaseForField ( field ) ; ret = addFieldRef ( os , field ) | ret ; } } } else { StmtRWSet oth = ( StmtRWSet ) other ; if ( oth . base != null ) { ret = addFieldRef ( oth . base , oth . field ) | ret ; } else if ( oth . field != null ) { ret = addGlobal ( ( SootField ) oth . field ) | ret ; } } if ( ! getCallsNative ( ) && other . getCallsNative ( ) ) { setCallsNative ( ) ; return true ; } return ret ; }


@ Override public boolean equals  ( Object o ) { return o instanceof AirMapAircraftModel && ( ( AirMapAircraftModel ) o ) . getModelId ( ) . equals ( getModelId ( ) ) ; }


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


@ ObjectiveCName ( "removeEntry:" ) public List removeEntry  ( String entry ) { Collection entries = this . getEntries ( ) ; while ( entries . contains ( entry ) ) entries . remove ( entry ) ; this . updateList ( entries ) ; return this ; }

Elimina la primera aparición de una entrada de la lista


@ Override public String toString  ( ) { return getMessage ( ) ; }


public static synchronized void deleteByReponame  ( String repoName ) throws IOException { Directory dir = FSDirectory . open ( Paths . get ( Properties . getProperties ( ) . getProperty ( Values . INDEXLOCATION , Values . DEFAULTINDEXLOCATION ) ) ) ; Analyzer analyzer = new CodeAnalyzer ( ) ; IndexWriterConfig iwc = new IndexWriterConfig ( analyzer ) ; iwc . setOpenMode ( IndexWriterConfig . OpenMode . CREATE_OR_APPEND ) ; IndexWriter writer = new IndexWriter ( dir , iwc ) ; writer . deleteDocuments ( new Term ( Values . REPONAME , repoName ) ) ; writer . close ( ) ; }

Elimina todos los archivos que pertenecen a un repositorio.TODO No creo que esto desaparezca nada de las facetas, que debería


private void unknownPacket  ( State state , int id ) { log . warn ( String . format ( "Unknown packet recived from Login Server: 0x%02X state=%s" , id , state . toString ( ) ) ) ; }


public Durator ( CART cart , float meanRate , PhoneDurations durations ) { this . cart = cart ; this . meanRate = meanRate ; this . durations = durations ; }

Crea una nueva duración de suprocesador con el carro y las duraciones telefónicas dadas.


public KeyRef ( String namespace , String identityConstraintName , String elemName , UniqueOrKey key ) { super ( namespace , identityConstraintName , elemName ) ; fKey = key ; type = IC_KEYREF ; }

Construye un keyRef con el nombre especificado.


private static boolean parse  ( XMLTokener x , JSONObject context , String name ) throws JSONException { char c ; int i ; String n ; JSONObject o = null ; String s ; Object t ; t = x . nextToken ( ) ; if ( t == BANG ) { c = x . next ( ) ; if ( c == '-' ) { if ( x . next ( ) == '-' ) { x . skipPast ( "-->" ) ; return false ; } x . back ( ) ; } else if ( c == '[' ) { t = x . nextToken ( ) ; if ( t . equals ( "CDATA" ) ) { if ( x . next ( ) == '[' ) { s = x . nextCDATA ( ) ; if ( s . length ( ) > 0 ) { context . accumulate ( "content" , s ) ; } return false ; } } throw x . syntaxError ( "Expected 'CDATA['" ) ; } i = 1 ; do { t = x . nextMeta ( ) ; if ( t == null ) { throw x . syntaxError ( "Missing '>' after '<!'." ) ; } else if ( t == LT ) { i += 1 ; } else if ( t == GT ) { i -= 1 ; } } while ( i > 0 ) ; return false ; } else if ( t == QUEST ) { x . skipPast ( "?>" ) ; return false ; } else if ( t == SLASH ) { t = x . nextToken ( ) ; if ( name == null ) { throw x . syntaxError ( "Mismatched close tag" + t ) ; } if ( ! t . equals ( name ) ) { throw x . syntaxError ( "Mismatched " + name + " and " + t ) ; } if ( x . nextToken ( ) != GT ) { throw x . syntaxError ( "Misshaped close tag" ) ; } return true ; } else if ( t instanceof Character ) { throw x . syntaxError ( "Misshaped tag" ) ; } else { n = ( String ) t ; t = null ; o = new JSONObject ( ) ; for ( ; ; ) { if ( t == null ) { t = x . nextToken ( ) ; } if ( t instanceof String ) { s = ( String ) t ; t = x . nextToken ( ) ; if ( t == EQ ) { t = x . nextToken ( ) ; if ( ! ( t instanceof String ) ) { throw x . syntaxError ( "Missing value" ) ; } o . accumulate ( s , JSONObject . stringToValue ( ( String ) t ) ) ; t = null ; } else { o . accumulate ( s , "" ) ; } } else if ( t == SLASH ) { if ( x . nextToken ( ) != GT ) { throw x . syntaxError ( "Misshaped tag" ) ; } context . accumulate ( n , "" ) ; return false ; } else if ( t == GT ) { for ( ; ; ) { t = x . nextContent ( ) ; if ( t == null ) { if ( n != null ) { throw x . syntaxError ( "Unclosed tag " + n ) ; } return false ; } else if ( t instanceof String ) { s = ( String ) t ; if ( s . length ( ) > 0 ) { o . accumulate ( "content" , JSONObject . stringToValue ( s ) ) ; } } else if ( t == LT ) { if ( parse ( x , o , n ) ) { if ( o . length ( ) == 0 ) { context . accumulate ( n , "" ) ; } else if ( o . length ( ) == 1 && o . opt ( "content" ) != null ) { context . accumulate ( n , o . opt ( "content" ) ) ; } else { context . accumulate ( n , o ) ; } return false ; } } } } else { throw x . syntaxError ( "Misshaped tag" ) ; } } } }

Escanee el contenido siguiendo la etiqueta con nombre, adjuntándola al contexto.


public PhotosSaveWallPhotoQuery latitude  ( Float value ) { return unsafeParam ( "latitude" , value ) ; }

Latitud geográfica, en grados (de "-90" a "90").


private static void findAndReplace  ( byte [ ] text , byte [ ] pattern , byte [ ] replacement ) throws IllegalArgumentException { int patternLength = pattern . length ; if ( patternLength != replacement . length ) { throw new IllegalArgumentException ( "findAndReplace(): The lengths of the pattern and replacement must match." ) ; } int match = 0 ; while ( ( match = findMatch ( text , pattern , match ) ) >= 0 ) { replace ( text , replacement , match ) ; match += patternLength ; } }

Reemplaza todas las ocurrencias del Patrón <Código> </ Code> en <Code> Texto </ Code> con <Code> Reemplazo </ Code>.


@ Override public void createRaster  ( Symbolizer symbolizer ) { }


public DateColumn ( int nrows ) { this ( Date . class , nrows , nrows , 0L ) ; }


public SingleProducerSequencer ( int bufferSize , final WaitStrategy waitStrategy ) { super ( bufferSize , waitStrategy ) ; }

Construya un secuenciador con la estrategia de espera seleccionada y el tamaño del búfer.


public static void startComm  ( AirMapFlight flight , @ Nullable AirMapCallback < AirMapComm > callback ) { FlightService . getCommKey ( flight , callback ) ; }

Obtenga una clave de comunicación para un vuelo determinado para habilitar alertas de tráfico


public RequestHandle post  ( Context context , String url , HttpEntity entity , String contentType , ResponseHandlerInterface responseHandler ) { return sendRequest ( httpClient , httpContext , addEntityToRequestBase ( new HttpPost ( url ) , entity ) , contentType , responseHandler , context ) ; }

Realice una solicitud de publicación HTTP y rastree el contexto Android que inició la solicitud.


public Builder withModuleRoot  ( @ NotNull File moduleRoot ) { myModuleRoot = moduleRoot ; return this ; }

Especifique la carpeta raíz del módulo.Esto puede ser útil para encontrar archivos de compilación.


Iterator ( ) { counter [ last ] = - 1 ; }


@ Override public Vector whatCanGoHere  ( int [ ] state ) { return EMPTY ; }

Compruebe qué elementos son válidos para aparecer en este punto.Este método también funciona si el estado está en error, en cuyo caso devuelve lo que debería haber sido visto.


protected int match_bitap  ( String text , String pattern , int loc ) { assert ( Match_MaxBits == 0 || pattern . length ( ) <= Match_MaxBits ) : "Pattern too long for this application." ; Map < Character , Integer > s = match_alphabet ( pattern ) ; double score_threshold = Match_Threshold ; int best_loc = text . indexOf ( pattern , loc ) ; if ( best_loc != - 1 ) { score_threshold = Math . min ( match_bitapScore ( 0 , best_loc , loc , pattern ) , score_threshold ) ; best_loc = text . lastIndexOf ( pattern , loc + pattern . length ( ) ) ; if ( best_loc != - 1 ) { score_threshold = Math . min ( match_bitapScore ( 0 , best_loc , loc , pattern ) , score_threshold ) ; } } int matchmask = 1 << ( pattern . length ( ) - 1 ) ; best_loc = - 1 ; int bin_min , bin_mid ; int bin_max = pattern . length ( ) + text . length ( ) ; int [ ] last_rd = new int [ 0 ] ; for ( int d = 0 ; d < pattern . length ( ) ; d ++ ) { bin_min = 0 ; bin_mid = bin_max ; while ( bin_min < bin_mid ) { if ( match_bitapScore ( d , loc + bin_mid , loc , pattern ) <= score_threshold ) { bin_min = bin_mid ; } else { bin_max = bin_mid ; } bin_mid = ( bin_max - bin_min ) / 2 + bin_min ; } bin_max = bin_mid ; int start = Math . max ( 1 , loc - bin_mid + 1 ) ; int finish = Math . min ( loc + bin_mid , text . length ( ) ) + pattern . length ( ) ; int [ ] rd = new int [ finish + 2 ] ; rd [ finish + 1 ] = ( 1 << d ) - 1 ; for ( int j = finish ; j >= start ; j -- ) { int charMatch ; if ( text . length ( ) <= j - 1 || ! s . containsKey ( text . charAt ( j - 1 ) ) ) { charMatch = 0 ; } else { charMatch = s . get ( text . charAt ( j - 1 ) ) ; } if ( d == 0 ) { rd [ j ] = ( ( rd [ j + 1 ] << 1 ) | 1 ) & charMatch ; } else { rd [ j ] = ( ( ( rd [ j + 1 ] << 1 ) | 1 ) & charMatch ) | ( ( ( last_rd [ j + 1 ] | last_rd [ j ] ) << 1 ) | 1 ) | last_rd [ j + 1 ] ; } if ( ( rd [ j ] & matchmask ) != 0 ) { double score = match_bitapScore ( d , j - 1 , loc , pattern ) ; if ( score <= score_threshold ) { score_threshold = score ; best_loc = j - 1 ; if ( best_loc > loc ) { start = Math . max ( 1 , 2 * loc - best_loc ) ; } else { break ; } } } } if ( match_bitapScore ( d + 1 , loc , loc , pattern ) > score_threshold ) { break ; } last_rd = rd ; } return best_loc ; }

Localice la mejor instancia de 'Patrón' en 'Texto' cerca de 'LOC' usando el algoritmo de bitap.Devuelve -1 si no se ha encontrado ninguna coincidencia.


public void popTemplateFolder  ( ) { myLastTemplateFolders . pop ( ) ; }

Pop la carpeta anterior.Use este valor para restaurar una última carpeta de plantillas anterior si presionamos una nueva carpeta explícitamente.


No permita crear instancia por desarrolladores.


public MarketSearchQuery sort  ( MarketSearchSort value ) { return unsafeParam ( "sort" , value ) ; }


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


public static double regularizedGammaP  ( double a , double x ) { return regularizedGammaP ( a , x , DEFAULT_EPSILON , Integer . MAX_VALUE ) ; }

Devuelve la función gamma regularizada P (a, x).


private synchronized void trim  ( ) { while ( mCurrentSize > mSizeLimit ) { byte [ ] buf = mBuffersByLastUse . remove ( 0 ) ; mBuffersBySize . remove ( buf ) ; mCurrentSize -= buf . length ; } }

Elimina los tampones de la piscina hasta que esté bajo su límite de tamaño.


public static boolean isInAnnulus  ( final VisibleObject obj , Point3D Center , float Radius1 , float Radius2 ) { if ( ! isInSphere ( obj , Center . getX ( ) , Center . getY ( ) , Center . getZ ( ) , Radius2 ) ) { if ( isInSphere ( obj , Center . getX ( ) , Center . getY ( ) , Center . getZ ( ) , Radius1 ) ) { return true ; } } return false ; }

Determina si el objeto dado, está dentro de un  anillo (anillo)

  Dónde:
 radio1> radio2
 ambos círculos se centran en elmismo punto (centro)


void removeConnection  ( GSConnectionImpl connection ) { connectionsHash . remove ( connection . connFacParent . getSpaceURL ( ) . getURL ( ) ) ; }

Retire la conexión especificada de la lista de conexiones administradas por esta conexión.Si no existe, entonces falla en silencio


private void commitDiscard  ( long time , boolean allowDiscard ) { if ( mDiscardingTab == null ) return ; assert mStackTabs != null ; StackTab discarded = mDiscardingTab ; if ( Math . abs ( discarded . getDiscardAmount ( ) ) / getDiscardRange ( ) > DISCARD_COMMIT_THRESHOLD && allowDiscard ) { mLayout . uiRequestingCloseTab ( time , discarded . getId ( ) ) ; RecordUserAction . record ( "MobileStackViewSwipeCloseTab" ) ; RecordUserAction . record ( "MobileTabClosed" ) ; } else { startAnimation ( time , OverviewAnimationType . UNDISCARD ) ; } mDiscardingTab = null ; requestUpdate ( ) ; }

Se compromete o libera que actualmente se considera para descartar.Esta función también desencadena las animaciones asociadas.


private static void drawRect  ( Graphics2D g , int x , int y , int w1 , int h1 ) { g . setColor ( linecolor ) ; g . setStroke ( stroke1f ) ; if ( x == 0 ) { g . drawLine ( x , y , x , y + h1 ) ; } if ( y == 0 ) { g . drawLine ( x , y , x + w1 , y ) ; } g . drawLine ( x + w1 , y , x + w1 , y + h1 ) ; g . drawLine ( x , y + h1 , x + w1 , y + h1 ) ; }


private List < InputSplit > parseManifest  ( FileSystem fs , Path manifestPath , JobConf job ) throws IOException { List < InputSplit > splits = null ; FSDataInputStream fp = fs . open ( manifestPath ) ; JsonReader reader = new JsonReader ( new InputStreamReader ( fp , Charsets . UTF_8 ) ) ; reader . beginObject ( ) ; while ( reader . hasNext ( ) ) { String name = reader . nextName ( ) ; switch ( name ) { case VERSION_JSON_KEY : job . set ( DynamoDBConstants . EXPORT_FORMAT_VERSION , String . valueOf ( reader . nextInt ( ) ) ) ; break ; case ENTRIES_JSON_KEY : splits = readEntries ( reader , job ) ; break ; default : log . info ( "Skipping a JSON key in the manifest file: " + name ) ; reader . skipValue ( ) ; break ; } } reader . endObject ( ) ; if ( splits == null ) { return Collections . emptyList ( ) ; } return splits ; }

Un ejemplo de archivo de manifiesto se ve como {"Nombre": "Dynamodb-Export", "Versión": 3, "Entradas": [{"URL": "S3: // Ruta / a / Object / 92DD1414-A049-4C68-88FB-A23ACD44907E "," Obligatorio ": verdadero}, {" URL ":" S3: // Ruta / a / Objeto / BA3F3535-7AA1-4F97-A530-E72938BF4B76 "," Obligatorio ": verdadero}]}


public IEntryHolder updateEntry  ( Context context , IEntryHolder entry , ITemplateHolder template , boolean shouldReplicate , boolean origin ) throws SAException { IEntryCacheInfo pEntry = null ; IEntryHolder new_eh = null ; IEntryData originalData = entry . getEntryData ( ) ; try { if ( entry . isOffHeapEntry ( ) ) { pEntry = ( ( IOffHeapEntryHolder ) entry ) . getOffHeapResidentPart ( ) ; context . setOffHeapOriginalEntryInfo ( originalData , ( ( IOffHeapEntryHolder ) entry ) . getOffHeapVersion ( ) ) ; } else if ( isAllInCachePolicy ( ) ) pEntry = getPEntryByUid ( entry . getUID ( ) ) ; IEntryData newEntryData = template . getUpdatedEntry ( ) . getEntryData ( ) ; pEntry = updateEntryInCache ( context , pEntry , pEntry != null ? pEntry . getEntryHolder ( this ) : entry , newEntryData , newEntryData . getExpirationTime ( ) , template . getOperationModifiers ( ) ) ; new_eh = pEntry . getEntryHolder ( this ) ; if ( entry . isOffHeapEntry ( ) && isDirectPersistencyEmbeddedtHandlerUsed ( ) && context . isActiveBlobStoreBulk ( ) ) context . setForBulkUpdate ( new_eh , originalData , template . getMutators ( ) ) ; _storageAdapter . updateEntry ( context , new_eh , shouldReplicate , origin , context . getPartialUpdatedValuesIndicators ( ) ) ; if ( shouldReplicate && ! context . isDelayedReplicationForbulkOpUsed ( ) ) handleUpdateEntryReplication ( context , new_eh , originalData , template . getMutators ( ) ) ; } catch ( Exception ex ) { if ( ex instanceof DuplicateIndexValueException ) throw ( RuntimeException ) ex ; try { if ( entry . getEntryData ( ) . getVersion ( ) == template . getUpdatedEntry ( ) . getEntryData ( ) . getVersion ( ) ) { if ( isEvictableCachePolicy ( ) ) { removeEntryFromCache ( entry ) ; } else { updateEntryInCache ( context , null , entry , originalData , template . getUpdatedEntry ( ) . getEntryData ( ) . getExpirationTime ( ) , template . getOperationModifiers ( ) ) ; } } } catch ( Exception ex_ ) { if ( ex instanceof SAException ) ex = new SAException ( "Original exception=" + ex + " while trying to revert caught: " + ex_ , ex ) ; else ex = new RuntimeException ( "Original exception=" + ex + " while trying to revert caught: " + ex_ , ex ) ; } if ( ex instanceof SAException ) throw ( SAException ) ex ; if ( ex instanceof RuntimeException ) throw ( RuntimeException ) ex ; throw new RuntimeException ( ex ) ; } return new_eh ; }

Entrada de actualización: si la entrada debe actualizarse bajo un XTN, inserte a las listas de XTN.Actualice la memoria caché de ingreso, llame a SA para realizar una notificación de actualización: si la plantilla está bajo XTN, el motor es llamado por el motor, y no esta rutina.


private static void generateGraphFile  ( TransMeta transMeta , String graphFile ) throws GraphGeneratorException { DataOutputStream dos = null ; try { String xml = transMeta . getXML ( ) ; dos = new DataOutputStream ( new FileOutputStream ( new File ( graphFile ) ) ) ; dos . write ( xml . getBytes ( CarbonCommonConstants . DEFAULT_CHARSET ) ) ; } catch ( KettleException kettelException ) { throw new GraphGeneratorException ( "Error while getting the graph XML" , kettelException ) ; } catch ( FileNotFoundException e ) { throw new GraphGeneratorException ( "Unable to find the graph fileL" , e ) ; } catch ( UnsupportedEncodingException ue ) { throw new GraphGeneratorException ( "Error while Converting the graph xml string to bytes" , ue ) ; } catch ( IOException ioe ) { throw new GraphGeneratorException ( "Error while writing the graph file" , ioe ) ; } finally { if ( dos != null ) { try { dos . close ( ) ; } catch ( IOException e ) { e . getMessage ( ) ; } } } }


public StartupException ( String msg , Throwable nested ) { super ( msg ) ; this . nested = nested ; }

Construye un <código> StartupExceptionception </ Code> con el mensaje de detalle especificado y la excepción anidada.


private boolean shouldGrowTable  ( ) { return size > ( mask + 1 ) * LOAD_FACTOR ; }

Compruebe si las tablas deben crecer debido al mayor tamaño.


public static void takeScreenshot  ( Activity activity , File toFile ) { if ( activity == null ) { throw new IllegalArgumentException ( "Parameter activity cannot be null." ) ; } if ( toFile == null ) { throw new IllegalArgumentException ( "Parameter toFile cannot be null." ) ; } Bitmap bitmap = null ; try { if ( ! toFile . exists ( ) ) { toFile . createNewFile ( ) ; } bitmap = takeBitmapUnchecked ( activity ) ; writeBitmap ( bitmap , toFile ) ; } catch ( Exception e ) { String message = "Unable to take screenshot to file " + toFile . getAbsolutePath ( ) + " of activity " + activity . getClass ( ) . getName ( ) ; Log . e ( TAG , message , e ) ; throw new UnableToTakeScreenshotException ( message , e ) ; } finally { if ( bitmap != null ) { bitmap . recycle ( ) ; } } Log . d ( TAG , "Screenshot captured to " + toFile . getAbsolutePath ( ) ) ; }

Toma captura de pantalla de la actividad proporcionada y lo guarda para proporcionar un archivo.El contenido del archivo se sobrescribirá si ya hay algún contenido.


public static SM_SYSTEM_MESSAGE STR_MSG_MPHeal_TO_ME  ( int num0 ) { return new SM_SYSTEM_MESSAGE ( 1201196 , num0 ) ; }


public void spawn  ( VisibleObject object ) { if ( object . getPosition ( ) . isSpawned ( ) ) { throw new AlreadySpawnedException ( ) ; } object . getController ( ) . onBeforeSpawn ( ) ; object . getPosition ( ) . setIsSpawned ( true ) ; object . getActiveRegion ( ) . getParent ( ) . addObject ( object ) ; object . getActiveRegion ( ) . add ( object ) ; object . getController ( ) . onAfterSpawn ( ) ; object . updateKnownlist ( ) ; }

Spewn VisibleObject en la posición actual [Use la posición de setPosition].El objeto será visible por otros y verá otros objetos.


private void handleNodeQueue  ( SerialMessage incomingMessage ) { if ( currentStage == ZWaveNodeInitStage . DONE ) { return ; } logger . debug ( "NODE {}: Node advancer - checking initialisation queue. Queue size {}." , node . getNodeId ( ) , msgQueue . size ( ) ) ; if ( msgQueue . contains ( incomingMessage ) ) { msgQueue . remove ( incomingMessage ) ; logger . debug ( "NODE {}: Node advancer - message removed from queue. Queue size {}." , node . getNodeId ( ) , msgQueue . size ( ) ) ; freeToSend = true ; advanceNodeStage ( incomingMessage . getMessageClass ( ) ) ; } else if ( msgQueue . isEmpty ( ) && currentStage == ZWaveNodeInitStage . SECURITY_REPORT ) { logger . debug ( "NODE {}: Node advancer - In Security stage, going to advanceNodeStage to get next request." , node . getNodeId ( ) ) ; advanceNodeStage ( incomingMessage . getMessageClass ( ) ) ; } }

Maneja la eliminación de marcos de la cola de envío.Esto se llama después de que tengamos un ACK para nuestro paquete, pero antes de que obtengan la respuesta.El envío real de marcos, y el avance se realiza en el método AdvanceDoDage.


public static Item registerItem  ( Item item ) { item . setUnlocalizedName ( "bwm" + item . getRegistryName ( ) . toString ( ) . substring ( BWMod . MODID . length ( ) ) ) ; return GameRegistry . register ( item ) ; }


@ Override public void onClick  ( View view ) { switch ( view . getId ( ) ) { case - 1 : if ( browsablePresenter . isBrowsable ( ) ) { browsablePresenter . visitParentView ( ) ; } if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) { finishAfterTransition ( ) ; } else { finish ( ) ; } break ; } }


public void testDeployIntermediateVersionWithoutMessageStartEvent  ( ) { String deploymentId1 = deployStartMessageTestProcess ( ) ; assertEquals ( 1 , getAllEventSubscriptions ( ) . size ( ) ) ; assertEquals ( 0 , runtimeService . createProcessInstanceQuery ( ) . count ( ) ) ; runtimeService . startProcessInstanceByMessage ( "myStartMessage" ) ; assertEquals ( 1 , runtimeService . createProcessInstanceQuery ( ) . count ( ) ) ; assertEventSubscriptionsCount ( 1 ) ; String deploymentId2 = deployProcessWithoutEvents ( ) ; assertEquals ( 0 , getAllEventSubscriptions ( ) . size ( ) ) ; assertEquals ( 1 , runtimeService . createProcessInstanceQuery ( ) . count ( ) ) ; try { runtimeService . startProcessInstanceByMessage ( "myStartMessage" ) ; fail ( ) ; } catch ( Exception e ) { } assertEquals ( 1 , runtimeService . createProcessInstanceQuery ( ) . count ( ) ) ; assertEventSubscriptionsCount ( 0 ) ; String deploymentId3 = deployStartMessageTestProcess ( ) ; assertEquals ( 1 , getAllEventSubscriptions ( ) . size ( ) ) ; assertEquals ( 1 , runtimeService . createProcessInstanceQuery ( ) . count ( ) ) ; runtimeService . startProcessInstanceByMessage ( "myStartMessage" ) ; assertEquals ( 2 , runtimeService . createProcessInstanceQuery ( ) . count ( ) ) ; assertEventSubscriptionsCount ( 1 ) ; List < EventSubscriptionEntity > eventSubscriptions = getAllEventSubscriptions ( ) ; assertEquals ( repositoryService . createProcessDefinitionQuery ( ) . deploymentId ( deploymentId3 ) . singleResult ( ) . getId ( ) , eventSubscriptions . get ( 0 ) . getProcessDefinitionId ( ) ) ; cleanup ( deploymentId1 , deploymentId2 , deploymentId3 ) ; }

v1 -> tiene un mensaje de inicio de mensaje V2 -> No tiene ningún mensaje de inicio Event V3 -> tiene un evento de mensaje de inicio


public String saveXML  ( Node node ) throws DOMException  { if ( errorChecking && node != null && this != node . getOwnerDocument ( ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , "WRONG_DOCUMENT_ERR" , null ) ; throw new DOMException ( DOMException . WRONG_DOCUMENT_ERR , msg ) ; } DOMImplementationLS domImplLS = ( DOMImplementationLS ) DOMImplementationImpl . getDOMImplementation ( ) ; LSSerializer xmlWriter = domImplLS . createLSSerializer ( ) ; if ( node == null ) { node = this ; } return xmlWriter . writeToString ( node ) ; }

DOM Nivel 3 WD - Experimental.Guarde el documento o el nodo dado y todos sus descendientes a una cadena (es decir, serializen el documento o el nodo).Se asume que los parámetros utilizados en la interfaz <código> lsserializer </ code> tienen sus valores predeterminados al invocar este método.<br> El resultado de una llamada a este método es el mismo resultado de una llamada a <código> lsserializer.WritetString </ code> con el documento como el nodo para escribir.


public AbstractEquipmentCacheObject ( final Long pId , final String pName , final String pDescription , final String pHandlerClassName , final Long pStateTagId , final Long pAliveTagId , final int pAliveInterval , final Long pCommfaultTagId ) { super ( pId , pName , pStateTagId , pAliveTagId , pAliveInterval ) ; this . description = pDescription ; this . handlerClassName = pHandlerClassName ; this . commFaultTagId = pCommfaultTagId ; }

Crea un objeto de monitoreo de equipos que contiene la información proporcionada.


public void updateInventories  ( ) throws LoginFailedException , RemoteServerException  { updateInventories ( false ) ; }

Actualiza los inventarios con los últimos datos.


public Expression or  ( Expression exp1 , Expression exp2 ) { return new LogicalExpression ( exp1 , exp2 , ExpressionType . OR ) ; }


public WallGetQueryWithExtended fields  ( EnumParam ... value ) { return unsafeParam ( "fields" , value ) ; }


private static Object compressNonDecimalMaxMin  ( DataType changedDataType , double [ ] value , int decimal , double maxValue ) { int i = 0 ; BigDecimal max = BigDecimal . valueOf ( maxValue ) ; switch ( changedDataType ) { case DATA_BYTE : byte [ ] result = new byte [ value . length ] ; for ( double a : value ) { BigDecimal val = BigDecimal . valueOf ( a ) ; double diff = max . subtract ( val ) . doubleValue ( ) ; result [ i ] = ( byte ) ( Math . round ( diff * Math . pow ( 10 , decimal ) ) ) ; i ++ ; } return result ; case DATA_SHORT : short [ ] shortResult = new short [ value . length ] ; for ( double a : value ) { BigDecimal val = BigDecimal . valueOf ( a ) ; double diff = max . subtract ( val ) . doubleValue ( ) ; shortResult [ i ] = ( short ) ( Math . round ( diff * Math . pow ( 10 , decimal ) ) ) ; i ++ ; } return shortResult ; case DATA_INT : int [ ] intResult = new int [ value . length ] ; for ( double a : value ) { BigDecimal val = BigDecimal . valueOf ( a ) ; double diff = max . subtract ( val ) . doubleValue ( ) ; intResult [ i ] = ( int ) ( Math . round ( diff * Math . pow ( 10 , decimal ) ) ) ; i ++ ; } return intResult ; case DATA_LONG : long [ ] longResult = new long [ value . length ] ; for ( double a : value ) { BigDecimal val = BigDecimal . valueOf ( a ) ; double diff = max . subtract ( val ) . doubleValue ( ) ; longResult [ i ] = ( long ) ( Math . round ( diff * Math . pow ( 10 , decimal ) ) ) ; i ++ ; } return longResult ; case DATA_FLOAT : float [ ] floatResult = new float [ value . length ] ; for ( double a : value ) { BigDecimal val = BigDecimal . valueOf ( a ) ; double diff = max . subtract ( val ) . doubleValue ( ) ; floatResult [ i ] = ( float ) ( Math . round ( diff * Math . pow ( 10 , decimal ) ) ) ; i ++ ; } return floatResult ; default : double [ ] defaultResult = new double [ value . length ] ; for ( double a : value ) { BigDecimal val = BigDecimal . valueOf ( a ) ; double diff = max . subtract ( val ) . doubleValue ( ) ; defaultResult [ i ] = ( Math . round ( diff * Math . pow ( 10 , decimal ) ) ) ; i ++ ; } return defaultResult ; } }

Comprimir datos a otro tipo a través del valor secundario, por ejemplo: 1. Subvalue = MAXVALUE - Valor 2. Subvalue = Subvalue * Matemáticas.Pou (10, decimal) 3. Subvalue: Doble-> Int


public Matrix zoomOut  ( float x , float y ) { Matrix save = new Matrix ( ) ; zoomOut ( x , y , save ) ; return save ; }

Se aleza por 0.7F, X e Y son las coordenadas (en píxeles) del centro de zoom.


@ Override public Node cloneNode  ( boolean deep ) { DocumentTypeImpl newnode = ( DocumentTypeImpl ) super . cloneNode ( deep ) ; newnode . entities = entities . cloneMap ( newnode ) ; newnode . notations = notations . cloneMap ( newnode ) ; newnode . elements = elements . cloneMap ( newnode ) ; return newnode ; }


public static double sumSquareDev  ( double [ ] values , double target ) { double sumsq = 0d ; for ( int i = 0 ; i < values . length ; i ++ ) { final double dev = values [ i ] - target ; sumsq += ( dev * dev ) ; } return sumsq ; }

Calcula la suma de desviaciones cuadradas de <valores> de <Target>


public static void showNodeInTree  ( URL url , boolean allowFiles ) { getTreePath ( url , allowFiles , true ) ; }


public void clear  ( ) { int max = bits . length ; for ( int i = 0 ; i < max ; i ++ ) { bits [ i ] = 0 ; } }

Borra todos los bits (se establece en falso).


public static String timeToString  ( int hour , int min ) { String theTime = "The time is now, " + timeApprox ( hour , min ) + " " + timeMin ( hour , min ) + " " + timeHour ( hour , min ) + ", " + timeOfDay ( hour , min ) + "." ; return theTime ; }

Devuelve una cadena que corresponde al tiempo dado.


public int writeClassData  ( ClassData classData ) { int off = data . position ( ) ; writeUleb128 ( classData . staticFields . length ) ; writeUleb128 ( classData . instanceFields . length ) ; writeUleb128 ( classData . directMethods . length ) ; writeUleb128 ( classData . virtualMethods . length ) ; writeFields ( classData . staticFields ) ; writeFields ( classData . instanceFields ) ; writeMethods ( classData . directMethods ) ; writeMethods ( classData . virtualMethods ) ; return off ; }

Escriba el artículo de ClassData en la sección actual.


public int addOrIncreaseItem  ( String productId , BigDecimal selectedAmount , BigDecimal quantity , Timestamp reservStart , BigDecimal reservLength , BigDecimal reservPersons , String accommodationMapId , String accommodationSpotId , Timestamp shipBeforeDate , Timestamp shipAfterDate , Map < String , GenericValue > features , Map < String , Object > attributes , Map < String , String > orderItemAttributes , String prodCatalogId , ProductConfigWrapper configWrapper , String itemType , String itemGroupNumber , String parentProductId , LocalDispatcher dispatcher ) throws CartItemModifyException , ItemNotFoundException { if ( isReadOnlyCart ( ) ) { throw new CartItemModifyException ( "Cart items cannot be changed" ) ; } selectedAmount = selectedAmount == null ? BigDecimal . ZERO : selectedAmount ; reservLength = reservLength == null ? BigDecimal . ZERO : reservLength ; reservPersons = reservPersons == null ? BigDecimal . ZERO : reservPersons ; ShoppingCart . ShoppingCartItemGroup itemGroup = this . getItemGroupByNumber ( itemGroupNumber ) ; GenericValue supplierProduct = null ; for ( int i = 0 ; i < this . cartLines . size ( ) ; i ++ ) { ShoppingCartItem sci = cartLines . get ( i ) ; if ( sci . equals ( productId , reservStart , reservLength , reservPersons , accommodationMapId , accommodationSpotId , features , attributes , orderItemAttributes , prodCatalogId , selectedAmount , configWrapper , itemType , itemGroup , false ) ) { BigDecimal newQuantity = sci . getQuantity ( ) . add ( quantity ) ; try { BigDecimal minQuantity = getMinimumOrderQuantity ( getDelegator ( ) , sci . getBasePrice ( ) , productId ) ; if ( newQuantity . compareTo ( minQuantity ) < 0 ) { newQuantity = minQuantity ; } } catch ( GenericEntityException e ) { Debug . logError ( e , module ) ; } if ( sci . getItemType ( ) . equals ( "RENTAL_ORDER_ITEM" ) ) { String isAvailable = ShoppingCartItem . checkAvailability ( productId , newQuantity , reservStart , reservLength , this ) ; if ( isAvailable . compareTo ( "OK" ) != 0 ) { Map < String , Object > messageMap = UtilMisc . < String , Object > toMap ( "productId" , productId , "availableMessage" , isAvailable ) ; String excMsg = UtilProperties . getMessage ( ShoppingCartItem . resource , "item.product_not_available" , messageMap , this . getLocale ( ) ) ; Debug . logInfo ( excMsg , module ) ; throw new CartItemModifyException ( isAvailable ) ; } } if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "Found a match for id " + productId + " on line " + i + ", updating quantity to " + newQuantity , module ) ; sci . setQuantity ( newQuantity , dispatcher , this ) ; if ( getOrderType ( ) . equals ( "PURCHASE_ORDER" ) ) { supplierProduct = getSupplierProduct ( productId , newQuantity , dispatcher ) ; if ( supplierProduct != null && supplierProduct . getBigDecimal ( "lastPrice" ) != null ) { sci . setSupplierProductId ( supplierProduct . getString ( "supplierProductId" ) ) ; sci . setBasePrice ( supplierProduct . getBigDecimal ( "lastPrice" ) ) ; sci . setName ( ShoppingCartItem . getPurchaseOrderItemDescription ( sci . getProduct ( ) , supplierProduct , this . getLocale ( ) ) ) ; } else { throw new CartItemModifyException ( "SupplierProduct not found" ) ; } } return i ; } } ShoppingCartItem item = null ; if ( getOrderType ( ) . equals ( "PURCHASE_ORDER" ) ) { supplierProduct = getSupplierProduct ( productId , quantity , dispatcher ) ; if ( supplierProduct != null || "_NA_" . equals ( this . getPartyId ( ) ) ) { item = ShoppingCartItem . makePurchaseOrderItem ( Integer . valueOf ( 0 ) , productId , selectedAmount , quantity , features , attributes , prodCatalogId , configWrapper , itemType , itemGroup , dispatcher , this , supplierProduct , shipBeforeDate , shipAfterDate , cancelBackOrderDate ) ; } else { throw new CartItemModifyException ( "SupplierProduct not found" ) ; } } else { try { BigDecimal minQuantity = getMinimumOrderQuantity ( getDelegator ( ) , null , productId ) ; if ( quantity . compareTo ( minQuantity ) < 0 ) { quantity = minQuantity ; } } catch ( GenericEntityException e ) { Debug . logError ( e , module ) ; } item = ShoppingCartItem . makeItem ( Integer . valueOf ( 0 ) , productId , selectedAmount , quantity , null , reservStart , reservLength , reservPersons , accommodationMapId , accommodationSpotId , shipBeforeDate , shipAfterDate , features , attributes , prodCatalogId , configWrapper , itemType , itemGroup , dispatcher , this , Boolean . TRUE , Boolean . TRUE , parentProductId , Boolean . FALSE , Boolean . FALSE ) ; } if ( UtilValidate . isNotEmpty ( orderItemAttributes ) ) { for ( Entry < String , String > entry : orderItemAttributes . entrySet ( ) ) { item . setOrderItemAttribute ( entry . getKey ( ) , entry . getValue ( ) ) ; } } return this . addItem ( 0 , item ) ; }

Agregar alquiler (con alojamiento) Artículo al carrito y solicitar atributos de artículos


public StartupException ( ) { super ( ) ; }

Crea nuevo <código> StartupExceptionception </ Code> sin mensaje de detalle.


public static SM_SYSTEM_MESSAGE STR_MSG_LIMIT_SALE_TEST_DESC02  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1400389 , value0 ) ; }

% 0 ahora está vendiendo artículos raros.


public WeakKeyReference ( Object key ) { super ( key ) ; hashCode = key . hashCode ( ) ; }

Cree una nueva <código> WeekReference </ Code> a la clave dada.La referencia se coloca en ninguna cola.


public final boolean addAlarmValue  ( @ Valid final AlarmValueImpl alarmValue ) { if ( alarmValue . getTagId ( ) . equals ( tagId ) ) { return alarmValues . add ( alarmValue ) ; } return false ; }

Agrega el valor de alarma dado a la etiqueta de transferencia, excepto si hay una alarma con la misma ID de ID ya presente o, si el valor de la alarma no pertenece a la etiqueta especificada.


public float [ ] mapVector  ( float x , float y ) { float [ ] result = new float [ ] { x , y } ; result [ 0 ] = MATRIX [ MSCALE_X ] * x + MATRIX [ MSKEW_X ] * y ; result [ 1 ] = MATRIX [ MSKEW_Y ] * x + MATRIX [ MSCALE_Y ] * y ; return result ; }

Aplique esta matriz a la matriz de vectores 2D y escriba los vectores transformados de nuevo en la matriz.Nota: Este método no aplica la traducción asociada con la matriz.


public synchronized void allowThreadDecoding  ( ThreadSet threads ) { for ( Thread t : threads ) { allowThreadDecoding ( t ) ; } }

Los siguientes dos métodos se utilizan para permitir / cancelar un conjunto de hilos para la decodificación de mapa de bits.


Cree un nuevo objetivo que pueda usarse para crear nuevas instancias de clases derivadas de esquema para el paquete: org.smpte_ra.reg._395._2014._13._12.as11


public boolean remove  ( Object o ) { throw new UnsupportedOperationException ( ) ; }

Siempre lanza sin apoyoPortadosOfereException.


public static boolean isOrSubOf  ( Class < ? > objectClass , Class < ? > parentClass ) { while ( objectClass != null ) { if ( objectClass == parentClass ) return true ; objectClass = objectClass . getSuperclass ( ) ; } return false ; }

Pruebas si una clase es una clase de o una subclase del padre.


private void initModel  ( ) { this . userModel = new UserObject ( ) ; this . loadModel = new LoadObject ( LoadObject . LOADING_STATE ) ; }


public boolean hasAttribute  ( final WebElement element , final String attribute , int timeout ) { return isConditionMet ( null , timeout ) ; }

Los cheques si Webelement especificado ha especificado el atributo específico dentro del tiempo de espera específico.


@ Override public void close  ( ) throws IOException  { throw exception ; }


public VideoReorderAlbumsQuery before  ( Integer value ) { return unsafeParam ( "before" , value ) ; }

ID del álbum anterior a la cual se colocará el álbum en cuestión.


public static SM_SYSTEM_MESSAGE STR_MSG_HOUSING_FLOWERPOT_GOAL  ( int nameId ) { return new SM_SYSTEM_MESSAGE ( 1401333 , calculateNameId ( nameId ) ) ; }


public void disableDashedLine  ( ) { mDashPathEffect = null ; }

Desactiva que la línea se dibuje en modo discontinuo.


public void onMenuDismissed  ( ) { mReloadMenuItem = null ; }

Notifique al delegado que se desestimó el menú.


protected void wrapContent  ( ) { mWidget . setMinWidth ( 100 ) ; mWidget . setMinHeight ( 30 ) ; int tw = mWidget . getMinWidth ( ) ; int th = mWidget . getMinHeight ( ) ; if ( mWidget . getHorizontalDimensionBehaviour ( ) == ConstraintWidget . DimensionBehaviour . WRAP_CONTENT ) { mWidget . setWidth ( tw ) ; } if ( mWidget . getVerticalDimensionBehaviour ( ) == ConstraintWidget . DimensionBehaviour . WRAP_CONTENT ) { mWidget . setHeight ( th ) ; } if ( mWidget . getHorizontalDimensionBehaviour ( ) == ConstraintWidget . DimensionBehaviour . FIXED ) { if ( mWidget . getWidth ( ) <= mWidget . getMinWidth ( ) ) { mWidget . setHorizontalDimensionBehaviour ( ConstraintWidget . DimensionBehaviour . WRAP_CONTENT ) ; } } if ( mWidget . getVerticalDimensionBehaviour ( ) == ConstraintWidget . DimensionBehaviour . FIXED ) { if ( mWidget . getHeight ( ) <= mWidget . getMinHeight ( ) ) { mWidget . setVerticalDimensionBehaviour ( ConstraintWidget . DimensionBehaviour . WRAP_CONTENT ) ; } } mWidget . setBaselineDistance ( 0 ) ; }

Método de utilidad Computación del tamaño del widget Si se establecen dimensiones en Wrap_Content, utilizando la fuente predeterminada


public static ConfigAspectBase create  ( Model model ) { return new UsageConfigAspect ( model ) ; }

Crea un aspecto de configuración de uso.


@ Override protected final boolean writeData  ( ByteBuffer data ) { synchronized ( guard ) { LsServerPacket packet = sendMsgQueue . pollFirst ( ) ; if ( packet == null ) { return false ; } packet . write ( this , data ) ; return true ; } }

Este método será llamado por despachador, y se repetirá hasta que la devolución sea falsa.


public SerialMessage checkVersion  ( ZWaveCommandClass commandClass ) { ZWaveVersionCommandClass versionCommandClass = ( ZWaveVersionCommandClass ) this . getNode ( ) . getCommandClass ( CommandClass . VERSION ) ; if ( versionCommandClass == null ) { logger . debug ( String . format ( "NODE %d: Version command class not supported," + "reverting to version 1 for command class %s (0x%02x)" , getNode ( ) . getNodeId ( ) , commandClass . getCommandClass ( ) . getLabel ( ) , commandClass . getCommandClass ( ) . getKey ( ) ) ) ; return null ; } return versionCommandClass . getCommandClassVersionMessage ( commandClass . getCommandClass ( ) ) ; }

Verifique la versión de una clase de comando enviando un mensaje Version_command_class_Get al nodo.


public static final String roll  ( String isoString , String fmt , int field , boolean up ) throws ParseException { Calendar cal = GregorianCalendar . getInstance ( TimeZone . getTimeZone ( "GMT" ) ) ; cal . setTime ( stringToDate ( isoString , fmt ) ) ; cal . roll ( field , up ) ; return dateToString ( cal . getTime ( ) , fmt ) ; }

Función de balanceo de campo de tiempo.Rolls (arriba / abajo) Una sola unidad de tiempo en el campo Tiempo dado.


public void save  ( File directory ) { File f = getFile ( ) ; if ( f != null && f . isFile ( ) ) { File saveFile = Utils . getUniqueFile ( directory , f . getName ( ) ) ; Utils . copyFile ( f , saveFile ) ; getStorage ( ) . saveCustomPropertiesTo ( new File ( saveFile . getAbsolutePath ( ) + Storage . DEFAULT_PROPERTIES_EXT ) ) ; } }


public GroupsJoinQuery notSure  ( Boolean value ) { return unsafeParam ( "not_sure" , value ) ; }

Parámetro opcional que se tiene en cuenta cuando "GROUP_ID" pertenece al evento.


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

Perfil - Insertar instrucciones para contar accesos de puntero seguros.Inserte las instrucciones de perfilado que en el tiempo de ejecución cuentan el número de cheques de puntero NULL eliminado.El código de perfiles insertado asume la existencia de una clase multicontrugadora que implementa los métodos invocados.Para obtener más información, consulte el código fuente de NullPointerChecker.


public boolean isValidInet4Address  ( String inet4Address ) { String [ ] groups = ipv4Validator . match ( inet4Address ) ; if ( groups . length == 0 ) { return false ; } for ( int i = 0 ; i <= 3 ; i ++ ) { String ipSegment = groups [ i ] ; if ( ipSegment == null || ipSegment . length ( ) == 0 ) { return false ; } int iIpSegment ; try { iIpSegment = Integer . parseInt ( ipSegment ) ; } catch ( NumberFormatException e ) { return false ; } if ( iIpSegment > 255 ) { return false ; } if ( ipSegment . length ( ) > 1 && ipSegment . startsWith ( "0" ) ) { return false ; } } return true ; }

Valida una dirección IPv4.Devuelve verdadero si es válido.


public short min  ( ) { if ( size ( ) == 0 ) { throw new IllegalStateException ( "cannot find minimum of an empty list" ) ; } short min = Short . MAX_VALUE ; for ( int i = 0 ; i < _pos ; i ++ ) { if ( _data [ i ] < min ) { min = _data [ i ] ; } } return min ; }


@ Override public boolean equals  ( Object desc ) { if ( ! ( desc instanceof XMLGrammarDescription ) ) return false ; if ( ! getGrammarType ( ) . equals ( ( ( XMLGrammarDescription ) desc ) . getGrammarType ( ) ) ) { return false ; } XMLDTDDescription dtdDesc = ( XMLDTDDescription ) desc ; if ( fRootName != null ) { if ( ( dtdDesc . fRootName ) != null && ! dtdDesc . fRootName . equals ( fRootName ) ) { return false ; } else if ( dtdDesc . fPossibleRoots != null && ! dtdDesc . fPossibleRoots . contains ( fRootName ) ) { return false ; } } else if ( fPossibleRoots != null ) { if ( dtdDesc . fRootName != null ) { if ( ! fPossibleRoots . contains ( dtdDesc . fRootName ) ) { return false ; } } else if ( dtdDesc . fPossibleRoots == null ) { return false ; } else { boolean found = false ; final int size = fPossibleRoots . size ( ) ; for ( int i = 0 ; i < size ; ++ i ) { String root = ( String ) fPossibleRoots . get ( i ) ; found = dtdDesc . fPossibleRoots . contains ( root ) ; if ( found ) break ; } if ( ! found ) return false ; } } if ( fExpandedSystemId != null ) { if ( ! fExpandedSystemId . equals ( dtdDesc . fExpandedSystemId ) ) { return false ; } } else if ( dtdDesc . fExpandedSystemId != null ) { return false ; } if ( fPublicId != null ) { if ( ! fPublicId . equals ( dtdDesc . fPublicId ) ) { return false ; } } else if ( dtdDesc . fPublicId != null ) { return false ; } return true ; }

Compara esta gramática con la gramática dada.Actualmente, comparamos lo siguiente: - Si el tipo de gramática no es igual de retorno falso de inmediato, intente encontrar un nombre de raíz común: - Si ambas tienen raíces, usándolos, si uno tiene una raíz, examine la posible raíz de otros para una coincidencia;- De lo contrario, pruebe todas las combinaciones: pruebe FEXPANDEDSYSTEMID y FPUBLICIDO como anteriormente


public Vector normalize  ( ) { double length = length ( ) ; x /= length ; y /= length ; z /= length ; return this ; }

Convierte este vector a un vector de unidad (un vector con longitud de 1).


public static boolean hasJellyBeanMr2  ( ) { return Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN_MR2 ; }


public TObjectIntHashMap ( ) { super ( ) ; }

Crea una nueva instancia de <código> tobjectinthashmap </ código> con la capacidad de carga predeterminada y el factor de carga.


protected void skipped  ( AssumptionViolatedException e , Description description ) { }

Se invoca cuando se salta una prueba debido a un supuesto fallido.


public void storeOriginals  ( ) { mStartingStartTrim = mStartTrim ; mStartingEndTrim = mEndTrim ; mStartingRotation = mRotation ; }

Si el ajuste de inicio / extremo se desplaza para comenzar, guárdelos para que la animación comience desde ese desplazamiento.


private boolean hasProxySettings  ( Properties settings ) { String proxyHost = settings . getProperty ( "/system/http_proxy/host" , null ) ; return proxyHost != null && proxyHost . length ( ) > 0 ; }

Cheques Si tenemos configuraciones de configuración de proxy en las propiedades.


private void layout  ( int width , int height ) { int itemsWidth = width - 2 * PADDING ; itemsLayout . layout ( 0 , 0 , itemsWidth , height ) ; }

Establece el ancho y la altura de los diseños.


public ResolutionForwarder ( LSResourceResolver entityResolver ) { setEntityResolver ( entityResolver ) ; }

Envuelve el resolución de la entidad DOM especificada.


private void processCall  ( PathEdge < N , D > edge ) { final D d1 = edge . factAtSource ( ) ; final N n = edge . getTarget ( ) ; logger . trace ( "Processing call to {}" , n ) ; final D d2 = edge . factAtTarget ( ) ; EdgeFunction < V > f = jumpFunction ( edge ) ; Collection < N > returnSiteNs = icfg . getReturnSitesOfCallAt ( n ) ; Collection < M > callees = icfg . getCalleesOfCallAt ( n ) ; for ( M sCalledProcN : callees ) { FlowFunction < D > function = flowFunctions . getCallFlowFunction ( n , sCalledProcN ) ; flowFunctionConstructionCount ++ ; Set < D > res = computeCallFlowFunction ( function , d1 , d2 ) ; Collection < N > startPointsOf = icfg . getStartPointsOf ( sCalledProcN ) ; for ( N sP : startPointsOf ) { for ( D d3 : res ) { propagate ( d3 , sP , d3 , EdgeIdentity . < V > v ( ) , n , false ) ; Set < Cell < N , D , EdgeFunction < V > > > endSumm ; synchronized ( incoming ) { addIncoming ( sP , d3 , n , d2 ) ; endSumm = new HashSet < Table . Cell < N , D , EdgeFunction < V > > > ( endSummary ( sP , d3 ) ) ; } for ( Cell < N , D , EdgeFunction < V > > entry : endSumm ) { N eP = entry . getRowKey ( ) ; D d4 = entry . getColumnKey ( ) ; EdgeFunction < V > fCalleeSummary = entry . getValue ( ) ; for ( N retSiteN : returnSiteNs ) { FlowFunction < D > retFunction = flowFunctions . getReturnFlowFunction ( n , sCalledProcN , eP , retSiteN ) ; flowFunctionConstructionCount ++ ; for ( D d5 : computeReturnFlowFunction ( retFunction , d3 , d4 , n , Collections . singleton ( d2 ) ) ) { EdgeFunction < V > f4 = edgeFunctions . getCallEdgeFunction ( n , d2 , sCalledProcN , d3 ) ; EdgeFunction < V > f5 = edgeFunctions . getReturnEdgeFunction ( n , sCalledProcN , eP , d4 , retSiteN , d5 ) ; EdgeFunction < V > fPrime = f4 . composeWith ( fCalleeSummary ) . composeWith ( f5 ) ; D d5_restoredCtx = restoreContextOnReturnedFact ( d2 , d5 ) ; propagate ( d1 , retSiteN , d5_restoredCtx , f . composeWith ( fPrime ) , n , false ) ; } } } } } } for ( N returnSiteN : returnSiteNs ) { FlowFunction < D > callToReturnFlowFunction = flowFunctions . getCallToReturnFlowFunction ( n , returnSiteN ) ; flowFunctionConstructionCount ++ ; for ( D d3 : computeCallToReturnFlowFunction ( callToReturnFlowFunction , d1 , d2 ) ) { EdgeFunction < V > edgeFnE = edgeFunctions . getCallToReturnEdgeFunction ( n , d2 , returnSiteN , d3 ) ; propagate ( d1 , returnSiteN , d3 , f . composeWith ( edgeFnE ) , n , false ) ; } } }

Líneas 13-20 del algoritmo;procesando un sitio de llamadas en el contexto de la persona que llama.Para cada posible callee, registra los bordes de llamadas entrantes.También propaga los flujos de llamada a retorno y los flujos de callee resumidos en la persona que llama.


public TupleManagerIterator ( TupleManager tuples , IntIterator rows ) { m_tuples = tuples ; m_rows = rows ; }


public void testBoundaryEventSubscrptionsDeletedOnProcessInstanceDelete  ( ) { String deploymentId1 = deployBoundaryMessageTestProcess ( ) ; runtimeService . startProcessInstanceByKey ( "messageTest" ) ; assertEquals ( "My Task" , taskService . createTaskQuery ( ) . singleResult ( ) . getName ( ) ) ; String deploymentId2 = deployBoundaryMessageTestProcess ( ) ; ProcessInstance processInstance2 = runtimeService . startProcessInstanceByKey ( "messageTest" ) ; assertEquals ( 2 , taskService . createTaskQuery ( ) . count ( ) ) ; assertEquals ( 2 , getAllEventSubscriptions ( ) . size ( ) ) ; runtimeService . deleteProcessInstance ( processInstance2 . getId ( ) , "testing" ) ; assertEquals ( "My Task" , taskService . createTaskQuery ( ) . singleResult ( ) . getName ( ) ) ; assertEquals ( 1 , getAllEventSubscriptions ( ) . size ( ) ) ; runtimeService . messageEventReceived ( "myMessage" , getExecutionIdsForMessageEventSubscription ( "myMessage" ) . get ( 0 ) ) ; assertEquals ( 0 , getAllEventSubscriptions ( ) . size ( ) ) ; assertEquals ( "Task after message" , taskService . createTaskQuery ( ) . singleResult ( ) . getName ( ) ) ; cleanup ( deploymentId1 , deploymentId2 ) ; }

Verificando que las suscripciones de eventos se eliminan al eliminar una instancia de proceso.


public static DateFormat toTimeFormat  ( String timeFormat , TimeZone tz , Locale locale ) { DateFormat df = null ; if ( UtilValidate . isEmpty ( timeFormat ) ) { df = DateFormat . getTimeInstance ( DateFormat . MEDIUM , locale ) ; } else { df = new SimpleDateFormat ( timeFormat , locale == null ? Locale . getDefault ( ) : locale ) ; } df . setTimeZone ( tz ) ; return df ; }

Devuelve un objeto FechaFormat inicializado.


protected void synchronizeChildren  ( ) { needsSyncChildren ( false ) ; }

Anular este método en la subclase para enganchar en una estructura de datos interna eficiente.


@ Override public DocumentFragment createDocumentFragment  ( ) { return new DocumentFragmentImpl ( this ) ; }

Método de fábrica;Crea un fragmento de documentos que tiene este documento como su propietario.


public static List < Window > windows  ( String words , TokenizerFactory tokenizerFactory , int windowSize ) { Tokenizer tokenizer = tokenizerFactory . create ( words ) ; List < String > list = new ArrayList < > ( ) ; while ( tokenizer . hasMoreTokens ( ) ) list . add ( tokenizer . nextToken ( ) ) ; if ( list . isEmpty ( ) ) throw new IllegalStateException ( "No tokens found for windows" ) ; return windows ( list , windowSize ) ; }

Construye una lista de ventana de Tamaño con el sistema.Tenga en cuenta que también se crea el relleno para cada ventana.


public static Map < String , Object > sendProcessNotification  ( DispatchContext ctx , Map < String , ? extends Object > context ) { Delegator delegator = ctx . getDelegator ( ) ; LocalDispatcher dispatcher = ctx . getDispatcher ( ) ; String adminEmailList = ( String ) context . get ( "adminEmailList" ) ; String assignedToUser = ( String ) context . get ( "assignedPartyId" ) ; String workEffortId = ( String ) context . get ( "workEffortId" ) ; Locale locale = ( Locale ) context . get ( "locale" ) ; GenericValue workEffort = null ; GenericValue orderHeader = null ; try { workEffort = EntityQuery . use ( delegator ) . from ( "WorkEffort" ) . where ( "workEffortId" , workEffortId ) . queryOne ( ) ; String sourceReferenceId = workEffort . getString ( "sourceReferenceId" ) ; if ( sourceReferenceId != null ) orderHeader = EntityQuery . use ( delegator ) . from ( "OrderHeader" ) . where ( "orderId" , sourceReferenceId ) . queryOne ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource_error , "OrderProblemWithEntityLookup" , locale ) ) ; } GenericValue party = null ; Collection < GenericValue > assignedToEmails = null ; try { party = EntityQuery . use ( delegator ) . from ( "Party" ) . where ( "partyId" , assignedToUser ) . queryOne ( ) ; } catch ( GenericEntityException e ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource_error , "OrderProblemWithEntityLookup" , locale ) ) ; } if ( party != null ) { assignedToEmails = ContactHelper . getContactMechByPurpose ( party , "PRIMARY_EMAIL" , false ) ; } Map < String , Object > templateData = new HashMap < String , Object > ( context ) ; templateData . putAll ( orderHeader ) ; templateData . putAll ( workEffort ) ; templateData . put ( "omgStatusId" , workEffort . getString ( "currentStatusId" ) ) ; List < GenericValue > assignments = null ; if ( workEffort != null ) { try { assignments = workEffort . getRelated ( "WorkEffortPartyAssignment" , null , null , false ) ; } catch ( GenericEntityException e1 ) { Debug . logError ( e1 , "Problems getting assignements" , module ) ; } } templateData . put ( "assignments" , assignments ) ; StringBuilder emailList = new StringBuilder ( ) ; if ( assignedToEmails != null ) { for ( GenericValue ct : assignedToEmails ) { if ( ct != null && ct . get ( "infoString" ) != null ) { if ( emailList . length ( ) > 1 ) emailList . append ( "," ) ; emailList . append ( ct . getString ( "infoString" ) ) ; } } } if ( adminEmailList != null ) { if ( emailList . length ( ) > 1 ) emailList . append ( "," ) ; emailList . append ( adminEmailList ) ; } String ofbizHome = System . getProperty ( "ofbiz.home" ) ; String templateName = ofbizHome + "/applications/order/email/default/emailprocessnotify.ftl" ; Map < String , Object > sendMailContext = new HashMap < String , Object > ( ) ; sendMailContext . put ( "sendTo" , emailList . toString ( ) ) ; sendMailContext . put ( "sendFrom" , "workflow@ofbiz.org" ) ; sendMailContext . put ( "subject" , "Workflow Notification" ) ; sendMailContext . put ( "templateName" , templateName ) ; sendMailContext . put ( "templateData" , templateData ) ; try { dispatcher . runAsync ( "sendGenericNotificationEmail" , sendMailContext ) ; } catch ( GenericServiceException e ) { return ServiceUtil . returnError ( UtilProperties . getMessage ( resource_error , "OrderSendMailServiceFailed" , locale ) + e . getMessage ( ) ) ; } return ServiceUtil . returnSuccess ( ) ; }

Servicio a notificaciones de pedido por correo electrónico para acciones pendientes


private void loadMore  ( ) { isLoadingData = true ; isLoadingMoreData = true ; mOnLoadMoreListener . onLoadMore ( ) ; }

Loadmore no permite actualizar y cargar más juntos


static public Document convertToClusterConfiguration  ( Document clusterXMLDomElement , InputStream clusterXSLPolicy ) throws IOException , TransformerConfigurationException , TransformerException , ParserConfigurationException , SAXException { Document rootDoc = ( Document ) XSLTConverter . transformDOM2DOM ( clusterXMLDomElement , clusterXSLPolicy ) ; return rootDoc ; }

Método que obtiene el elemento XML DOM del clúster y el flujo de entrada de esquema XSL del clúster.Llama al convertidor XSLT que produce un documento de Configuración de clúster completo.


@ Override protected RemoteOperationResult run  ( OwnCloudClient client ) { RemoteOperationResult result = null ; mFile = getStorageManager ( ) . getFileByPath ( mRemotePath ) ; try { if ( ! isValidNewName ( ) ) { return new RemoteOperationResult ( ResultCode . INVALID_LOCAL_FILE_NAME ) ; } String parent = ( new File ( mFile . getRemotePath ( ) ) ) . getParent ( ) ; parent = ( parent . endsWith ( OCFile . PATH_SEPARATOR ) ) ? parent : parent + OCFile . PATH_SEPARATOR ; mNewRemotePath = parent + mNewName ; if ( mFile . isFolder ( ) ) { mNewRemotePath += OCFile . PATH_SEPARATOR ; } if ( getStorageManager ( ) . getFileByPath ( mNewRemotePath ) != null ) { return new RemoteOperationResult ( ResultCode . INVALID_OVERWRITE ) ; } RenameRemoteFileOperation operation = new RenameRemoteFileOperation ( mFile . getFileName ( ) , mFile . getRemotePath ( ) , mNewName , mFile . isFolder ( ) ) ; result = operation . execute ( client ) ; if ( result . isSuccess ( ) ) { if ( mFile . isFolder ( ) ) { getStorageManager ( ) . moveLocalFile ( mFile , mNewRemotePath , parent ) ; } else { saveLocalFile ( ) ; } } } catch ( IOException e ) { Log_OC . e ( TAG , "Rename " + mFile . getRemotePath ( ) + " to " + ( ( mNewRemotePath == null ) ? mNewName : mNewRemotePath ) + ": " + ( ( result != null ) ? result . getLogMessage ( ) : "" ) , e ) ; } return result ; }

Realiza la operación de cambio de nombre.


void addFillComponents  ( Container panel , int [ ] cols , int [ ] rows ) { Dimension filler = new Dimension ( 10 , 10 ) ; boolean filled_cell_11 = false ; CellConstraints cc = new CellConstraints ( ) ; if ( cols . length > 0 && rows . length > 0 ) { if ( cols [ 0 ] == 1 && rows [ 0 ] == 1 ) { panel . add ( Box . createRigidArea ( filler ) , cc . xy ( 1 , 1 ) ) ; filled_cell_11 = true ; } } for ( int index = 0 ; index < cols . length ; index ++ ) { if ( cols [ index ] == 1 && filled_cell_11 ) { continue ; } panel . add ( Box . createRigidArea ( filler ) , cc . xy ( cols [ index ] , 1 ) ) ; } for ( int index = 0 ; index < rows . length ; index ++ ) { if ( rows [ index ] == 1 && filled_cell_11 ) { continue ; } panel . add ( Box . createRigidArea ( filler ) , cc . xy ( 1 , rows [ index ] ) ) ; } }

Agrega componentes de llenado para vaciar las celdas en la primera fila y la primera columna de la cuadrícula.Esto asegura que el espaciado de la red sea el mismo que se muestra en el diseñador.


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

Cantidad de comunidades o usuarios a devolver.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Search_ME_TO_B  ( String skilltarget , String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200558 , skilltarget , skillcaster , skillname ) ; }

[% SkillTarget] está en el estado transparente porque [% Skillcaster] usó [% de habilidad].


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

Dirección de alimentación RSS para importación (disponible solo para comunidades con permiso especial. Póngase en contacto con vk.com/support para obtenerlo


public static List < String > readLines  ( InputStream input , Charset encoding ) throws IOException { InputStreamReader reader = new InputStreamReader ( input , Charsets . toCharset ( encoding ) ) ; return readLines ( reader ) ; }

Obtenga los contenidos de un <código> inputstream </ code> como una lista de cadenas, una entrada por línea, utilizando la codificación de caracteres especificada.<p /> Este método almacena la entrada internamente, por lo que no es necesario usar un <código> tamponputstream </ code>.


private void addCallbackMethod  ( String layoutClass , AndroidMethod callbackMethod ) { Set < SootMethodAndClass > methods = this . callbackMethods . get ( layoutClass ) ; if ( methods == null ) { methods = new HashSet < SootMethodAndClass > ( ) ; this . callbackMethods . put ( layoutClass , methods ) ; } methods . add ( new AndroidMethod ( callbackMethod ) ) ; }

Agrega un método al conjunto de método de devolución de llamada


public boolean isTiltEnabled  ( ) { return mTiltEnabled ; }

Obtenga si el efecto de inclinación está habilitado en el swiping.


@ Deployment ( resources = { "org/activiti/engine/test/api/runtime/oneTaskProcess.bpmn20.xml" } ) public void testTaskIdentityLinks  ( ) throws Exception  { ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "oneTaskProcess" ) ; Task task = taskService . createTaskQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . singleResult ( ) ; assertNotNull ( task ) ; taskService . addCandidateUser ( task . getId ( ) , "kermit" ) ; taskService . addCandidateGroup ( task . getId ( ) , "sales" ) ; assertEquals ( 6 , listener . getEventsReceived ( ) . size ( ) ) ; ActivitiEntityEvent event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; assertTrue ( event . getEntity ( ) instanceof IdentityLink ) ; IdentityLink link = ( IdentityLink ) event . getEntity ( ) ; assertEquals ( "kermit" , link . getUserId ( ) ) ; assertEquals ( "candidate" , link . getType ( ) ) ; assertEquals ( task . getId ( ) , link . getTaskId ( ) ) ; assertEquals ( task . getExecutionId ( ) , event . getExecutionId ( ) ) ; assertEquals ( task . getProcessDefinitionId ( ) , event . getProcessDefinitionId ( ) ) ; assertEquals ( task . getProcessInstanceId ( ) , event . getProcessInstanceId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 1 ) ; assertEquals ( ActivitiEventType . ENTITY_INITIALIZED , event . getType ( ) ) ; assertEquals ( "kermit" , link . getUserId ( ) ) ; assertEquals ( "candidate" , link . getType ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 4 ) ; assertEquals ( ActivitiEventType . ENTITY_CREATED , event . getType ( ) ) ; assertTrue ( event . getEntity ( ) instanceof IdentityLink ) ; link = ( IdentityLink ) event . getEntity ( ) ; assertEquals ( "sales" , link . getGroupId ( ) ) ; assertEquals ( "candidate" , link . getType ( ) ) ; assertEquals ( task . getId ( ) , link . getTaskId ( ) ) ; assertEquals ( task . getExecutionId ( ) , event . getExecutionId ( ) ) ; assertEquals ( task . getProcessDefinitionId ( ) , event . getProcessDefinitionId ( ) ) ; assertEquals ( task . getProcessInstanceId ( ) , event . getProcessInstanceId ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 5 ) ; assertEquals ( ActivitiEventType . ENTITY_INITIALIZED , event . getType ( ) ) ; assertEquals ( "sales" , link . getGroupId ( ) ) ; assertEquals ( "candidate" , link . getType ( ) ) ; listener . clearEventsReceived ( ) ; runtimeService . deleteProcessInstance ( processInstance . getId ( ) , "test" ) ; assertEquals ( 3 , listener . getEventsReceived ( ) . size ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 0 ) ; assertEquals ( ActivitiEventType . ENTITY_DELETED , event . getType ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 1 ) ; assertEquals ( ActivitiEventType . ENTITY_DELETED , event . getType ( ) ) ; event = ( ActivitiEntityEvent ) listener . getEventsReceived ( ) . get ( 2 ) ; assertEquals ( ActivitiEventType . ENTITY_DELETED , event . getType ( ) ) ; }

Compruebe los enlaces de identidad en las instancias de proceso.


public DatatypeConfigurationException ( ) { super ( ) ; }

Crear un nuevo <código> DataTyPeconFiguraciónException  sin un mensaje de detalle específico y causa.


private static String mangleName  ( String origName ) throws IllegalArgumentException  { final char dot = '.' ; final char dotReplacement = '_' ; StringBuffer mangledName = new StringBuffer ( origName ) ; int replacements = 0 ; int lastDot = origName . lastIndexOf ( dot ) ; for ( int nextDot = lastDot ; ( nextDot = origName . lastIndexOf ( dot , nextDot - 1 ) ) >= 0 ; ) { mangledName . setCharAt ( nextDot , dotReplacement ) ; replacements ++ ; } if ( replacements <= 0 ) { throw new IllegalArgumentException ( "AltClassLoader.mangleName()'s crude classname mangling cannot deal with " + origName ) ; } return mangledName . toString ( ) ; }

Mangles un nombre de clase para que no se encuentre en el System Classpath por nuestro cargador de clase de padres, incluso si hay una clase con el nombre original allí.Utilizamos una heurística cruda para hacer esto que sucede para trabajar con los nombres que hemos necesitado para Manglar hasta la fecha.La heurística requiere que <code> origname </ code> incluya al menos dos puntos (es decir, la clase debe estar en un paquete, donde el nombre del paquete tenga al menos dos componentes).Existen posibilidades más sofisticadas, pero requerirían un análisis más completo del archivo de clase.


public String toString  ( ) { StringBuffer sbuf = new StringBuffer ( ) ; sbuf . append ( "Schema[" ) ; for ( int i = 0 ; i < m_size ; ++ i ) { if ( i > 0 ) sbuf . append ( ' ' ) ; sbuf . append ( '(' ) . append ( m_names [ i ] ) . append ( ", " ) ; sbuf . append ( m_types [ i ] . getName ( ) ) . append ( ", " ) ; sbuf . append ( m_dflts [ i ] ) . append ( ')' ) ; } sbuf . append ( ']' ) ; return sbuf . toString ( ) ; }

Devuelve una cadena descriptiva para este esquema.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Blind_END_ME_TO_B  ( String skilltarget ) { return new SM_SYSTEM_MESSAGE ( 1200442 , skilltarget ) ; }