public void removeFeature  ( int selectedRow ) { if ( ( selectedRow < 0 ) || ( selectedRow >= getRowCount ( ) ) ) { return ; } SimpleFeatureType featureType = userLayer . getInlineFeatureType ( ) ; String typeName = userLayer . getInlineFeatureType ( ) . getTypeName ( ) ; try { SimpleFeatureSource featureSource = userLayer . getInlineFeatureDatastore ( ) . getFeatureSource ( typeName ) ; SimpleFeatureBuilder sfb = new SimpleFeatureBuilder ( featureType ) ; ArrayList < SimpleFeature > featureList = new ArrayList < SimpleFeature > ( ) ; SimpleFeatureIterator it = featureSource . getFeatures ( ) . features ( ) ; try { int index = 0 ; while ( it . hasNext ( ) ) { SimpleFeature sf = it . next ( ) ; if ( index != selectedRow ) { List < Object > attributeValueList = sf . getAttributes ( ) ; sfb . addAll ( attributeValueList ) ; featureList . add ( sfb . buildFeature ( null ) ) ; } index ++ ; } } finally { it . close ( ) ; } SimpleFeatureCollection collection = new ListFeatureCollection ( featureType , featureList ) ; DataStore dataStore = DataUtilities . dataStore ( collection ) ; featureCollection = collection ; cachedFeature = null ; lastRow = - 1 ; userLayer . setInlineFeatureDatastore ( dataStore ) ; } catch ( IOException e ) { ConsoleManager . getInstance ( ) . exception ( this , e ) ; } this . fireTableStructureChanged ( ) ; this . fireTableDataChanged ( ) ; if ( parentObj != null ) { parentObj . inlineFeatureUpdated ( ) ; } }


private void appointRank  ( Player activePlayer , Player targetPlayer , int rankId ) { if ( legionRestrictions . canAppointRank ( activePlayer , targetPlayer . getObjectId ( ) ) ) { Legion legion = activePlayer . getLegion ( ) ; int msgId = 0 ; LegionRank rank = LegionRank . values ( ) [ rankId ] ; LegionMember legionMember = targetPlayer . getLegionMember ( ) ; switch ( rank ) { case DEPUTY : msgId = 1400902 ; break ; case LEGIONARY : msgId = 1300268 ; break ; case CENTURION : msgId = 1300267 ; break ; case VOLUNTEER : msgId = 1400903 ; default : break ; } legionMember . setRank ( rank ) ; PacketSendUtility . broadcastPacketToLegion ( legion , new SM_LEGION_UPDATE_MEMBER ( targetPlayer , msgId , targetPlayer . getName ( ) ) ) ; } }

Este método manejará el proceso cuando un miembro es degradado o promovido.


void moveMethod  ( String m , int pos ) { int i , j ; method_info mthd ; G . v ( ) . out . println ( "Moving " + m + " to position " + pos + " of " + methods_count ) ; for ( i = 0 ; i < methods_count ; i ++ ) { if ( m . compareTo ( methods [ i ] . toName ( constant_pool ) ) == 0 ) { mthd = methods [ i ] ; if ( i > pos ) { for ( j = i ; j > pos && j > 0 ; j -- ) methods [ j ] = methods [ j - 1 ] ; methods [ pos ] = mthd ; } else if ( i < pos ) { for ( j = i ; j < pos && j < methods_count - 1 ; j ++ ) methods [ j ] = methods [ j + 1 ] ; methods [ pos ] = mthd ; } return ; } } }

Mueve un método a un índice diferente en la matriz de métodos.


public static void assemble  ( String dest_dir , String fname , boolean number_lines ) { File file = new File ( fname ) ; File out_file = null ; ClassFile classFile = new ClassFile ( ) ; try { InputStream inp = new BufferedInputStream ( new FileInputStream ( fname ) ) ; classFile . readJasmin ( inp , file . getName ( ) , number_lines ) ; inp . close ( ) ; if ( classFile . errorCount ( ) > 0 ) { System . err . println ( fname + ": Found " + classFile . errorCount ( ) + " errors" ) ; return ; } String class_path [ ] = ( ScannerUtils . splitClassField ( classFile . getClassName ( ) ) ) ; String class_name = class_path [ 1 ] ; if ( class_path [ 0 ] != null ) { String class_dir = ScannerUtils . convertChars ( class_path [ 0 ] , "./" , File . separatorChar ) ; if ( dest_dir != null ) { dest_dir = dest_dir + File . separator + class_dir ; } else { dest_dir = class_dir ; } } if ( dest_dir == null ) { out_file = new File ( class_name + ".class" ) ; } else { out_file = new File ( dest_dir , class_name + ".class" ) ; File dest = new File ( dest_dir ) ; if ( ! dest . exists ( ) ) { dest . mkdirs ( ) ; } if ( ! dest . isDirectory ( ) ) { throw new IOException ( "Cannot create directory" ) ; } } FileOutputStream outp = new FileOutputStream ( out_file ) ; classFile . write ( outp ) ; outp . close ( ) ; } catch ( java . io . FileNotFoundException e ) { System . err . println ( fname + ": file not found" ) ; System . exit ( - 1 ) ; } catch ( jasError e ) { classFile . report_error ( "JAS Error " + e . getMessage ( ) ) ; e . printStackTrace ( ) ; } catch ( Exception e ) { classFile . report_error ( fname + ": exception - <" + e . getClass ( ) . getName ( ) + "> " + e . getMessage ( ) + "." ) ; e . printStackTrace ( ) ; } if ( classFile . errorCount ( ) > 0 ) { System . err . println ( fname + ": Found " + classFile . errorCount ( ) + " errors" ) ; } }


public void commitMetrics  ( ) { if ( mCommitted ) return ; mCommitted = true ; assert mSplashScreenBackgroundColor != SPLASHSCREEN_COLOR_STATUS_MAX ; RecordHistogram . recordEnumeratedHistogram ( HISTOGRAM_SPLASHSCREEN_BACKGROUNDCOLOR , mSplashScreenBackgroundColor , SPLASHSCREEN_COLOR_STATUS_MAX ) ; mSplashScreenBackgroundColor = SPLASHSCREEN_COLOR_STATUS_MAX ; assert mSplashScreenIconType != SPLASHSCREEN_ICON_TYPE_MAX ; RecordHistogram . recordEnumeratedHistogram ( HISTOGRAM_SPLASHSCREEN_ICON_TYPE , mSplashScreenIconType , SPLASHSCREEN_ICON_TYPE_MAX ) ; if ( mSplashScreenIconType == SPLASHSCREEN_ICON_TYPE_NONE ) { assert mSplashScreenIconSize == - 1 ; } else { assert mSplashScreenIconSize >= 0 ; RecordHistogram . recordCount1000Histogram ( HISTOGRAM_SPLASHSCREEN_ICON_SIZE , mSplashScreenIconSize ) ; } mSplashScreenIconType = SPLASHSCREEN_ICON_TYPE_MAX ; mSplashScreenIconSize = - 1 ; assert mSplashScreenThemeColor != SPLASHSCREEN_COLOR_STATUS_MAX ; RecordHistogram . recordEnumeratedHistogram ( HISTOGRAM_SPLASHSCREEN_THEMECOLOR , mSplashScreenThemeColor , SPLASHSCREEN_COLOR_STATUS_MAX ) ; mSplashScreenThemeColor = SPLASHSCREEN_COLOR_STATUS_MAX ; }

Registra todas las métricas que no se pudieron grabar porque la biblioteca nativa aún no estaba cargada.


public static SM_SYSTEM_MESSAGE STR_SKILL_ABSTATUS_SKILL_TURNED_OFF  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300055 , value0 ) ; }

El efecto de habilidad% 0 se ha eliminado.


@ Override public Object apply  ( SqlFunctionExecutionContext context ) { Object arg = context . getArgument ( 0 ) ; Integer decimalPlaces = 0 ; if ( context . getNumberOfArguments ( ) >= 2 ) { decimalPlaces = ( Integer ) context . getArgument ( 1 ) ; } if ( ! ( arg instanceof Number ) ) { throw new RuntimeException ( "Round function - wrong argument type, should be type Number - : " + arg ) ; } double factor = Math . pow ( 10 , decimalPlaces ) ; if ( arg instanceof Double ) { long res = Math . round ( ( Double ) arg * factor ) ; return res / factor ; } else if ( arg instanceof Float ) { long res = Math . round ( ( Float ) arg * factor ) ; return new Double ( res / factor ) . floatValue ( ) ; } else { return arg ; } }

Redondea el primer contexto del argumento.getargument (0) a la cantidad de decimales especificados por contexto.getargument (1).<ul> <li> redondo (1.298, 1) = 1.3 </ li> <li> redondo (1.298, 0) = 1 </ li> <li> redondo (23.298, -1) = 20 </ li> </ ul>


@ NotNull public static String listToString  ( @ NotNull JListFixture list , int startRow , int endRow , int cellWidth ) { String [ ] contents = list . contents ( ) ; StringBuilder sb = new StringBuilder ( ) ; String formatString = "%-" + Integer . toString ( cellWidth ) + "s" ; for ( int row = Math . max ( 0 , startRow ) ; row < Math . min ( endRow , contents . length ) ; row ++ ) { String cell = contents [ row ] ; if ( cell . length ( ) > cellWidth ) { cell = cell . substring ( 0 , cellWidth - 3 ) + "..." ; } sb . append ( String . format ( formatString , cell ) ) ; sb . append ( '\n' ) ; } return sb . toString ( ) ; }

Pretty-imprime el accesorio de la lista dado


public TakeModifiers ( TakeModifiers modifiers1 , TakeModifiers modifiers2 ) { super ( modifiers1 , modifiers2 ) ; }

Crea un nuevo modificador de los modificadores especificados.


public UsersGetNearbyQuery fields  ( List < UserField > value ) { return unsafeParam ( "fields" , value ) ; }

Lista de campos adicionales para devolver.


private static boolean checkSingular  ( double [ ] diag , double min , boolean raise ) { final int len = diag . length ; for ( int i = 0 ; i < len ; i ++ ) { final double d = diag [ i ] ; if ( FastMath . abs ( d ) <= min ) { if ( raise ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . SINGULAR_MATRIX ) ; } else { return true ; } } } return false ; }


private void decode  ( byte [ ] data , int width , int height ) { Size size = activity . getCameraManager ( ) . getPreviewSize ( ) ; byte [ ] rotatedData = new byte [ data . length ] ; for ( int y = 0 ; y < size . height ; y ++ ) { for ( int x = 0 ; x < size . width ; x ++ ) rotatedData [ x * size . height + size . height - y - 1 ] = data [ x + y * size . width ] ; } int tmp = size . width ; size . width = size . height ; size . height = tmp ; Result rawResult = null ; PlanarYUVLuminanceSource source = buildLuminanceSource ( rotatedData , size . width , size . height ) ; if ( source != null ) { BinaryBitmap bitmap = new BinaryBitmap ( new HybridBinarizer ( source ) ) ; try { rawResult = multiFormatReader . decodeWithState ( bitmap ) ; } catch ( ReaderException re ) { } finally { multiFormatReader . reset ( ) ; } } Handler handler = activity . getHandler ( ) ; if ( rawResult != null ) { if ( handler != null ) { Message message = Message . obtain ( handler , R . id . decode_succeeded , rawResult ) ; Bundle bundle = new Bundle ( ) ; bundleThumbnail ( source , bundle ) ; message . setData ( bundle ) ; message . sendToTarget ( ) ; } } else { if ( handler != null ) { Message message = Message . obtain ( handler , R . id . decode_failed ) ; message . sendToTarget ( ) ; } } }

Deccriba los datos dentro del rectángulo del visor y el tiempo cuánto tiempo tomó.Para la eficiencia, reutilice los mismos objetos de lector de una decodificación a la siguiente.


public static String toString  ( int m ) { StringBuffer buffer = new StringBuffer ( ) ; if ( isPublic ( m ) ) buffer . append ( "public " ) ; else if ( isPrivate ( m ) ) buffer . append ( "private " ) ; else if ( isProtected ( m ) ) buffer . append ( "protected " ) ; if ( isAbstract ( m ) ) buffer . append ( "abstract " ) ; if ( isStatic ( m ) ) buffer . append ( "static " ) ; if ( isFinal ( m ) ) buffer . append ( "final " ) ; if ( isSynchronized ( m ) ) buffer . append ( "synchronized " ) ; if ( isNative ( m ) ) buffer . append ( "native " ) ; if ( isTransient ( m ) ) buffer . append ( "transient " ) ; if ( isVolatile ( m ) ) buffer . append ( "volatile " ) ; if ( isStrictFP ( m ) ) buffer . append ( "strictfp " ) ; if ( isAnnotation ( m ) ) buffer . append ( "annotation " ) ; if ( isEnum ( m ) ) buffer . append ( "enum " ) ; if ( isInterface ( m ) ) buffer . append ( "interface " ) ; return ( buffer . toString ( ) ) . trim ( ) ; }

Convierte los modificadores dados a su representación de cadena, en forma canónica.


public void flushInsert  ( ) { if ( ! useBulkInsert ) { for ( int i = 0 ; i < numberOfQueues ; i ++ ) { if ( ! insertLists [ i ] . isEmpty ( ) ) { this . submitTaskToQueue ( this . createInsertTask ( insertLists [ i ] ) , i , processedInserts ) ; this . insertLists [ i ] = new ArrayList ( batchSize ) ; this . insertsQueued ++ ; } } } }

Enjuaga los objetos restantes.Llamado automáticamente desde WaituntilFinished ().No tiene efecto cuando en modo de inserción a granel.


public int conf  ( ) { String s = soot . PhaseOptions . getString ( options , "conf" ) ; if ( s . equalsIgnoreCase ( "ofcg" ) ) return conf_ofcg ; if ( s . equalsIgnoreCase ( "cha" ) ) return conf_cha ; if ( s . equalsIgnoreCase ( "cha-aot" ) ) return conf_cha_aot ; if ( s . equalsIgnoreCase ( "ofcg-aot" ) ) return conf_ofcg_aot ; if ( s . equalsIgnoreCase ( "cha-context-aot" ) ) return conf_cha_context_aot ; if ( s . equalsIgnoreCase ( "ofcg-context-aot" ) ) return conf_ofcg_context_aot ; if ( s . equalsIgnoreCase ( "cha-context" ) ) return conf_cha_context ; if ( s . equalsIgnoreCase ( "ofcg-context" ) ) return conf_ofcg_context ; throw new RuntimeException ( "Invalid value " + s + " of phase option conf" ) ; }

Configuración: seleccione la configuración de la paleta.Selecciona la configuración de los puntos a análisis y la construcción de gráficos de llamada que se utilizará en la paleta.


public SlowedProgressBar ( Context context , AttributeSet attrs , int defStyle ) { super ( context , attrs , defStyle ) ; }

Cree una nueva barra de progreso con rango 0 ... 100 y progreso inicial de 0.


@ Override public void write  ( byte [ ] b , int off , int len ) { if ( ( off < 0 ) || ( off > b . length ) || ( len < 0 ) || ( ( off + len ) > b . length ) || ( ( off + len ) < 0 ) ) { throw new IndexOutOfBoundsException ( ) ; } else if ( len == 0 ) { return ; } synchronized ( this ) { int newcount = count + len ; int remaining = len ; int inBufferPos = count - filledBufferSum ; while ( remaining > 0 ) { int part = Math . min ( remaining , currentBuffer . length - inBufferPos ) ; System . arraycopy ( b , off + len - remaining , currentBuffer , inBufferPos , part ) ; remaining -= part ; if ( remaining > 0 ) { needNewBuffer ( newcount ) ; inBufferPos = 0 ; } } count = newcount ; } }


private boolean isRemovedFromClass  ( String columnName ) { return ! mTableModel . containsColumn ( columnName ) ; }

Lea un nombre de columna de la base de datos, y juzgue el campo correspondiente en la clase o no se elimina o no.


@ Override public void actionPerformed  ( ActionEvent ev ) { final megan . remote . RemoteServiceBrowser remoteServiceBrowser = ( megan . remote . RemoteServiceBrowser ) getViewer ( ) ; if ( remoteServiceBrowser != null ) { String url = remoteServiceBrowser . getURL ( ) ; if ( url . length ( ) > 0 ) { execute ( "detach remoteServer=" + url + ";" ) ; } } }


public void normal  ( ) { mHintView . setVisibility ( View . VISIBLE ) ; mProgressBar . setVisibility ( View . GONE ) ; }


public FileSystemDropImporter ( Path localizedFolderPath ) { this . localizedFolderPath = localizedFolderPath ; }

Crea una instancia para importar archivos de la carpeta especificada.


public static void startActionBaz  ( Context context , String param1 , String param2 ) { Intent intent = new Intent ( context , OnBootUpAlarmScheduler . class ) ; intent . setAction ( ACTION_BAZ ) ; intent . putExtra ( EXTRA_PARAM1 , param1 ) ; intent . putExtra ( EXTRA_PARAM2 , param2 ) ; context . startService ( intent ) ; }

Comienza a este servicio para realizar la acción BAZ con los parámetros dados.Si el servicio ya está realizando una tarea, esta acción será cola.


@ Override public void onCreate  ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; }

Se llama cuando se crea por primera vez la actividad.


public ByteBuffer flushAndReleaseBuffer  ( ) throws IOException  { _lock . lock ( ) ; try { _flushPending = true ; while ( _bufferUseCount != 0 ) { _flushReady . await ( ) ; } _buffer . flip ( ) ; if ( _buffer . limit ( ) != 0 && _modified ) { if ( _backingFile == null ) { _backingFile = Files . createTempFile ( "tablebuffer" , ".tmp" ) ; } _log . debug ( "Flushing buffer for index {} to {} ({}/{} bytes)" , _startIndex , _backingFile , _buffer . limit ( ) , _blockSize ) ; try ( ByteChannel out = Files . newByteChannel ( _backingFile , WRITE ) ) { out . write ( _buffer ) ; } } else { _log . debug ( "Releasing unmodified buffer for index {}" , _startIndex ) ; } ByteBuffer oldBuffer = _buffer ; _buffer = null ; _loaded = false ; return oldBuffer ; } catch ( InterruptedException e ) { throw Throwables . propagate ( e ) ; } finally { _flushPending = false ; _flushComplete . signalAll ( ) ; _lock . unlock ( ) ; } }

Enjuaga el búfer del bloque en el disco y libera el búfer para usarlo por otro bloque.Este método se llama cuando otro bloque requiere un búfer, todos los búferes se han asignado y este bloque es el menos utilizado recientemente.


@ Override protected FieldConfigBase createCopy  ( FieldConfigBase fieldConfigBase ) { FieldConfigTTF copy = null ; if ( fieldConfigBase != null ) { copy = new FieldConfigTTF ( fieldConfigBase . getCommonData ( ) ) ; } return copy ; }


private boolean isFieldPackagePrivate  ( Element attribute ) { Set < Modifier > modifiers = attribute . getModifiers ( ) ; return ! modifiers . contains ( PUBLIC ) && ! modifiers . contains ( PROTECTED ) && ! modifiers . contains ( PRIVATE ) ; }

Cheques Si el campo dado tiene visibilidad de paquete privado.


public static SM_SYSTEM_MESSAGE STR_CHAT_ROOM_JOIN_NOTIFY_SELF  ( String value1 , String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300857 , value1 , value0 ) ; }

Se ha unido al canal privado% 1 en el canal% 0.Confirme si seleccionó el canal en la opción Ficha de chat.


public void clearSubHeaderCache  ( ) { mSubHeaderCache . clear ( ) ; }

Borra el subtítulo Ver caché.Los subtítulos serán recreados y rebotar en la lista de desplazamiento después de que se haya llamado este método.


Se utilizará por debajo del método para registrar la estadística.


public Part readNextPart  ( ) throws IOException  { if ( lastFilePart != null ) { lastFilePart . getInputStream ( ) . close ( ) ; lastFilePart = null ; } Vector headers = new Vector ( ) ; String line = readLine ( ) ; if ( line == null ) { return null ; } else if ( line . length ( ) == 0 ) { return null ; } while ( line != null && line . length ( ) > 0 ) { String nextLine = null ; boolean getNextLine = true ; while ( getNextLine ) { nextLine = readLine ( ) ; if ( nextLine != null && ( nextLine . startsWith ( " " ) || nextLine . startsWith ( "\t" ) ) ) { line = line + nextLine ; } else { getNextLine = false ; } } headers . addElement ( line ) ; line = nextLine ; } if ( line == null ) { return null ; } String name = null ; String filename = null ; String origname = null ; String contentType = "text/plain" ; Enumeration enumeration = headers . elements ( ) ; while ( enumeration . hasMoreElements ( ) ) { String headerline = ( String ) enumeration . nextElement ( ) ; if ( headerline . toLowerCase ( ) . startsWith ( "content-disposition:" ) ) { String [ ] dispInfo = extractDispositionInfo ( headerline ) ; name = dispInfo [ 1 ] ; filename = dispInfo [ 2 ] ; origname = dispInfo [ 3 ] ; } else if ( headerline . toLowerCase ( ) . startsWith ( "content-type:" ) ) { contentType = extractContentType ( headerline ) ; } } if ( filename == null ) { return new ParamPart ( name , in , boundary , encoding ) ; } else { if ( filename . equals ( "" ) ) { filename = null ; } lastFilePart = new FilePart ( name , in , boundary , contentType , filename , origname ) ; return lastFilePart ; } }

Lea la siguiente parte que llega a la corriente.Será un <código> FILEPART </ CODE> o un parampart </ code>, o <Code> Null </ Code> para indicar que no hay más partes para leer.El orden de llegada corresponde al orden de los elementos del formulario en el formulario enviado.


public static long copyLarge  ( InputStream input , OutputStream output , final long inputOffset , final long length , byte [ ] buffer ) throws IOException { if ( inputOffset > 0 ) { skipFully ( input , inputOffset ) ; } if ( length == 0 ) { return 0 ; } final int bufferLength = buffer . length ; int bytesToRead = bufferLength ; if ( length > 0 && length < bufferLength ) { bytesToRead = ( int ) length ; } int read ; long totalRead = 0 ; while ( bytesToRead > 0 && EOF != ( read = input . read ( buffer , 0 , bytesToRead ) ) ) { output . write ( buffer , 0 , read ) ; totalRead += read ; if ( length > 0 ) { bytesToRead = ( int ) Math . min ( length - totalRead , bufferLength ) ; } } return totalRead ; }

Copie algunos o todos los bytes de un gran (más de 2 GB) <CÓDIGO> ENTRADA </ CÓDIGO> a un <CÓDIGO> SURODSTREAM </ CODE>, opcionalmente omitiendo los bytes de entrada.<P> Este método utiliza el búfer proporcionado, por lo que no es necesario usar un <código> tamponputStream </ Code>.<p>


public static < T > Collection < T > makeImmutable  ( Collection < T > mutableCollection ) { Collection < T > newCollection ; try { @ SuppressWarnings ( "unchecked" ) Class < Collection < T > > cls = ( Class < Collection < T > > ) mutableCollection . getClass ( ) ; newCollection = cls . newInstance ( ) ; } catch ( InstantiationException | IllegalAccessException e ) { throw new IllegalStateException ( e ) ; } for ( T element : mutableCollection ) { newCollection . add ( Utils . makeImmutable ( element ) ) ; } return Collections . unmodifiableCollection ( newCollection ) ; }

Una llamada recursiva para hacer una colección y todos los valores inmutables.


public static final void shuffle  ( Object [ ] a , int start , int len , Random r ) { for ( int i = start + len ; i > 1 ; -- i ) { Object t = a [ i ] ; int j = r . nextInt ( i ) ; a [ i ] = a [ j ] ; a [ j ] = t ; } }

Permuta al azar los contenidos de un rango de una matriz.


public void stop  ( ) { ActivityManager . stopThread ( ) ; }

Cierre automáticamente la activación cuando se detiene el applet.


public void showEmpty  ( Drawable emptyImageDrawable , String emptyTextTitle , String emptyTextContent , List < Integer > skipIds ) { switchState ( EMPTY , emptyImageDrawable , emptyTextTitle , emptyTextContent , null , null , skipIds ) ; }

Mostrar vista vacía cuando no hay datos para mostrar


public void moveTo  ( float offsetX , float offsetY , boolean moveHandle ) { if ( swipeVertical ) { if ( toCurrentScale ( optimalPageWidth ) < getWidth ( ) ) { offsetX = getWidth ( ) / 2 - toCurrentScale ( optimalPageWidth ) / 2 ; } else { if ( offsetX > 0 ) { offsetX = 0 ; } else if ( offsetX + toCurrentScale ( optimalPageWidth ) < getWidth ( ) ) { offsetX = getWidth ( ) - toCurrentScale ( optimalPageWidth ) ; } } if ( getPageCount ( ) * toCurrentScale ( optimalPageHeight ) < getHeight ( ) ) { offsetY = ( getHeight ( ) - getPageCount ( ) * toCurrentScale ( optimalPageHeight ) ) / 2 ; } else { if ( offsetY > 0 ) { offsetY = 0 ; } else if ( offsetY + toCurrentScale ( getPageCount ( ) * optimalPageHeight ) < getHeight ( ) ) { offsetY = - toCurrentScale ( getPageCount ( ) * optimalPageHeight ) + getHeight ( ) ; } } if ( offsetY < currentYOffset ) { scrollDir = ScrollDir . END ; } else if ( offsetY > currentYOffset ) { scrollDir = ScrollDir . START ; } else { scrollDir = ScrollDir . NONE ; } } else { if ( toCurrentScale ( optimalPageHeight ) < getHeight ( ) ) { offsetY = getHeight ( ) / 2 - toCurrentScale ( optimalPageHeight ) / 2 ; } else { if ( offsetY > 0 ) { offsetY = 0 ; } else if ( offsetY + toCurrentScale ( optimalPageHeight ) < getHeight ( ) ) { offsetY = getHeight ( ) - toCurrentScale ( optimalPageHeight ) ; } } if ( getPageCount ( ) * toCurrentScale ( optimalPageWidth ) < getWidth ( ) ) { offsetX = ( getWidth ( ) - getPageCount ( ) * toCurrentScale ( optimalPageWidth ) ) / 2 ; } else { if ( offsetX > 0 ) { offsetX = 0 ; } else if ( offsetX + toCurrentScale ( getPageCount ( ) * optimalPageWidth ) < getWidth ( ) ) { offsetX = - toCurrentScale ( getPageCount ( ) * optimalPageWidth ) + getWidth ( ) ; } } if ( offsetX < currentXOffset ) { scrollDir = ScrollDir . END ; } else if ( offsetX > currentXOffset ) { scrollDir = ScrollDir . START ; } else { scrollDir = ScrollDir . NONE ; } } currentXOffset = offsetX ; currentYOffset = offsetY ; float positionOffset = getPositionOffset ( ) ; if ( moveHandle && scrollHandle != null && ! documentFitsView ( ) ) { scrollHandle . setScroll ( positionOffset ) ; } if ( onPageScrollListener != null ) { onPageScrollListener . onPageScrolled ( getCurrentPage ( ) , positionOffset ) ; } redraw ( ) ; }

Muévase a las compensaciones de X y Y dadas, pero revíselos antes de tiempo para asegurarse de no salir a la luz grande.


public void or  ( Criteria criteria ) { oredCriteria . add ( criteria ) ; }

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


public NumberRangeModel ( int lo , int hi , int min , int max ) { this ( new Integer ( lo ) , new Integer ( hi ) , new Integer ( min ) , new Integer ( hi ) ) ; }

Cree un nuevo NumberRangemodel para el rango dado.


public int addRootRow  ( ) { throw new UnsupportedOperationException ( "Changes to tree structure not allowed for spanning trees." ) ; }

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


public PriorityQueue priorityQueue  ( int concurrency ) { return new PriorityQueue ( this . executor_ , concurrency ) ; }

Crear una estrategia de flujo de control de priorityQueue.


protected void notifyChangingListeners  ( int oldValue , int newValue ) { for ( OnWheelChangedListener listener : changingListeners ) { listener . onChanged ( this , oldValue , newValue ) ; } }


public String apply  ( Integer taxonId ) { final String taxonName = TaxonomyData . getName2IdMap ( ) . get ( taxonId ) ; final Hashtable < String , String > attributes2Properties = AttributeData . getInstance ( ) . getTaxaName2Attributes2Properties ( ) . get ( taxonName ) ; if ( attributes2Properties != null ) { StringBuilder buffer = new StringBuilder ( ) ; buffer . append ( "---- Attributes: ----\n" ) ; buffer . append ( "Name:       \t" ) . append ( taxonName ) . append ( "\n" ) ; buffer . append ( "TaxId:      \t" ) . append ( taxonId ) . append ( "\n" ) ; buffer . append ( "Kingdom:    \t" ) . append ( attributes2Properties . get ( AttributeData . attributeList [ 11 ] ) ) . append ( "\n" ) ; buffer . append ( "Group:      \t" ) . append ( attributes2Properties . get ( AttributeData . attributeList [ 10 ] ) ) . append ( "\n" ) ; buffer . append ( "Genome size:\t" ) . append ( attributes2Properties . get ( AttributeData . attributeList [ 8 ] ) ) . append ( " MB\n" ) ; buffer . append ( "GC Content: \t" ) . append ( attributes2Properties . get ( AttributeData . attributeList [ 9 ] ) ) . append ( " %\n" ) ; int i = 0 ; for ( String attribute : AttributeData . attributeList ) { i ++ ; if ( i < 8 ) buffer . append ( attribute ) . append ( ":\t" ) . append ( attributes2Properties . get ( attribute ) ) . append ( "\n" ) ; } final Node v = dir . getMainViewer ( ) . getTaxId2Node ( taxonId ) ; if ( v != null ) { buffer . append ( "Reads assigned:\t" ) . append ( ( ( NodeData ) v . getData ( ) ) . getCountAssigned ( ) ) . append ( "\n" ) ; buffer . append ( "Summarized:    \t" ) . append ( ( ( NodeData ) v . getData ( ) ) . getCountSummarized ( ) ) . append ( "\n" ) ; } return buffer . toString ( ) ; } return "Unknown\n" ; }

Obtiene los atributos microbianos para un taxón.


public LeadsStartQuery start  ( UserActor actor , int leadId , String secret ) { return new LeadsStartQuery ( getClient ( ) , actor , leadId , secret ) ; }

Crea nueva sesión para que el usuario pase la oferta.


public static String createStopList  ( FileSystem fs , boolean hdfs ) throws IOException , PIRException { logger . info ( "StopList file being created" ) ; List < String > elements = Arrays . asList ( "something.else.on.stoplist" , "3.3.3.132" ) ; if ( hdfs ) { String pirStopListFile = SystemConfiguration . getProperty ( DistributedTestDriver . PIR_STOPLIST_FILE ) ; if ( pirStopListFile == null ) { throw new PIRException ( "HDFS stop list file configuration name is required." ) ; } HDFS . writeFile ( elements , fs , pirStopListFile , true ) ; logger . info ( "pirStopListFile file successfully created on hdfs!" ) ; } String prefix = SystemConfiguration . getProperty ( "pir.stopListFile" ) ; if ( prefix == null ) { throw new PIRException ( "Local stop list file configuration name is required." ) ; } return TestUtils . writeToTmpFile ( elements , prefix , null ) ; }


public synchronized byte [ ] externalize  ( ) { ByteArrayOutputStream outBStream = new ByteArrayOutputStream ( ) ; DataOutputStream outStream = new DataOutputStream ( outBStream ) ; try { outStream . writeByte ( this . op ) ; outStream . writeByte ( this . htype ) ; outStream . writeByte ( this . hlen ) ; outStream . writeByte ( this . hops ) ; outStream . writeInt ( this . xid ) ; outStream . writeShort ( this . secs ) ; outStream . writeShort ( this . flags ) ; outStream . write ( this . ciaddr , 0 , 4 ) ; outStream . write ( this . yiaddr , 0 , 4 ) ; outStream . write ( this . siaddr , 0 , 4 ) ; outStream . write ( this . giaddr , 0 , 4 ) ; outStream . write ( this . chaddr , 0 , 16 ) ; outStream . write ( this . sname , 0 , 64 ) ; outStream . write ( this . file , 0 , 128 ) ; byte [ ] options = new byte [ 312 ] ; if ( this . optionsList == null ) { initialize ( ) ; } options = this . optionsList . externalize ( ) ; outStream . write ( options , 0 , 312 ) ; } catch ( IOException e ) { System . err . println ( e ) ; } byte data [ ] = outBStream . toByteArray ( ) ; return data ; }

Convierte un objeto DHCPMessage a una matriz de bytes.


static public char [ ] encode  ( byte [ ] data ) { char [ ] out = new char [ ( ( data . length + 2 ) / 3 ) * 4 ] ; for ( int i = 0 , index = 0 ; i < data . length ; i += 3 , index += 4 ) { boolean quad = false ; boolean trip = false ; int val = ( 0xFF & data [ i ] ) ; val <<= 8 ; if ( ( i + 1 ) < data . length ) { val |= ( 0xFF & data [ i + 1 ] ) ; trip = true ; } val <<= 8 ; if ( ( i + 2 ) < data . length ) { val |= ( 0xFF & data [ i + 2 ] ) ; quad = true ; } out [ index + 3 ] = alphabet [ ( quad ? ( val & 0x3F ) : 64 ) ] ; val >>= 6 ; out [ index + 2 ] = alphabet [ ( trip ? ( val & 0x3F ) : 64 ) ] ; val >>= 6 ; out [ index + 1 ] = alphabet [ val & 0x3F ] ; val >>= 6 ; out [ index + 0 ] = alphabet [ val & 0x3F ] ; } return out ; }

Devuelve una matriz de caracteres codificados de base64 para representar la matriz de datos pasada.


@ Nullable public static Label createLabelFromString  ( @ Nullable BuildFile file , @ Nullable String labelString ) { if ( labelString == null ) { return null ; } int colonIndex = labelString . indexOf ( ':' ) ; if ( labelString . startsWith ( "//" ) ) { if ( colonIndex == - 1 ) { labelString += ":" + PathUtil . getFileName ( labelString ) ; } return Label . createIfValid ( labelString ) ; } WorkspacePath packagePath = file != null ? file . getPackageWorkspacePath ( ) : null ; if ( packagePath == null ) { return null ; } String localPath = colonIndex == - 1 ? labelString : labelString . substring ( 1 ) ; return Label . createIfValid ( "//" + packagePath . relativePath ( ) + ":" + localPath ) ; }

Canonicaliza la etiqueta (al formulario // PackagePath: PackagerelativeTarget).Devuelve NULL si la cadena no representa una etiqueta válida.


public static String loadCartFromQuote  ( HttpServletRequest request , HttpServletResponse response ) { LocalDispatcher dispatcher = ( LocalDispatcher ) request . getAttribute ( "dispatcher" ) ; HttpSession session = request . getSession ( ) ; GenericValue userLogin = ( GenericValue ) session . getAttribute ( "userLogin" ) ; String quoteId = request . getParameter ( "quoteId" ) ; ShoppingCart cart = null ; try { Map < String , Object > outMap = dispatcher . runSync ( "loadCartFromQuote" , UtilMisc . < String , Object > toMap ( "quoteId" , quoteId , "applyQuoteAdjustments" , "true" , "userLogin" , userLogin ) ) ; if ( ! ServiceUtil . isSuccess ( outMap ) ) { request . setAttribute ( "_ERROR_MESSAGE_" , ServiceUtil . getErrorMessage ( outMap ) ) ; return "error" ; } cart = ( ShoppingCart ) outMap . get ( "shoppingCart" ) ; } catch ( GenericServiceException exc ) { request . setAttribute ( "_ERROR_MESSAGE_" , exc . getMessage ( ) ) ; return "error" ; } cart . setDefaultCheckoutOptions ( dispatcher ) ; cart . setReadOnlyCart ( true ) ; session . setAttribute ( "shoppingCart" , cart ) ; session . setAttribute ( "productStoreId" , cart . getProductStoreId ( ) ) ; session . setAttribute ( "orderMode" , cart . getOrderType ( ) ) ; session . setAttribute ( "orderPartyId" , cart . getOrderPartyId ( ) ) ; return "success" ; }

Inicializar la entrada de la orden de una cotización


public HumanTime h  ( ) { return h ( 1 ) ; }


@ Override public String toString  ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( getClass ( ) . getSimpleName ( ) ) ; sb . append ( " [" ) ; sb . append ( "Hash = " ) . append ( hashCode ( ) ) ; sb . append ( ", cascadeId=" ) . append ( cascadeId ) ; sb . append ( ", rootKey=" ) . append ( rootKey ) ; sb . append ( ", rootName=" ) . append ( rootName ) ; sb . append ( ", name=" ) . append ( name ) ; sb . append ( ", hotkey=" ) . append ( hotkey ) ; sb . append ( ", parentId=" ) . append ( parentId ) ; sb . append ( ", isLeaf=" ) . append ( isLeaf ) ; sb . append ( ", isAutoExpand=" ) . append ( isAutoExpand ) ; sb . append ( ", iconName=" ) . append ( iconName ) ; sb . append ( ", sortNo=" ) . append ( sortNo ) ; sb . append ( "]" ) ; return sb . toString ( ) ; }

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


public static < R > Observable < R > ifThen  ( BooleanSupplier condition , ObservableSource < ? extends R > then , Observable < ? extends R > orElse ) { ObjectHelper . requireNonNull ( condition , "condition is null" ) ; ObjectHelper . requireNonNull ( then , "then is null" ) ; ObjectHelper . requireNonNull ( orElse , "orElse is null" ) ; return RxJavaPlugins . onAssembly ( new ObservableIfThen < R > ( condition , then , orElse ) ) ; }

Devuelva un observable que emite las emisiones de una observable especificada si una condición se evalúa a VERDADERO, O DE OTRO ESPECIFICADOS DESPUÉS DE OFERTE.<p> <img anchth = "640" src = "https://raw.github.com/wiki/reactivex/rxjava/images/rx- operadores/ifthen.e.png" alt = "">


public ScatterDataSet ( List < Entry > yVals , String label ) { super ( yVals , label ) ; }

Objeto de ruta personalizada El usuario puede proporcionar que se dibuje donde se encuentren los valores.Esto se usa cuando Scattershape.Custom se establece para un conjunto de datos.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { }


public static String parseHumpName  ( String str , boolean isFirstUpper , boolean isHump ) { str = str . toLowerCase ( ) ; if ( isHump && str . indexOf ( "_" ) != - 1 ) { boolean isUpper = false ; StringBuilder builder = new StringBuilder ( ) ; for ( char c : str . toCharArray ( ) ) { if ( isUpper ) { c = Character . toUpperCase ( c ) ; isUpper = false ; } if ( c == '_' ) { isUpper = true ; continue ; } builder . append ( c ) ; } str = builder . toString ( ) ; } if ( isFirstUpper ) { return upperFirst ( str ) ; } return lowerFirst ( str ) ; }

analizar Str a Hump Type <P> Si el nombre de la clase, Param IsFirStupper debe ser verdadero, de lo contrario falso


public TypeRef makeOptional  ( ) { return interner . intern ( new TypeRef ( kind , Cardinality . OPTIONAL , messageType , enumType ) ) ; }

Hace que el tipo dado tenga cardinalidad opcional.


public void user_init  ( ) throws java . lang . Exception { action_obj . scanner = scanner ; action_obj . classFile = classFile ; }


public void calcWelzl  ( FloatBuffer points ) { if ( center == null ) { center = new Vector3f ( ) ; } FloatBuffer buf = BufferUtils . createFloatBuffer ( points . limit ( ) ) ; points . rewind ( ) ; buf . put ( points ) ; buf . flip ( ) ; recurseMini ( buf , buf . limit ( ) / 3 , 0 , 0 ) ; }

Calcula una esfera límite mínima para el conjunto de puntos.El algoritmo se encontró originalmente en http://www.flipcode.com/cgi-bin/msg.cgi?showthread=cotd-smallestenclosingspheres&forum=cotd&id=-1 en C ++ y traducido a Java por CEP21


protected void validateNamespaceOwnershipWithBundles  ( String property , String cluster , String namespace , boolean authoritative , boolean readOnly , BundlesData bundleData ) { NamespaceName fqnn = new NamespaceName ( property , cluster , namespace ) ; try { NamespaceBundles bundles = pulsar ( ) . getNamespaceService ( ) . getNamespaceBundleFactory ( ) . getBundles ( fqnn , bundleData ) ; for ( NamespaceBundle bundle : bundles . getBundles ( ) ) { validateServiceUnitOwnership ( bundle , authoritative , readOnly ) ; } } catch ( WebApplicationException wae ) { throw wae ; } catch ( Exception oe ) { log . debug ( String . format ( "Failed to find owner for namespace %s" , fqnn ) , oe ) ; throw new RestException ( oe ) ; } }

Comprueba si el corredor es el propietario de todos los paquetes de espacio de nombres.De lo contrario, si la autoridad es falsa, lanzará una excepción para redirigir al propietario o líder asignado;Si la autoridad es cierta, entonces intentará adquirir todos los paquetes de espacio de nombres.


public void addMP  ( int delta ) { addMP ( delta , false ) ; }

Función de conveniencia que agrega el parámetro suministrado al MP actual y luego hace directamente una actualización de LESTAT.


public void removeHeader  ( Header header ) { if ( header == null ) { return ; } headers . remove ( header ) ; }


@ TargetApi ( Build . VERSION_CODES . FROYO ) public static void createSyncAccount  ( Context context ) { boolean newAccount ; boolean setupComplete = PreferenceManager . getDefaultSharedPreferences ( context ) . getBoolean ( PREF_SETUP_COMPLETE , false ) ; Account account = AccountUtils . getAccount ( ) ; newAccount = AccountUtils . addAccount ( context , account , SYNC_FREQUENCY ) ; if ( newAccount || ! setupComplete ) { triggerRefresh ( ) ; PreferenceManager . getDefaultSharedPreferences ( context ) . edit ( ) . putBoolean ( PREF_SETUP_COMPLETE , true ) . commit ( ) ; } }

Cree una entrada para esta aplicación en la lista de cuentas del sistema, si aún no está allí.


@ Override public void apply  ( NexusStreamParser np ) throws Exception { np . matchIgnoreCase ( "set showBiPlot=" ) ; boolean show = np . getBoolean ( ) ; np . matchIgnoreCase ( ";" ) ; ClusterViewer viewer = getViewer ( ) ; viewer . getPcoaTab ( ) . setShowBiPlot ( show ) ; try { viewer . updateView ( IDirector . ENABLE_STATE ) ; } catch ( Exception ex ) { Basic . caught ( ex ) ; } }


@ Override public void actionPerformed  ( ActionEvent ev ) { }


public void updateEntryReferences  ( CacheManager cacheManager , IEntryHolder eh , IEntryCacheInfo pEntry , IEntryData oldEntryData ) { if ( ! hasIndexes ( ) ) return ; if ( pEntry . getEntryHolder ( cacheManager ) . hasShadow ( ) ) { updateEntryReferencesUnderXtn ( cacheManager , pEntry , oldEntryData ) ; return ; } boolean insertedNewValues = false ; int refpos = 1 ; ArrayList < IObjectInfo < IEntryCacheInfo > > deletedBackRefs = pEntry . getBackRefs ( ) ; if ( deletedBackRefs != null ) { pEntry . setBackRefs ( new ArrayList < IObjectInfo < IEntryCacheInfo > > ( deletedBackRefs . size ( ) ) ) ; pEntry . getBackRefs ( ) . add ( deletedBackRefs . get ( 0 ) ) ; } IEntryData entryData = pEntry . getEntryHolder ( cacheManager ) . getEntryData ( ) ; int numOfFieldsDone = 0 ; ArrayList < Object > originalUniques = null ; try { for ( TypeDataIndex < Object > index : _indexes ) { if ( index . disableIndexUsageForOperation ( this , pEntry . getLatestIndexCreationNumber ( ) ) ) continue ; Object fieldValue = index . getIndexValue ( entryData ) ; Object oldFieldValue = index . getIndexValue ( oldEntryData ) ; if ( index . isUniqueIndex ( ) && getNumUniqueIndexes ( ) > 1 ) { int originalpos = refpos ; refpos = index . updateIndexValue ( this , pEntry . getEntryHolder ( cacheManager ) , pEntry , oldFieldValue , fieldValue , deletedBackRefs , refpos , UpdateIndexModes . INSERT_NONEQUALS ) ; if ( deletedBackRefs != null ) { if ( deletedBackRefs . get ( originalpos ) != null ) { if ( originalUniques == null ) originalUniques = new ArrayList < Object > ( getNumUniqueIndexes ( ) * 2 ) ; originalUniques . add ( index ) ; originalUniques . add ( originalpos ) ; } } else { if ( ! TypeData . objectsEquality ( oldFieldValue , fieldValue ) ) { if ( originalUniques == null ) originalUniques = new ArrayList < Object > ( getNumUniqueIndexes ( ) * 2 ) ; originalUniques . add ( index ) ; originalUniques . add ( - 1 ) ; } } } else refpos = index . updateIndexValue ( this , pEntry . getEntryHolder ( cacheManager ) , pEntry , oldFieldValue , fieldValue , deletedBackRefs , refpos , UpdateIndexModes . REPLACE_NONEQUALS ) ; numOfFieldsDone ++ ; } for ( QueryExtensionIndexManagerWrapper queryExtensionIndexManager : getForeignQueriesHandlers ( ) ) { try { queryExtensionIndexManager . replaceEntry ( new SpaceServerEntryImpl ( pEntry , cacheManager ) ) ; } catch ( Exception ex ) { throw new RuntimeException ( "Remove entry to foreign index failed" , ex ) ; } } insertedNewValues = true ; if ( originalUniques != null ) { for ( int pos = 0 ; pos < originalUniques . size ( ) ; pos ++ ) { TypeDataIndex index = ( TypeDataIndex ) originalUniques . get ( pos ++ ) ; Object fieldValue = index . getIndexValue ( entryData ) ; Object oldFieldValue = index . getIndexValue ( oldEntryData ) ; refpos = ( Integer ) originalUniques . get ( pos ) ; index . updateIndexValue ( this , pEntry . getEntryHolder ( cacheManager ) , pEntry , oldFieldValue , fieldValue , deletedBackRefs , refpos , UpdateIndexModes . REMOVE_NONEQUALS ) ; } } } catch ( RuntimeException ex ) { try { restoreReferencesAfterUpdateFailure ( cacheManager , eh , pEntry , oldEntryData , deletedBackRefs , numOfFieldsDone , insertedNewValues , originalUniques ) ; } catch ( Exception ex1 ) { if ( _logger . isLoggable ( Level . SEVERE ) ) _logger . log ( Level . SEVERE , "failed to restore entry after update failure " , ex1 ) ; } throw ex ; } }


public AdsCreateTargetGroupQuery ( VkApiClient client , UserActor actor , int accountId , String name ) { super ( client , "ads.createTargetGroup" , CreateTargetGroupResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; accountId ( accountId ) ; name ( name ) ; }

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


public static boolean onKeyDown  ( KeyEvent event , ChromeActivity activity , boolean isCurrentTabVisible , boolean tabSwitchingEnabled ) { int keyCode = event . getKeyCode ( ) ; if ( event . getRepeatCount ( ) != 0 || KeyEvent . isModifierKey ( keyCode ) ) return false ; if ( KeyEvent . isGamepadButton ( keyCode ) ) { if ( isGamepadAPIActive ( activity ) ) return false ; } else if ( ! event . isCtrlPressed ( ) && ! event . isAltPressed ( ) && keyCode != KeyEvent . KEYCODE_F3 && keyCode != KeyEvent . KEYCODE_F5 && keyCode != KeyEvent . KEYCODE_FORWARD ) { return false ; } TabModel curModel = activity . getCurrentTabModel ( ) ; int count = curModel . getCount ( ) ; int metaState = getMetaState ( event ) ; int keyCodeAndMeta = keyCode | metaState ; switch ( keyCodeAndMeta ) { case CTRL | KeyEvent . KEYCODE_T : activity . onMenuOrKeyboardAction ( curModel . isIncognito ( ) ? R . id . new_incognito_tab_menu_id : R . id . new_tab_menu_id , false ) ; return true ; case CTRL | KeyEvent . KEYCODE_N : activity . onMenuOrKeyboardAction ( R . id . new_tab_menu_id , false ) ; return true ; case CTRL | SHIFT | KeyEvent . KEYCODE_N : activity . onMenuOrKeyboardAction ( R . id . new_incognito_tab_menu_id , false ) ; return true ; case ALT | KeyEvent . KEYCODE_F : case KeyEvent . KEYCODE_BUTTON_Y : activity . onMenuOrKeyboardAction ( R . id . show_menu , false ) ; return true ; } if ( isCurrentTabVisible ) { if ( tabSwitchingEnabled && ( metaState == CTRL || metaState == ALT ) ) { int numCode = keyCode - KeyEvent . KEYCODE_0 ; if ( numCode > 0 && numCode <= Math . min ( count , 8 ) ) { TabModelUtils . setIndex ( curModel , numCode - 1 ) ; return true ; } else if ( numCode == 9 && count != 0 ) { TabModelUtils . setIndex ( curModel , count - 1 ) ; return true ; } } switch ( keyCodeAndMeta ) { case CTRL | KeyEvent . KEYCODE_TAB : case CTRL | KeyEvent . KEYCODE_PAGE_DOWN : case KeyEvent . KEYCODE_BUTTON_R1 : if ( tabSwitchingEnabled && count > 1 ) { TabModelUtils . setIndex ( curModel , ( curModel . index ( ) + 1 ) % count ) ; } return true ; case CTRL | SHIFT | KeyEvent . KEYCODE_TAB : case CTRL | KeyEvent . KEYCODE_PAGE_UP : case KeyEvent . KEYCODE_BUTTON_L1 : if ( tabSwitchingEnabled && count > 1 ) { TabModelUtils . setIndex ( curModel , ( curModel . index ( ) + count - 1 ) % count ) ; } return true ; case CTRL | KeyEvent . KEYCODE_W : case CTRL | KeyEvent . KEYCODE_F4 : case KeyEvent . KEYCODE_BUTTON_B : TabModelUtils . closeCurrentTab ( curModel ) ; return true ; case CTRL | KeyEvent . KEYCODE_F : case CTRL | KeyEvent . KEYCODE_G : case CTRL | SHIFT | KeyEvent . KEYCODE_G : case KeyEvent . KEYCODE_F3 : case SHIFT | KeyEvent . KEYCODE_F3 : activity . onMenuOrKeyboardAction ( R . id . find_in_page_id , false ) ; return true ; case CTRL | KeyEvent . KEYCODE_L : case ALT | KeyEvent . KEYCODE_D : case KeyEvent . KEYCODE_BUTTON_X : activity . onMenuOrKeyboardAction ( R . id . focus_url_bar , false ) ; return true ; case CTRL | SHIFT | KeyEvent . KEYCODE_B : activity . onMenuOrKeyboardAction ( R . id . all_bookmarks_menu_id , false ) ; return true ; case KeyEvent . KEYCODE_BOOKMARK : case CTRL | KeyEvent . KEYCODE_D : activity . onMenuOrKeyboardAction ( R . id . bookmark_this_page_id , false ) ; return true ; case CTRL | KeyEvent . KEYCODE_H : activity . onMenuOrKeyboardAction ( R . id . open_history_menu_id , false ) ; return true ; case CTRL | KeyEvent . KEYCODE_P : activity . onMenuOrKeyboardAction ( R . id . print_id , false ) ; return true ; case CTRL | KeyEvent . KEYCODE_PLUS : case CTRL | KeyEvent . KEYCODE_EQUALS : case CTRL | SHIFT | KeyEvent . KEYCODE_PLUS : case CTRL | SHIFT | KeyEvent . KEYCODE_EQUALS : case KeyEvent . KEYCODE_ZOOM_IN : ContentViewCore cvc = activity . getCurrentContentViewCore ( ) ; if ( cvc != null ) cvc . zoomIn ( ) ; return true ; case CTRL | KeyEvent . KEYCODE_MINUS : case KeyEvent . KEYCODE_ZOOM_OUT : cvc = activity . getCurrentContentViewCore ( ) ; if ( cvc != null ) cvc . zoomOut ( ) ; return true ; case CTRL | KeyEvent . KEYCODE_0 : cvc = activity . getCurrentContentViewCore ( ) ; if ( cvc != null ) cvc . zoomReset ( ) ; return true ; case SHIFT | CTRL | KeyEvent . KEYCODE_R : case CTRL | KeyEvent . KEYCODE_R : case SHIFT | KeyEvent . KEYCODE_F5 : case KeyEvent . KEYCODE_F5 : Tab tab = activity . getActivityTab ( ) ; if ( tab != null ) { if ( ( keyCodeAndMeta & SHIFT ) == SHIFT ) { tab . reloadIgnoringCache ( ) ; } else { tab . reload ( ) ; } if ( activity . getToolbarManager ( ) != null && tab . getWebContents ( ) != null && tab . getWebContents ( ) . focusLocationBarByDefault ( ) ) { activity . getToolbarManager ( ) . revertLocationBarChanges ( ) ; } else { tab . requestFocus ( ) ; } } return true ; case ALT | KeyEvent . KEYCODE_DPAD_LEFT : tab = activity . getActivityTab ( ) ; if ( tab != null && tab . canGoBack ( ) ) tab . goBack ( ) ; return true ; case ALT | KeyEvent . KEYCODE_DPAD_RIGHT : case KeyEvent . KEYCODE_FORWARD : case KeyEvent . KEYCODE_BUTTON_START : tab = activity . getActivityTab ( ) ; if ( tab != null && tab . canGoForward ( ) ) tab . goForward ( ) ; return true ; case CTRL | SHIFT | KeyEvent . KEYCODE_SLASH : activity . onMenuOrKeyboardAction ( R . id . help_id , false ) ; return true ; } } return false ; }

Esto debe llamarse desde la clave de la actividad () para manejar los atajos de teclado.Nota: OnKeyDown () se llama después de que la vista activa o la página web tenga la posibilidad de manejar el evento clave.Así que las llaves manejadas aquí * pueden ser anuladas por cualquier vista o página web.


public static StorableTimeFence inMondayInterval  ( TimeZone timeZone , long startTimeOfDayMillis , long stopTimeOfDayMillis ) { return new StorableTimeFence ( MONDAY , timeZone , startTimeOfDayMillis , stopTimeOfDayMillis ) ; }

Crea una valla de tiempo almacenable que será válida el lunes en el marco diario dado.


private void filterOutDuplicates  ( int code , SegmentNode p ) { boolean flag ; SegmentNode q_head , q_tail ; SegmentNode pold ; int countAll ; for ( int i = code ; i > - 1 ; -- i ) { pold = header [ i ] ; q_head = null ; q_tail = null ; countAll = 0 ; while ( pold != null ) { flag = false ; switch ( i ) { case GeometricManager . ONE_TO_ONE : if ( code == GeometricManager . MANY_TO_MANY ) { if ( pold . I1 >= p . I1 && pold . I2 >= p . I2 ) { if ( ( pold . I1 + pold . L ) <= ( p . I1 + p . L ) && ( pold . I2 + pold . L ) <= ( p . I2 + ( ( RectangleNode ) p ) . L_prime ) ) flag = true ; } } else { if ( ( p . I2 - p . I1 ) == ( pold . I2 - pold . I1 ) ) { if ( pold . I1 >= p . I1 && ( pold . I1 + pold . L ) <= ( p . I1 + p . L ) ) flag = true ; } } break ; case GeometricManager . MANY_TO_MANY : if ( pold . I1 >= p . I1 && pold . I2 >= p . I2 ) { if ( ( pold . I1 + pold . L ) <= ( p . I1 + p . L ) && ( pold . I2 + ( ( RectangleNode ) pold ) . L_prime ) <= ( p . I2 + ( ( RectangleNode ) p ) . L_prime ) ) flag = true ; } break ; } if ( flag == false ) { if ( q_head == null ) q_head = pold ; else q_tail . next = pold ; q_tail = pold ; ++ countAll ; pold = pold . next ; } else { if ( i == GeometricManager . ONE_TO_ONE ) pold = reclaimSegmentNode ( pold ) ; else pold = reclaimRectangleNode ( pold ) ; } } if ( q_tail != null ) q_tail . next = null ; header [ i ] = q_head ; size [ i ] = countAll ; } }

Deja caer los objetos existentes redundantes.


public UsersSearchQuery university  ( Integer value ) { return unsafeParam ( "university" , value ) ; }

ID de la institución de la educación superior.


@ Override public void characters  ( char ch [ ] , int start , int length ) throws SAXException { return ; }

El método SAX <CÓDIGO> Caracteres </ Code> no hace nada.


protected void include  ( boolean include ) { this . include = include ; }

Establece la bandera </ código> de </ code> al valor booleano pasado.Si se le da cierto este elemento se incluirá en el manifiesto.


@ Override protected boolean scanAttributeValue  ( XMLString value , XMLString nonNormalizedValue , String atName , boolean checkEntities , String eleName ) throws IOException , XNIException { int quote = fEntityScanner . peekChar ( ) ; if ( quote != '\'' && quote != '"' ) { reportFatalError ( "OpenQuoteExpected" , new Object [ ] { eleName , atName } ) ; } fEntityScanner . scanChar ( ) ; int entityDepth = fEntityDepth ; int c = fEntityScanner . scanLiteral ( quote , value ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** scanLiteral -> \"" + value . toString ( ) + "\"" ) ; } int fromIndex = 0 ; if ( c == quote && ( fromIndex = isUnchangedByNormalization ( value ) ) == - 1 ) { nonNormalizedValue . setValues ( value ) ; int cquote = fEntityScanner . scanChar ( ) ; if ( cquote != quote ) { reportFatalError ( "CloseQuoteExpected" , new Object [ ] { eleName , atName } ) ; } return true ; } fStringBuffer2 . clear ( ) ; fStringBuffer2 . append ( value ) ; normalizeWhitespace ( value , fromIndex ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** normalizeWhitespace -> \"" + value . toString ( ) + "\"" ) ; } if ( c != quote ) { fScanningAttribute = true ; fStringBuffer . clear ( ) ; do { fStringBuffer . append ( value ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** value2: \"" + fStringBuffer . toString ( ) + "\"" ) ; } if ( c == '&' ) { fEntityScanner . skipChar ( '&' ) ; if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( '&' ) ; } if ( fEntityScanner . skipChar ( '#' ) ) { if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( '#' ) ; } int ch = scanCharReferenceValue ( fStringBuffer , fStringBuffer2 ) ; if ( ch != - 1 ) { if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** value3: \"" + fStringBuffer . toString ( ) + "\"" ) ; } } } else { String entityName = fEntityScanner . scanName ( ) ; if ( entityName == null ) { reportFatalError ( "NameRequiredInReference" , null ) ; } else if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( entityName ) ; } if ( ! fEntityScanner . skipChar ( ';' ) ) { reportFatalError ( "SemicolonRequiredInReference" , new Object [ ] { entityName } ) ; } else if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( ';' ) ; } if ( entityName == fAmpSymbol ) { fStringBuffer . append ( '&' ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** value5: \"" + fStringBuffer . toString ( ) + "\"" ) ; } } else if ( entityName == fAposSymbol ) { fStringBuffer . append ( '\'' ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** value7: \"" + fStringBuffer . toString ( ) + "\"" ) ; } } else if ( entityName == fLtSymbol ) { fStringBuffer . append ( '<' ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** value9: \"" + fStringBuffer . toString ( ) + "\"" ) ; } } else if ( entityName == fGtSymbol ) { fStringBuffer . append ( '>' ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** valueB: \"" + fStringBuffer . toString ( ) + "\"" ) ; } } else if ( entityName == fQuotSymbol ) { fStringBuffer . append ( '"' ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** valueD: \"" + fStringBuffer . toString ( ) + "\"" ) ; } } else { if ( fEntityManager . isExternalEntity ( entityName ) ) { reportFatalError ( "ReferenceToExternalEntity" , new Object [ ] { entityName } ) ; } else { if ( ! fEntityManager . isDeclaredEntity ( entityName ) ) { if ( checkEntities ) { if ( fValidation ) { fErrorReporter . reportError ( XMLMessageFormatter . XML_DOMAIN , "EntityNotDeclared" , new Object [ ] { entityName } , XMLErrorReporter . SEVERITY_ERROR ) ; } } else { reportFatalError ( "EntityNotDeclared" , new Object [ ] { entityName } ) ; } } fEntityManager . startEntity ( entityName , true ) ; } } } } else if ( c == '<' ) { reportFatalError ( "LessthanInAttValue" , new Object [ ] { eleName , atName } ) ; fEntityScanner . scanChar ( ) ; if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( ( char ) c ) ; } } else if ( c == '%' || c == ']' ) { fEntityScanner . scanChar ( ) ; fStringBuffer . append ( ( char ) c ) ; if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( ( char ) c ) ; } if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** valueF: \"" + fStringBuffer . toString ( ) + "\"" ) ; } } else if ( c == '\n' || c == '\r' || c == 0x85 || c == 0x2028 ) { fEntityScanner . scanChar ( ) ; fStringBuffer . append ( ' ' ) ; if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( '\n' ) ; } } else if ( c != - 1 && XMLChar . isHighSurrogate ( c ) ) { fStringBuffer3 . clear ( ) ; if ( scanSurrogates ( fStringBuffer3 ) ) { fStringBuffer . append ( fStringBuffer3 ) ; if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( fStringBuffer3 ) ; } if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** valueI: \"" + fStringBuffer . toString ( ) + "\"" ) ; } } } else if ( c != - 1 && isInvalidLiteral ( c ) ) { reportFatalError ( "InvalidCharInAttValue" , new Object [ ] { eleName , atName , Integer . toString ( c , 16 ) } ) ; fEntityScanner . scanChar ( ) ; if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( ( char ) c ) ; } } c = fEntityScanner . scanLiteral ( quote , value ) ; if ( entityDepth == fEntityDepth ) { fStringBuffer2 . append ( value ) ; } normalizeWhitespace ( value ) ; } while ( c != quote || entityDepth != fEntityDepth ) ; fStringBuffer . append ( value ) ; if ( DEBUG_ATTR_NORMALIZATION ) { System . out . println ( "** valueN: \"" + fStringBuffer . toString ( ) + "\"" ) ; } value . setValues ( fStringBuffer ) ; fScanningAttribute = false ; } nonNormalizedValue . setValues ( fStringBuffer2 ) ; int cquote = fEntityScanner . scanChar ( ) ; if ( cquote != quote ) { reportFatalError ( "CloseQuoteExpected" , new Object [ ] { eleName , atName } ) ; } return nonNormalizedValue . equals ( value . ch , value . offset , value . length ) ; }

Escanea un valor de atributo y normaliza el espacio en blanco que convierte todos los caracteres de espacio en blanco para espaciar caracteres.<P /> [10] ATTVALUE :: = '"' ([^ <&"] | Referencia) * '"' |" '' "([^ <& '] | Referencia) *"' "


public JSONArray put  ( Object value ) { this . myArrayList . add ( value ) ; return this ; }

Anexar un valor de objeto.Esto aumenta la longitud de la matriz por uno.


public ResourcesPoet addTypedArray  ( String name , @ NotNull List < String > values ) { Element element = document . createElement ( "array" ) ; element . setAttribute ( "name" , name ) ; for ( String value : values ) { Element valueElement = document . createElement ( "item" ) ; valueElement . appendChild ( document . createTextNode ( value ) ) ; element . appendChild ( valueElement ) ; } resourceElement . appendChild ( element ) ; return this ; }

Añadir una matriz escrita a la configuración


Crea la prueba de densidad de probabilidad acumulada inverso predeterminada. Valores esperados


@ Override protected void onPreExecute  ( ) { mCurrentDialog = IndeterminateProgressDialog . newInstance ( R . string . wait_a_moment , false ) ; mCurrentDialog . show ( getSupportFragmentManager ( ) , WAIT_DIALOG_TAG ) ; }

Actualiza la interfaz de usuario antes de probar el movimiento.


public void clearDiskCache  ( ) { checkConfiguration ( ) ; configuration . diskCache . clear ( ) ; }


ShimpleBody ( SootMethod m , Map options )  { super ( m ) ; this . options = new ShimpleOptions ( options ) ; setSSA ( true ) ; isExtendedSSA = this . options . extended ( ) ; unitChain = new SPatchingChain ( this , new HashChain ( ) ) ; sbb = new ShimpleBodyBuilder ( this ) ; }

Construir un chillple vacío asociado con m.


public final boolean canSetBoolean  ( String field ) { return m_table . canSetBoolean ( field ) ; }

Compruebe si el método <código> setboolean </ code> puede usarse de forma segura para el campo de datos dado.


public static int exportName2Counts  ( String format , ViewerBase cViewer , File file , char separator , boolean reportSummarized , ProgressListener progressListener ) throws IOException { int totalLines = 0 ; try { final Classification classification = ClassificationManager . get ( cViewer . getClassName ( ) , true ) ; final String shortName = ( cViewer . getClassName ( ) . toLowerCase ( ) . equals ( "taxonomy" ) ? "Taxon" : cViewer . getClassName ( ) ) ; try ( BufferedWriter w = new BufferedWriter ( new FileWriter ( file ) ) ) { final List < String > names = cViewer . getDocument ( ) . getSampleNames ( ) ; if ( names . size ( ) > 1 ) { w . write ( "#Datasets" ) ; for ( String name : names ) { if ( name == null ) System . err . println ( "Internal error, sample name is null" ) ; else { if ( separator == ',' ) name = name . replaceAll ( "," , "_" ) ; } w . write ( separator + " " + name ) ; } w . write ( "\n" ) ; } final NodeSet selected = cViewer . getSelectedNodes ( ) ; progressListener . setSubtask ( shortName + " to counts" ) ; progressListener . setMaximum ( selected . size ( ) ) ; progressListener . setProgress ( 0 ) ; Set < Integer > seen = new HashSet < > ( ) ; for ( Node v = selected . getFirstElement ( ) ; v != null ; v = selected . getNextElement ( v ) ) { Integer id = ( Integer ) v . getInfo ( ) ; if ( id != null && ! seen . contains ( id ) ) { seen . add ( id ) ; final NodeData data = cViewer . getNodeData ( v ) ; final int [ ] counts = ( reportSummarized || v . getOutDegree ( ) == 0 ? data . getSummarized ( ) : data . getAssigned ( ) ) ; final String name = getLabelSource ( shortName , classification , format , v ) ; if ( name != null ) { if ( counts . length == names . size ( ) ) { w . write ( name ) ; for ( int a : counts ) w . write ( separator + " " + a ) ; w . write ( "\n" ) ; totalLines ++ ; } else System . err . println ( "Skipped " + name + ", number of values: " + counts . length ) ; } } progressListener . incrementProgress ( ) ; } } } catch ( CanceledException canceled ) { System . err . println ( "USER CANCELED" ) ; } return totalLines ; }


public boolean show_lib_meths  ( ) { return soot . PhaseOptions . getBoolean ( options , "show-lib-meths" ) ; }


public static String toString  ( URI uri , Charset encoding ) throws IOException { return toString ( uri . toURL ( ) , Charsets . toCharset ( encoding ) ) ; }


public Utf8_Enumeration ( byte b [ ] ) { bytes = b ; curindex = ( short ) 2 ; length = ( short ) ( ( ( ( ( bytes [ 0 ] ) ) & 0xff ) << 8 ) + ( ( ( bytes [ 1 ] ) ) & 0xff ) + 2 ) ; }

Para crear una enumeración normal de la cadena UTF8 dada.


static < T > AnyVal < Object > anyHeadTail  ( AnyVal < T > head , ConsList < T > tail ) { return new AnyConsImpl ( null , head , tail , null ) ; }

Devuelva un nuevo anyval que coincida con cualquier cabeza de una lista y la cola dada de una lista


public static void printLogs  ( ) { System . out . println ( getLogString ( ) ) ; }


public boolean hasValue  ( ) { return observers . get ( ) == TERMINATED && value != null ; }

Devuelve VERDADERO si este Singlesubject terminó con un valor de éxito.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_Confuse_ME_TO_B  ( String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200431 , skilltarget , skillname ) ; }

Usted confundió con [% SkillTarget] utilizando [% SkillName].


String brewJava  ( ) { StringBuilder java = new StringBuilder ( ) ; java . append ( "package " ) . append ( classPackage ) . append ( ";" ) . append ( "\n" ) ; java . append ( "\n" ) ; java . append ( "import android.os.Bundle;" ) . append ( "\n" ) ; java . append ( "import android.os.Parcelable;" ) . append ( "\n" ) ; java . append ( "import java.io.Serializable;" ) . append ( "\n" ) ; java . append ( "import java.util.ArrayList;" ) . append ( "\n" ) ; java . append ( "\n" ) ; java . append ( "import com.thirtydegreesray.dataautoaccess.DataAutoAccess;" ) . append ( "\n" ) ; java . append ( "import com.thirtydegreesray.dataautoaccess.DataAutoAccess.DataAccessor;" ) . append ( "\n" ) ; java . append ( "\n" ) ; java . append ( "public class " ) . append ( className ) . append ( "<T extends " ) . append ( targetClass ) . append ( ">" ) . append ( " implements" ) . append ( " DataAccessor<T>" ) . append ( "{\n" ) ; generateGetDataCode ( java ) ; generateSaveDataCode ( java ) ; java . append ( "}\n" ) ; return java . toString ( ) ; }


private static int nextPowerOfTwo  ( final int i ) { return Integer . highestOneBit ( i ) << 1 ; }

Encuentra la potencia más pequeña de dos mayores que el valor de entrada


private static DecoderResult createDecoderResultFromAmbiguousValues  ( int ecLevel , int [ ] codewords , int [ ] erasureArray , int [ ] ambiguousIndexes , int [ ] [ ] ambiguousIndexValues ) throws FormatException , ChecksumException { int [ ] ambiguousIndexCount = new int [ ambiguousIndexes . length ] ; int tries = 100 ; while ( tries -- > 0 ) { for ( int i = 0 ; i < ambiguousIndexCount . length ; i ++ ) { codewords [ ambiguousIndexes [ i ] ] = ambiguousIndexValues [ i ] [ ambiguousIndexCount [ i ] ] ; } try { return decodeCodewords ( codewords , ecLevel , erasureArray ) ; } catch ( ChecksumException ignored ) { } if ( ambiguousIndexCount . length == 0 ) { throw ChecksumException . getChecksumInstance ( ) ; } for ( int i = 0 ; i < ambiguousIndexCount . length ; i ++ ) { if ( ambiguousIndexCount [ i ] < ambiguousIndexValues [ i ] . length - 1 ) { ambiguousIndexCount [ i ] ++ ; break ; } else { ambiguousIndexCount [ i ] = 0 ; if ( i == ambiguousIndexCount . length - 1 ) { throw ChecksumException . getChecksumInstance ( ) ; } } } } throw ChecksumException . getChecksumInstance ( ) ; }

Este método se ocupa del hecho de que el proceso de decodificación no siempre produce un valor más probable.La implementación de corrección de errores actuales no se ocupa de los borrones muy bien, por lo que es mejor proporcionar un valor para estas palabras de código ambiguo en lugar de tratarla como un borrado.El problema es que no sabemos cuál de los valores ambiguos para elegir.Intentamos decodificar usando el primer valor, y si eso falla, usamos otro de los valores ambiguos e intentamos decodificar nuevamente.Por lo general, esto solo ocurre en códigos de barras muy difíciles de leer y decodificar, por lo que la decodificación de los códigos de barras normales no se ve afectada por esto.


@ DataProvider public Object [ ] [ ] state  ( ) { return new Object [ ] [ ] { new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_OK } , new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_RUNNING , HttpStatus . SC_OK } , new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_RUNNING , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_DELETED , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_DELETED , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_TERMINATED , HttpStatus . SC_OK } , new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_RUNNING , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_TERMINATED , HttpStatus . SC_OK } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DELETED , HttpStatus . SC_NO_CONTENT } , new Object [ ] { "OBVIOUSLY_INVALID_EXPERIMENT_STATE" , HttpStatus . SC_BAD_REQUEST } , new Object [ ] { Constants . EXPERIMENT_STATE_DELETED , HttpStatus . SC_NOT_FOUND } , new Object [ ] { Constants . EXPERIMENT_STATE_RUNNING , HttpStatus . SC_NOT_FOUND } , new Object [ ] { Constants . EXPERIMENT_STATE_PAUSED , HttpStatus . SC_NOT_FOUND } , new Object [ ] { Constants . EXPERIMENT_STATE_DRAFT , HttpStatus . SC_NOT_FOUND } , new Object [ ] { Constants . EXPERIMENT_STATE_TERMINATED , HttpStatus . SC_NOT_FOUND } } ; }

Ciclos a través de los estados de experimentos y los códigos de estado esperados.


@ Override public int read  ( char ch [ ] , int offset , int length ) throws IOException { if ( length > fBuffer . length ) { length = fBuffer . length ; } int count = fInputStream . read ( fBuffer , 0 , length ) ; for ( int i = 0 ; i < count ; i ++ ) { int b0 = fBuffer [ i ] ; if ( b0 < 0 ) { throw new MalformedByteSequenceException ( fFormatter , fLocale , XMLMessageFormatter . XML_DOMAIN , "InvalidASCII" , new Object [ ] { Integer . toString ( b0 & 0x0FF ) } ) ; } ch [ offset + i ] = ( char ) b0 ; } return count ; }

Lea los caracteres en una parte de una matriz.Este método bloqueará hasta que se disponga de alguna entrada, se produce un error de E / S, o se alcanza el final del flujo.


@ RequestMapping ( value = "/{namespace}/{key}" , method = RequestMethod . PUT , produces = "application/json" , consumes = "application/json" ) public void updateUserKeyJsonValue  ( @ PathVariable String namespace , @ PathVariable String key , @ RequestBody String body , HttpServletResponse response ) throws WebMessageException , IOException { UserKeyJsonValue userKeyJsonValue = userKeyJsonValueService . getUserKeyJsonValue ( currentUserService . getCurrentUser ( ) , namespace , key ) ; if ( userKeyJsonValue == null ) { throw new WebMessageException ( WebMessageUtils . notFound ( "The key '" + key + "' was not found in the namespace '" + namespace + "'." ) ) ; } if ( ! renderService . isValidJson ( body ) ) { throw new WebMessageException ( WebMessageUtils . badRequest ( "The data is not valid JSON." ) ) ; } userKeyJsonValue . setValue ( body ) ; userKeyJsonValueService . updateUserKeyJsonValue ( userKeyJsonValue ) ; response . setStatus ( HttpServletResponse . SC_OK ) ; messageService . sendJson ( WebMessageUtils . created ( "Key '" + key + "' in namespace '" + namespace + "' updated." ) , response ) ; }


public VersionChecker ( Context ctx , String versionUrl , int iconResId , int uniqueNotificationId , String notificationUrl ) { handler = new LeakGuardHandlerWrapper < Context > ( ctx ) ; this . userAgent = new OkHttpClient ( ) ; this . versionUrl = versionUrl ; this . iconResId = iconResId ; this . notificationUrl = notificationUrl ; this . uniqueNotificationId = uniqueNotificationId ; try { this . currentVersion = ctx . getPackageManager ( ) . getPackageInfo ( ctx . getPackageName ( ) , 0 ) . versionCode ; } catch ( NameNotFoundException e ) { } }


protected DOMConfigurationImpl ( SymbolTable symbolTable ) { this ( symbolTable , null ) ; }

Construye una configuración de analizador con la tabla de símbolos especificada.


public void resetHighThreshold  ( ) { this . currentHighThreshold = highThreshold ; }

Restablecer el umbral de alto rendimiento al valor de umbral alto original


@ Override public BigFraction subtract  ( final BigFraction fraction ) { MathUtils . checkNotNull ( fraction , LocalizedCoreFormats . FRACTION ) ; if ( fraction . numerator . signum ( ) == 0 ) { return this ; } if ( numerator . signum ( ) == 0 ) { return fraction . negate ( ) ; } BigInteger num = null ; BigInteger den = null ; if ( denominator . equals ( fraction . denominator ) ) { num = numerator . subtract ( fraction . numerator ) ; den = denominator ; } else { num = ( numerator . multiply ( fraction . denominator ) ) . subtract ( ( fraction . numerator ) . multiply ( denominator ) ) ; den = denominator . multiply ( fraction . denominator ) ; } return new BigFraction ( num , den ) ; }

Resta el valor de otra fracción del valor de este, devolviendo el resultado en forma reducida.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_PetOrderUseUltraSkill_A_TO_SELF  ( String skillcaster , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200847 , skillcaster , skillname ) ; }

[% Skillcaster] hizo que el Espíritu usara su habilidad mediante el uso de [% de habilidad].


public void addFooterView  ( View v , Object data , boolean isSelectable ) { FixedViewInfo info = new FixedViewInfo ( ) ; info . view = v ; info . data = data ; info . isSelectable = isSelectable ; mFooterViewInfos . add ( info ) ; if ( mDataSetObserver != null ) { mDataSetObserver . onChanged ( ) ; } }

Agregue una vista fija para aparecer en la parte inferior de la lista.Si Addfooterview se llama más de una vez, las vistas aparecerán en el orden en que se agregaron.Las vistas agregadas con esta llamada pueden afectarse si lo desean.<p> NOTA: Llame a esto antes de llamar a SetAdapter.Esto es así que ListView puede envolver el cursor suministrado con uno que también explicará las vistas de encabezado y pie de página.


private void startSyncOperation  ( String fileName ) { FileDataStorageManager storageManager = new FileDataStorageManager ( mAccount , mContext . getContentResolver ( ) ) ; OCFile file = storageManager . getFileByLocalPath ( mPath + File . separator + fileName ) ; SynchronizeFileOperation sfo = new SynchronizeFileOperation ( file , null , mAccount , true , mContext ) ; RemoteOperationResult result = sfo . execute ( storageManager , mContext ) ; if ( result . getCode ( ) == ResultCode . SYNC_CONFLICT ) { Intent i = new Intent ( mContext , ConflictsResolveActivity . class ) ; i . setFlags ( i . getFlags ( ) | Intent . FLAG_ACTIVITY_NEW_TASK ) ; i . putExtra ( ConflictsResolveActivity . EXTRA_FILE , file ) ; i . putExtra ( ConflictsResolveActivity . EXTRA_ACCOUNT , mAccount ) ; mContext . startActivity ( i ) ; } }

Activa una operación para sincronizar el contenido de un archivo dentro de la carpeta observada con su contraparte remoto en la cuenta de OwnCloud asociada.


@ Override public Serializable parseIdString  ( String id ) { return ( Serializable ) meta . getPrimaryKey ( ) . fromKeyString ( id ) ; }

Manipulación de identificación especializada para cuidar de las llaves primarias compuestas y compuesto.


public static String decompressToStringForZlib  ( byte [ ] bytesToDecompress ) { byte [ ] bytesDecompressed = decompressForZlib ( bytesToDecompress ) ; String returnValue = null ; try { returnValue = new String ( bytesDecompressed , 0 , bytesDecompressed . length , "UTF-8" ) ; } catch ( UnsupportedEncodingException uee ) { uee . printStackTrace ( ) ; } return returnValue ; }


public RepositoryStatistic computeBaseStatistics  ( Long repositoryId ) { logger . debug ( "Compute text unit counts for repository id: {}" , repositoryId ) ; Query createNativeQuery = entityManager . createNamedQuery ( "RepositoryStatistic.computeBaseStatistics" ) ; createNativeQuery . setParameter ( 1 , repositoryId ) ; return ( RepositoryStatistic ) createNativeQuery . getSingleResult ( ) ; }

Calcula estadísticas de base (conteo de unidad de texto usado / no utilizado, conteo de palabras, ...) para un repositorio.


public int read  ( ) throws IOException  { if ( nextF ) { nextF = false ; return nextch ; } int ch = super . read ( ) ; if ( ch != '\\' ) return ch ; mini = new StringBuffer ( ) ; ch = super . read ( ) ; if ( ch != 'u' ) { nextF = true ; nextch = ch ; return '\\' ; } mini . append ( "\\u" ) ; while ( mini . length ( ) < 6 ) { ch = super . read ( ) ; mini . append ( ( char ) ch ) ; } ch = Integer . parseInt ( mini . substring ( 2 ) . toString ( ) , 16 ) ; return ch ; }


private void testArrayForNullElement  ( String [ ] groupArray ) { if ( groupArray == null ) return ; for ( int i = 0 ; i < groupArray . length ; i ++ ) { if ( groupArray [ i ] == null ) { throw new NullPointerException ( "null element in group array" ) ; } } }

Este método es utilizado por los métodos públicos de esta clase que se especifican para lanzar una <código> nullpointerException </ code> cuando la matriz dada de nombres de grupos contiene uno o más elementos <código> null> null>;En cuyo caso, este método lanza una <código> nullpointerException </ code> que debe permitirse propagarse hacia afuera.


public AdsDeleteTargetGroupQuery clientId  ( Integer value ) { return unsafeParam ( "client_id" , value ) ; }

"Solo para las agencias de publicidad".ID del cliente con la cuenta de publicidad donde se creará el grupo.


public boolean transmissionPolicyDefined  ( ) { return replTransmissionPolicies != null ; }

Si se definió la política de transmisión en el clúster XML, luego se devuelve <CÓDIGO> Verdadero </ código>;De lo contrario, <CÓDIGO> FALSO </ CODE> que indica que no hay una política de transmisión.


private boolean isProgressDialogShowing  ( ) { return null != mProgressDialog && mProgressDialog . isShowing ( ) ; }


public final void testFallBack  ( ) { boolean empty = true ; try { fFileManager . fallback ( ( IFallback ) data . get ( 0 ) ) ; empty = fFileManager . isFallbackFileEmpty ( ) ; } catch ( DataFallbackException e ) { fail ( "Data could not be written to the log file " + e . getMessage ( ) ) ; } assertFalse ( empty ) ; }

Pruebe el método Fallback ().La prueba tendrá éxito cuando algo esté escrito en el archivo de registro de Fallback


public void createEdgesConnecting  ( UniqueVertexGraph gGraph , String sStartNode , List lOtherNodes , HashMap hAppearenceHistogram ) { double dStartWeight = 0 ; double dIncreaseWeight = 0 ; if ( lOtherNodes != null ) if ( lOtherNodes . size ( ) == 0 ) { VertexImpl v = new VertexImpl ( ) ; v . setLabel ( sStartNode ) ; try { gGraph . add ( v ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return ; } java . util . Iterator iIter = lOtherNodes . iterator ( ) ; Vertex vOldA = utils . locateVertexInGraph ( gGraph , sStartNode ) ; Vertex vA ; if ( vOldA != null ) vA = vOldA ; else { vA = new VertexImpl ( ) ; vA . setLabel ( sStartNode ) ; try { gGraph . add ( vA ) ; } catch ( Exception e ) { } } List lOldEdges ; lOldEdges = gGraph . getEdges ( vA ) ; int iCnt = 0 ; while ( iIter . hasNext ( ) ) { VertexImpl vB = new VertexImpl ( ) ; vB . setLabel ( ( String ) iIter . next ( ) ) ; double dOldWeight = 0 ; double dNewWeight = 0 ; dStartWeight = ScalingFunction ( ++ iCnt ) ; dIncreaseWeight = dStartWeight ; if ( eclLocator == null ) eclLocator = new EdgeCachedLocator ( 10 ) ; WeightedEdge weCorrectEdge = ( WeightedEdge ) eclLocator . locateDirectedEdgeInGraph ( gGraph , vA , vB ) ; if ( weCorrectEdge == null ) dNewWeight = dStartWeight ; else { dOldWeight = weCorrectEdge . getWeight ( ) ; dNewWeight = dOldWeight + dIncreaseWeight ; } try { if ( weCorrectEdge == null ) { WeightedEdge e = gGraph . addEdge ( vA , vB , dNewWeight ) ; eclLocator . addedEdge ( e ) ; } else weCorrectEdge . setWeight ( dNewWeight ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } }

Crea un borde en [GGRAPH] que conecta [SBASENODE] a cada nodo en la lista de nodos [LotherNodes].Si existe un borde, su peso se incrementa por [Peso de iInmease], de lo contrario, su peso está configurado en [ISTARTEWEY]


@ Override public void onViewSwipedToRight  ( int position ) { adapter . add ( couponsList . get ( position ) , couponsList . size ( ) ) ; adapter . notifyDataSetChanged ( ) ; updateQrCode ( position == couponsList . size ( ) - 1 ? 0 : position + 1 ) ; }

Inicialice el comportamiento cuando una tarjeta está desplegada a la derecha.


public AemSidekick clickCustomOperation  ( String optionName ) { getCustomOperation ( optionName ) . click ( ) ; return this ; }

Encuentra el botón asociado con la operación de página personalizada seleccionada y lo hace clic.


private void visitDescendants  ( NodeItem p , NodeItem skip ) { int lidx = ( skip == null ? 0 : p . getChildIndex ( skip ) ) ; Iterator children = p . children ( ) ; p . setExpanded ( children . hasNext ( ) ) ; for ( int i = 0 ; children . hasNext ( ) ; ++ i ) { NodeItem c = ( NodeItem ) children . next ( ) ; if ( c == skip ) { continue ; } int doi = ( int ) ( p . getDOI ( ) - 1 ) ; visit ( c , c , doi , Math . abs ( lidx - i ) ) ; if ( doi > m_threshold ) visitDescendants ( c , null ) ; } }


public static String unEscapeString  ( String str ) { return unEscapeString ( str , ESCAPE_CHAR , COMMA ) ; }

Unestape comas en la cadena con el char de escape predeterminado


public synchronized void invalidate  ( ) throws LogException  { if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . entering ( MultiLogManager . class . getName ( ) , "invalidate" ) ; } if ( persistenceLogger . isLoggable ( Level . FINEST ) ) { persistenceLogger . log ( Level . FINEST , "Invalidating log for cookie: {0}" , new Long ( cookie ) ) ; } if ( valid ) { valid = false ; logMgr . release ( cookie ) ; } try { if ( out != null ) { if ( persistenceLogger . isLoggable ( Level . FINEST ) ) { persistenceLogger . log ( Level . FINEST , "Closing log file for: {0}" , new Long ( cookie ) ) ; } out . close ( ) ; } } catch ( IOException ioe ) { if ( persistenceLogger . isLoggable ( Levels . HANDLED ) ) { persistenceLogger . log ( Levels . HANDLED , "Problem closing log file" , ioe ) ; } } try { File fl = new File ( name ) ; if ( persistenceLogger . isLoggable ( Level . FINEST ) ) { persistenceLogger . log ( Level . FINEST , "Deleting log file for: {0}" , new Long ( cookie ) ) ; } if ( ! fl . delete ( ) ) { if ( persistenceLogger . isLoggable ( Levels . HANDLED ) ) { persistenceLogger . log ( Levels . HANDLED , "Could not delete log file" ) ; } } } catch ( SecurityException se ) { if ( persistenceLogger . isLoggable ( Level . FINEST ) ) { persistenceLogger . log ( Level . FINEST , "SecurityException on log deletion" , se ) ; } throw new LogException ( "SimpleLogFile: invalidate: " + "cannot delete log file." ) ; } if ( operationsLogger . isLoggable ( Level . FINER ) ) { operationsLogger . exiting ( MultiLogManager . class . getName ( ) , "invalidate" ) ; } }


public BoardRestoreCommentQuery ( VkApiClient client , UserActor actor , int groupId , int topicId , int commentId ) { super ( client , "board.restoreComment" , OkResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; groupId ( groupId ) ; topicId ( topicId ) ; commentId ( commentId ) ; }

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


public boolean execute  ( String action , JSONArray args , CallbackContext callbackContext ) throws JSONException { CordovaResourceApi resourceApi = webView . getResourceApi ( ) ; PluginResult . Status status = PluginResult . Status . OK ; String result = "" ; if ( action . equals ( "startRecordingAudio" ) ) { recordId = args . getString ( 0 ) ; String target = args . getString ( 1 ) ; try { Uri targetUri = resourceApi . remapUri ( Uri . parse ( target ) ) ; fileUriStr = targetUri . toString ( ) ; } catch ( IllegalArgumentException e ) { fileUriStr = target ; } promptForRecord ( ) ; } else if ( action . equals ( "stopRecordingAudio" ) ) { this . stopRecordingAudio ( args . getString ( 0 ) ) ; } else if ( action . equals ( "startPlayingAudio" ) ) { String target = args . getString ( 1 ) ; String fileUriStr ; try { Uri targetUri = resourceApi . remapUri ( Uri . parse ( target ) ) ; fileUriStr = targetUri . toString ( ) ; } catch ( IllegalArgumentException e ) { fileUriStr = target ; } this . startPlayingAudio ( args . getString ( 0 ) , FileHelper . stripFileProtocol ( fileUriStr ) ) ; } else if ( action . equals ( "seekToAudio" ) ) { this . seekToAudio ( args . getString ( 0 ) , args . getInt ( 1 ) ) ; } else if ( action . equals ( "pausePlayingAudio" ) ) { this . pausePlayingAudio ( args . getString ( 0 ) ) ; } else if ( action . equals ( "stopPlayingAudio" ) ) { this . stopPlayingAudio ( args . getString ( 0 ) ) ; } else if ( action . equals ( "setVolume" ) ) { try { this . setVolume ( args . getString ( 0 ) , Float . parseFloat ( args . getString ( 1 ) ) ) ; } catch ( NumberFormatException nfe ) { } } else if ( action . equals ( "getCurrentPositionAudio" ) ) { float f = this . getCurrentPositionAudio ( args . getString ( 0 ) ) ; callbackContext . sendPluginResult ( new PluginResult ( status , f ) ) ; return true ; } else if ( action . equals ( "getDurationAudio" ) ) { float f = this . getDurationAudio ( args . getString ( 0 ) , args . getString ( 1 ) ) ; callbackContext . sendPluginResult ( new PluginResult ( status , f ) ) ; return true ; } else if ( action . equals ( "create" ) ) { String id = args . getString ( 0 ) ; String src = FileHelper . stripFileProtocol ( args . getString ( 1 ) ) ; getOrCreatePlayer ( id , src ) ; } else if ( action . equals ( "release" ) ) { boolean b = this . release ( args . getString ( 0 ) ) ; callbackContext . sendPluginResult ( new PluginResult ( status , b ) ) ; return true ; } else if ( action . equals ( "messageChannel" ) ) { messageChannel = callbackContext ; return true ; } else if ( action . equals ( "getCurrentAmplitudeAudio" ) ) { float f = this . getCurrentAmplitudeAudio ( args . getString ( 0 ) ) ; callbackContext . sendPluginResult ( new PluginResult ( status , f ) ) ; return true ; } else { return false ; } callbackContext . sendPluginResult ( new PluginResult ( status , result ) ) ; return true ; }

Ejecuta la solicitud y devuelve el pluginResult.


@ Override public boolean truncate  ( String fileName , long validDataEndOffset ) { DataOutputStream dataOutputStream = null ; DataInputStream dataInputStream = null ; boolean fileTruncatedSuccessfully = false ; int bufferSize = validDataEndOffset > CarbonCommonConstants . BYTE_TO_KB_CONVERSION_FACTOR ? CarbonCommonConstants . BYTE_TO_KB_CONVERSION_FACTOR : ( int ) validDataEndOffset ; String tempWriteFilePath = fileName + CarbonCommonConstants . TEMPWRITEFILEEXTENSION ; FileFactory . FileType fileType = FileFactory . getFileType ( fileName ) ; try { CarbonFile tempFile = null ; if ( FileFactory . isFileExist ( tempWriteFilePath , fileType ) ) { tempFile = FileFactory . getCarbonFile ( tempWriteFilePath , fileType ) ; tempFile . delete ( ) ; } FileFactory . createNewFile ( tempWriteFilePath , fileType ) ; tempFile = FileFactory . getCarbonFile ( tempWriteFilePath , fileType ) ; byte [ ] buff = new byte [ bufferSize ] ; dataInputStream = FileFactory . getDataInputStream ( fileName , fileType ) ; int read = dataInputStream . read ( buff , 0 , buff . length ) ; dataOutputStream = FileFactory . getDataOutputStream ( tempWriteFilePath , fileType ) ; dataOutputStream . write ( buff , 0 , read ) ; long remaining = validDataEndOffset - read ; while ( remaining > 0 ) { if ( remaining > bufferSize ) { buff = new byte [ bufferSize ] ; } else { buff = new byte [ ( int ) remaining ] ; } read = dataInputStream . read ( buff , 0 , buff . length ) ; dataOutputStream . write ( buff , 0 , read ) ; remaining = remaining - read ; } CarbonUtil . closeStreams ( dataInputStream , dataOutputStream ) ; tempFile . renameForce ( fileName ) ; fileTruncatedSuccessfully = true ; } catch ( IOException e ) { LOGGER . error ( "Exception occured while truncating the file " + e . getMessage ( ) ) ; } finally { CarbonUtil . closeStreams ( dataOutputStream , dataInputStream ) ; } return fileTruncatedSuccessfully ; }

Este método eliminará los datos en los datos de archivos de un desplazamiento determinado


public ResponsePacket executeOnSpace  ( ISpaceProxy space , Transaction txn ) throws SQLException { ResponsePacket response = new ResponsePacket ( ) ; try { if ( getSecurityInterceptor ( ) != null ) { SpaceContext spaceContext = getSession ( ) . getConnectionContext ( ) . getSpaceContext ( ) ; SecurityContext securityContext = SpaceContextHelper . getSecurityContext ( spaceContext ) ; getSecurityInterceptor ( ) . intercept ( securityContext , SpacePrivilege . ALTER , tableName ) ; } ExternalEntry template = new ExternalEntry ( tableName , null , null ) ; template . setFieldsNames ( _columnNames ) ; template . setFieldsTypes ( _columnTypes ) ; template . setIndexIndicators ( _indices ) ; template . setRoutingFieldName ( _routingFieldName ) ; space . snapshot ( template ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( "Wrote a new table to space [" + tableName + "]" ) ; } response . setIntResult ( 0 ) ; } catch ( Exception e ) { if ( _logger . isLoggable ( Level . SEVERE ) ) { _logger . log ( Level . SEVERE , e . getMessage ( ) , e ) ; } SQLException se = new SQLException ( "Failed to create table [" + tableName + "]; Cause: " + e , "GSP" , - 106 ) ; se . initCause ( e ) ; throw se ; } return response ; }

El principal método lógico, ejecute la consulta en el espacio llamando a la instantánea


public AemSidekick clickModeIcon  ( ModeIcon iconName ) { final String xpath = String . format ( ICON_BOTTOM_XPATH , iconName . getIconName ( ) ) ; final WebElement iconBottom = driver . findElement ( By . xpath ( xpath ) ) ; iconBottom . click ( ) ; return this ; }

Encuentra el botón asociado con el modo de vista seleccionado y lo hace clic.


public LinkedHashMap < K , V > flatView  ( ) { return entryStream ( ) . collect ( StreamUtils . toLinkedMap ( null , null ) ) ; }

Devuelva un mapa no de delegación que instantáneas de los datos visibles en este mapa de delegación, desconectado de cambios a este y los delegados subyacentes.


public int detachChild  ( Spatial child ) { if ( child == null ) { throw new NullPointerException ( ) ; } if ( child . getParent ( ) == this ) { int index = children . indexOf ( child ) ; if ( index != - 1 ) { detachChildAt ( index ) ; } return index ; } return - 1 ; }

<CÓDIGO> DETANCHCHILD </ CODE> elimina a un niño dado de la lista del nodo.Este niño no se mantendrá longe.


public DataSourceAttributeData ( DataSourceAttributeData objectToCopy ) { super ( ) ; this . name = objectToCopy . name ; this . type = objectToCopy . type ; this . value = objectToCopy . value ; }

Instantánea un nuevo atributo de render.


public boolean compare_type_assigners  ( ) { return soot . PhaseOptions . getBoolean ( options , "compare-type-assigners" ) ; }

Compare los asignadores de tipo: compara Ben Bellamy's y el asignador de tipo anterior.Permite la comparación (tanto tiempo de ejecución como de resultados) del asignador de tipo Ben Bellamy con el asignador de tipo anterior que estaba en hollín.


TestType ( final String name )  { this . name = name ; }


public static SM_SYSTEM_MESSAGE STR_ENCHANT_ITEM_IT_CAN_NOT_BE_ENCHANTED  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300453 , value0 ) ; }


private void removeEntry  ( String key ) { CacheHeader entry = mEntries . get ( key ) ; if ( entry != null ) { mTotalSize -= entry . size ; mEntries . remove ( key ) ; } }

Elimina la entrada identificada por 'clave' desde el caché.


public void or  ( Criteria criteria ) { oredCriteria . add ( criteria ) ; }

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


public synchronized VisualGraph addGraph  ( String group , Graph graph , Predicate filter ) { return addGraph ( group , graph , filter , VisualItem . SCHEMA , VisualItem . SCHEMA ) ; }

Agrega un gráfico a esta visualización, utilizando el nombre del grupo de datos dado.Se creará una abstracción visual de los datos y se registrará con la visualización.Se lanzará una excepción si el nombre del grupo ya está en uso.


private double [ ] basicGuess  ( WeightedObservedPoint [ ] points ) { final int maxYIdx = findMaxY ( points ) ; final double n = points [ maxYIdx ] . getY ( ) ; final double m = points [ maxYIdx ] . getX ( ) ; double fwhmApprox ; try { final double halfY = n + ( ( m - n ) / 2 ) ; final double fwhmX1 = interpolateXAtY ( points , maxYIdx , - 1 , halfY ) ; final double fwhmX2 = interpolateXAtY ( points , maxYIdx , 1 , halfY ) ; fwhmApprox = fwhmX2 - fwhmX1 ; } catch ( MathIllegalArgumentException e ) { fwhmApprox = points [ points . length - 1 ] . getX ( ) - points [ 0 ] . getX ( ) ; } final double s = fwhmApprox / ( 2 * FastMath . sqrt ( 2 * FastMath . log ( 2 ) ) ) ; return new double [ ] { n , m , s } ; }

Adivina los parámetros según los puntos observados especificados.


private void computeOffsets  ( @ Nullable ScreenView currentScreenView ) { if ( myDesignSurface != null && currentScreenView != null ) { myCurrentScreenViewSize = currentScreenView . getSize ( myCurrentScreenViewSize ) ; if ( myDesignSurface . getScreenMode ( ) == BOTH ) { if ( myDesignSurface . isStackVertically ( ) ) { mySecondScreenOffset . setLocation ( 0 , myDeviceSize . getHeight ( ) * myDeviceScale + myScaledScreenSpace ) ; } else { mySecondScreenOffset . setLocation ( myDeviceSize . getWidth ( ) * myDeviceScale + myScaledScreenSpace , 0 ) ; } } } myCenterOffset = ( int ) Math . round ( ( PREFERRED_SIZE . getWidth ( ) - myXScreenNumber * myDeviceSize . getWidth ( ) * myDeviceScale ) / 2 ) ; }

Establezca las compensaciones de las pantallas para dibujar y el desplazamiento para centrar todo el contenido


public MessagesGetLongPollHistoryQuery previewLength  ( Integer value ) { return unsafeParam ( "preview_length" , value ) ; }

Número de caracteres después de los cuales truncar un mensaje de vista previa.Para obtener una vista previa del mensaje completo, especifique "0".Nota: Los mensajes no están truncados de forma predeterminada.Los mensajes están truncados por palabras.


private LinkedHashSet < DimensionField > bindShowClause  ( PathSegment pathSegment , DimensionDictionary dimensionDictionary ) throws BadApiRequestException { Dimension dimension = dimensionDictionary . findByApiName ( pathSegment . getPath ( ) ) ; List < String > showFields = pathSegment . getMatrixParameters ( ) . entrySet ( ) . stream ( ) . filter ( null ) . flatMap ( null ) . flatMap ( null ) . collect ( Collectors . toList ( ) ) ; if ( showFields . size ( ) == 1 && showFields . contains ( DimensionFieldSpecifierKeywords . ALL . toString ( ) ) ) { return dimension . getDimensionFields ( ) ; } else if ( showFields . size ( ) == 1 && showFields . contains ( DimensionFieldSpecifierKeywords . NONE . toString ( ) ) ) { return new LinkedHashSet < > ( ) ; } else if ( ! showFields . isEmpty ( ) ) { return bindDimensionFields ( dimension , showFields ) ; } else { return dimension . getDefaultDimensionFields ( ) ; } }

Dado un segmento de ruta, vincule los campos especificados en su parámetro "Mostrar" de matriz para la dimensión especificada en la ruta del segmento de la ruta.


public boolean isUserInRole  ( String role ) { return roles . contains ( role ) ; }

Devuelve un booleano que indica si el usuario autenticado se incluye en el "rol" lógico especificado.


public void stop  ( boolean verbose ) { if ( startTime == 0L ) { notReliable = true ; } curTime = System . currentTimeMillis ( ) - startTime ; startTime = 0L ; if ( curTime > maxTime ) { maxTime = curTime ; } if ( curTime < minTime ) { minTime = curTime ; } count ++ ; sum += curTime ; if ( verbose ) { showTimesShort ( 0L ) ; } }


private void connectToGeoServer  ( GeoServerConnection connection ) { GeoServerClientInterface client = connectionMap . get ( connection ) ; if ( client != null ) { client . connect ( ) ; if ( client . isConnected ( ) ) { client . retrieveData ( ) ; } } }


protected void keyTyped  ( char typedChar , int keyCode ) { for ( int i = 0 ; i < 12 ; i ++ ) { GuiTextField txt = ( ( GuiQuickCommandsList . CommandEntry ) this . guiList . getListEntry ( i ) ) . txt ; if ( txt . isFocused ( ) ) { txt . textboxKeyTyped ( typedChar , keyCode ) ; } } }

Disparado cuando se escribe una llave (excepto F11 que alternan la pantalla completa).Este es el equivalente al keylistener.keytyped (KeyEvent E).Args: Carácter (carácter en la llave), código de tecla (código de tecla de teclado LWJGL)


private static boolean genMainDexList  ( Project project , boolean minifyEnabled , File mappingFile , File jarMergingOutputFile , File andMainDexList , DexKnifeConfig dexKnifeConfig ) throws Exception { System . out . println ( ":" + project . getName ( ) + ":genMainDexList" ) ; HashSet < String > mainCls = null ; if ( dexKnifeConfig . useSuggest ) { PatternSet patternSet = dexKnifeConfig . suggestPatternSet ; if ( dexKnifeConfig . filterSuggest && patternSet == null ) { patternSet = dexKnifeConfig . patternSet ; } mainCls = getAdtMainDexClasses ( andMainDexList , patternSet , dexKnifeConfig . logFilterSuggest ) ; System . out . println ( "DexKnife: use suggest" ) ; } File keepFile = project . file ( MAINDEXLIST_TXT ) ; keepFile . delete ( ) ; ArrayList < String > mainClasses = null ; if ( minifyEnabled ) { System . err . println ( "DexKnife: From Mapping" ) ; mainClasses = getMainClassesFromMapping ( mappingFile , dexKnifeConfig . patternSet , mainCls ) ; } else { System . out . println ( "DexKnife: From MergedJar: " + jarMergingOutputFile ) ; if ( jarMergingOutputFile != null ) { mainClasses = getMainClassesFromJar ( jarMergingOutputFile , dexKnifeConfig . patternSet , mainCls ) ; } else { System . err . println ( "DexKnife: The Merged Jar is not exist! Can't be processed!" ) ; } } if ( mainClasses != null && mainClasses . size ( ) > 0 ) { BufferedWriter writer = new BufferedWriter ( new FileWriter ( keepFile ) ) ; for ( String mainClass : mainClasses ) { writer . write ( mainClass ) ; writer . newLine ( ) ; if ( dexKnifeConfig . logMainList ) { System . out . println ( mainClass ) ; } } writer . close ( ) ; return true ; } throw new Exception ( "DexKnife Warning: Main dex is EMPTY ! Check your config and project!" ) ; }


private static LeaseMap createBatchLeaseMap  ( List < Entry > bList , long now ) { Iterator < Entry > iter = bList . iterator ( ) ; Entry e = iter . next ( ) ; LeaseMap batchLeaseMap = e . lease . createLeaseMap ( e . getRenewDuration ( now ) ) ; if ( e . lease instanceof RemoteMethodControl && batchLeaseMap instanceof RemoteMethodControl ) { batchLeaseMap = ( LeaseMap ) ( ( RemoteMethodControl ) batchLeaseMap ) . setConstraints ( ConstrainableProxyUtil . translateConstraints ( ( ( RemoteMethodControl ) e . lease ) . getConstraints ( ) , leaseToLeaseMapMethods ) ) ; } while ( iter . hasNext ( ) ) { e = iter . next ( ) ; batchLeaseMap . put ( e . lease , new Long ( e . getRenewDuration ( now ) ) ) ; } return batchLeaseMap ; }

Crea una leasemap para renovación por lotes


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


private void createRecursivly  ( String path ) throws KeeperException , InterruptedException  { try { if ( zk . exists ( path , true ) == null && path . length ( ) > 0 ) { String temp = path . substring ( 0 , path . lastIndexOf ( File . separator ) ) ; createRecursivly ( temp ) ; zk . create ( path , null , Ids . OPEN_ACL_UNSAFE , CreateMode . PERSISTENT ) ; } else { return ; } } catch ( KeeperException e ) { throw e ; } catch ( InterruptedException e ) { throw e ; } }


public void clearAuthenticationTokens  ( ) { this . authenticationTokens . clear ( ) ; }

Borrar todos los tokens de autenticación.


private void updateMaxKeyInfo  ( String tabColumnName , int maxKey ) { checkAndUpdateMap ( maxKey , tabColumnName ) ; }

Este método actualizará la información de MaxKey.


public void onEmojiconInputEvent  ( CharSequence emojiContent ) { editText . append ( emojiContent ) ; }


@ Override public boolean canSetSpeed  ( ) { Log . d ( SBMP_TAG , "canSetSpeed() 180" ) ; if ( pmInterface == null ) { if ( ! ConnectPlayMediaService ( ) ) { ServiceBackedMediaPlayer . this . error ( MediaPlayer . MEDIA_ERROR_UNKNOWN , 0 ) ; } } if ( pmInterface != null ) { try { return pmInterface . canSetSpeed ( ServiceBackedMediaPlayer . this . sessionId ) ; } catch ( RemoteException e ) { e . printStackTrace ( ) ; ServiceBackedMediaPlayer . this . error ( MediaPlayer . MEDIA_ERROR_UNKNOWN , 0 ) ; } } return false ; }

Devuelve VERDADERO si la velocidad se puede cambiar en este momento.


public void pls  ( ) { mDna . evolve ( ) ; }


@ Override public Expression createExpression  ( FunctionName functionName ) { if ( functionName == null ) { return null ; } List < Expression > parameters = null ; Literal fallback = null ; Function function = functionFactory . function ( functionName . getFunctionName ( ) , parameters , fallback ) ; return function ; }


public boolean removeAll  ( Collection < ? > collection ) { return MapCollections . removeAllHelper ( this , collection ) ; }

Retire todas las teclas en el mapa de matriz que existen en la colección dada.


public static FloatBuffer clone  ( FloatBuffer buf ) { if ( buf == null ) { return null ; } buf . rewind ( ) ; FloatBuffer copy ; if ( buf . isDirect ( ) ) { copy = createFloatBuffer ( buf . limit ( ) ) ; } else { copy = FloatBuffer . allocate ( buf . limit ( ) ) ; } copy . put ( buf ) ; return copy ; }

Crea un nuevo floatbuffer con los mismos contenidos que los floatbuffer dados.El nuevo floatbuffer está separado del antiguo y los cambios no se reflejan en todo.Si desea reflejar los cambios, considere usar buffer.duplicado ().


public TimelineReader ( String fileName ) throws MaryConfigurationException { this ( fileName , true ) ; }

Construir una línea de tiempo desde el nombre del archivo dado.<P /> con el objetivo de la garantía fundamental: si se crea una instancia de esta clase, es utilizable.


public void lockIds  ( Iterable < Integer > ids ) { try { lock . lock ( ) ; for ( int id : ids ) { boolean status = idList . get ( id ) ; if ( status ) { throw new IDFactoryError ( "ID " + id + " is already taken, fatal error!!!" ) ; } idList . set ( id ) ; } } finally { lock . unlock ( ) ; } }


@ deprecated public ComposedCharIter ( ) { this  ( false , 0 ) ; }


@ NonNull private Rect viewRectInNeighborCoords  ( @ NonNull View view , @ NonNull View neighbor ) { final Rect bounds = new Rect ( ) ; view . getDrawingRect ( bounds ) ; offsetDescendantRectToMyCoords ( view , bounds ) ; offsetRectIntoDescendantCoords ( neighbor , bounds ) ; return bounds ; }

Convierta las coordenadas de una de las subvocciones de esta Visión en el espacio de coordenadas de una de las otras subvocciones de la Vista.