@ Override public RecordReader createReader  ( InputSplit split , Configuration conf ) throws IOException , InterruptedException { RecordReader reader = new ListStringRecordReader ( ) ; reader . initialize ( conf , split ) ; return reader ; }

Crea un lector de una división de entrada


private static void increaseKinahAmount  ( Player player , long price ) { player . getInventory ( ) . increaseKinah ( price ) ; }

Este método aumentará la cantidad de kinah de un jugador.


public BrokenOutputStream ( IOException exception ) { this . exception = exception ; }

Crea una nueva corriente que siempre arroja la excepción dada.


public void removeOnItemTouchListener  ( RecyclerView . OnItemTouchListener listener ) { mRecycler . removeOnItemTouchListener ( listener ) ; }

Retire el Lienzo de OnitemTouchListener para el reciclador


public static String addOrderTerm  ( HttpServletRequest request , HttpServletResponse response ) { ShoppingCart cart = getCartObject ( request ) ; Locale locale = UtilHttp . getLocale ( request ) ; String termTypeId = request . getParameter ( "termTypeId" ) ; String termValueStr = request . getParameter ( "termValue" ) ; String termDaysStr = request . getParameter ( "termDays" ) ; String textValue = request . getParameter ( "textValue" ) ; String description = request . getParameter ( "description" ) ; GenericValue termType = null ; Delegator delegator = ( Delegator ) request . getAttribute ( "delegator" ) ; BigDecimal termValue = null ; Long termDays = null ; if ( UtilValidate . isEmpty ( termTypeId ) ) { request . setAttribute ( "_ERROR_MESSAGE_" , UtilProperties . getMessage ( resource_error , "OrderOrderTermTypeIsRequired" , locale ) ) ; return "error" ; } try { termType = EntityQuery . use ( delegator ) . from ( "TermType" ) . where ( "termTypeId" , termTypeId ) . queryOne ( ) ; } catch ( GenericEntityException gee ) { request . setAttribute ( "_ERROR_MESSAGE_" , gee . getMessage ( ) ) ; return "error" ; } if ( ( "FIN_PAYMENT_TERM" . equals ( termTypeId ) && UtilValidate . isEmpty ( termDaysStr ) ) || ( UtilValidate . isNotEmpty ( termType ) && "FIN_PAYMENT_TERM" . equals ( termType . get ( "parentTypeId" ) ) && UtilValidate . isEmpty ( termDaysStr ) ) ) { request . setAttribute ( "_ERROR_MESSAGE_" , UtilProperties . getMessage ( resource_error , "OrderOrderTermDaysIsRequired" , locale ) ) ; return "error" ; } if ( UtilValidate . isNotEmpty ( termValueStr ) ) { try { termValue = new BigDecimal ( termValueStr ) ; } catch ( NumberFormatException e ) { request . setAttribute ( "_ERROR_MESSAGE_" , UtilProperties . getMessage ( resource_error , "OrderOrderTermValueError" , UtilMisc . toMap ( "orderTermValue" , termValueStr ) , locale ) ) ; return "error" ; } } if ( UtilValidate . isNotEmpty ( termDaysStr ) ) { try { termDays = Long . valueOf ( termDaysStr ) ; } catch ( NumberFormatException e ) { request . setAttribute ( "_ERROR_MESSAGE_" , UtilProperties . getMessage ( resource_error , "OrderOrderTermDaysError" , UtilMisc . toMap ( "orderTermDays" , termDaysStr ) , locale ) ) ; return "error" ; } } removeOrderTerm ( request , response ) ; cart . addOrderTerm ( termTypeId , null , termValue , termDays , textValue , description ) ; return "success" ; }


private void sendNotification  ( String messageBody ) { Intent intent = new Intent ( this , MainActivity . class ) ; intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; PendingIntent pendingIntent = PendingIntent . getActivity ( this , 0 , intent , PendingIntent . FLAG_ONE_SHOT ) ; Uri defaultSoundUri = RingtoneManager . getDefaultUri ( RingtoneManager . TYPE_NOTIFICATION ) ; NotificationCompat . Builder notificationBuilder = new NotificationCompat . Builder ( this ) . setSmallIcon ( R . mipmap . ic_launcher ) . setContentTitle ( "FCM Message" ) . setContentText ( messageBody ) . setAutoCancel ( true ) . setSound ( defaultSoundUri ) . setContentIntent ( pendingIntent ) ; NotificationManager notificationManager = ( NotificationManager ) getSystemService ( Context . NOTIFICATION_SERVICE ) ; notificationManager . notify ( 0 , notificationBuilder . build ( ) ) ; }

Cree y muestre una notificación simple que contiene el mensaje FCM recibido.


protected void buildExceptionalEdges  ( Map < Unit , List < Unit > > unitToSuccs , Map < Unit , List < Unit > > unitToPreds ) { super . buildExceptionalEdges ( unitToSuccs , unitToPreds ) ; for ( Iterator < Trap > trapIt = body . getTraps ( ) . iterator ( ) ; trapIt . hasNext ( ) ; ) { Trap trap = trapIt . next ( ) ; Unit firstTrapped = trap . getBeginUnit ( ) ; Unit catcher = trap . getHandlerUnit ( ) ; List < Unit > origPredsOfTrapped = new ArrayList < Unit > ( getPredsOf ( firstTrapped ) ) ; for ( Iterator < Unit > unitIt = origPredsOfTrapped . iterator ( ) ; unitIt . hasNext ( ) ; ) { Unit pred = unitIt . next ( ) ; addEdge ( unitToSuccs , unitToPreds , pred , catcher ) ; } } }

Método para calcular los bordes correspondientes al flujo de control excepcional.


public Vector3f scaleAdd  ( float scalar , Vector3f add ) { x = x * scalar + add . x ; y = y * scalar + add . y ; z = z * scalar + add . z ; return this ; }

<CÓDIGO> SAILAADD </ CODE> Multiplica este vector por un escalar luego agrega el vector3F dado.


public < T > T  readLine ( Class < T > clazz )  throws CommandException  { String readLine = readLine ( ) . trim ( ) ; Method valueOfMethod = null ; try { valueOfMethod = clazz . getMethod ( "valueOf" , String . class ) ; } catch ( NoSuchMethodException nsme ) { throw new RuntimeException ( "Type (" + clazz . getName ( ) + ") must implement valueOf with single argument of type String" , nsme ) ; } try { return ( T ) valueOfMethod . invoke ( null , readLine ) ; } catch ( IllegalAccessException | IllegalArgumentException | InvocationTargetException e ) { throw new CommandException ( "Invalid input" , e ) ; } }

Lee una línea de la consola del sistema, la proyecta al tipo específico y devolvió el valor fundido.


private void listSummaryRec  ( ViewerBase viewer , Classification classification , NodeSet selectedNodes , Node v , int indent , Writer outs , final Single < Integer > countLines ) throws IOException { int id = ( Integer ) v . getInfo ( ) ; final String name = classification . getName2IdMap ( ) . get ( id ) ; NodeData data = ( viewer . getNodeData ( v ) ) ; if ( ( selectedNodes == null || selectedNodes . contains ( v ) ) ) { if ( data . getCountSummarized ( ) > 0 ) { for ( int i = 0 ; i < indent ; i ++ ) outs . write ( " " ) ; outs . write ( name + ": " + Basic . toString ( data . getSummarized ( ) , "," ) + "\n" ) ; countLines . set ( countLines . get ( ) + 1 ) ; } } if ( viewer . getCollapsedIds ( ) . contains ( id ) ) { return ; } for ( Edge f = v . getFirstOutEdge ( ) ; f != null ; f = v . getNextOutEdge ( f ) ) { listSummaryRec ( viewer , classification , selectedNodes , f . getOpposite ( v ) , indent + 2 , outs , countLines ) ; } }


public boolean containsValue  ( V val ) { byte [ ] states = _states ; V [ ] vals = _values ; if ( null == val ) { for ( int i = vals . length ; i -- > 0 ; ) { if ( states [ i ] == FULL && val == vals [ i ] ) { return true ; } } } else { for ( int i = vals . length ; i -- > 0 ; ) { if ( states [ i ] == FULL && ( val == vals [ i ] || val . equals ( vals [ i ] ) ) ) { return true ; } } } return false ; }

Comprueba la presencia de <tt> val </ tt> en los valores del mapa.


public VideoSearchQuery ( VkApiClient client , UserActor actor , String q ) { super ( client , "video.search" , SearchResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; q ( q ) ; }

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


public static byte [ ] toByteArray  ( InputStream input ) throws IOException { com . android . base . common . io . stream . ByteArrayOutputStream output = new com . android . base . common . io . stream . ByteArrayOutputStream ( ) ; copy ( input , output ) ; return output . toByteArray ( ) ; }

Obtenga los contenidos de un <código> inputstream </ code> como un byte [] </ código>.<p /> Este método almacena la entrada internamente, por lo que no es necesario usar un <código> tamponputstream </ code>.


@ Override public boolean equals  ( Object object ) { if ( this == object ) { return true ; } if ( object == null ) { return false ; } if ( getClass ( ) != object . getClass ( ) ) { return false ; } Member other = ( Member ) object ; return name . equals ( other . name ) && value . equals ( other . value ) ; }

Indica si un objeto dado es "igual a" este JSONOBJECT.Un objeto se considera igual si también es un <código> JSONOBJECT </ CODE> y ambos objetos contienen los mismos miembros <EM> en el mismo orden </ em>.<p> Si dos JSONOBJECTOS son iguales, también producirán la misma salida JSON.</ p>


@ NotNull public static String dominantEmotionWithScore  ( @ NotNull Emotion emotion ) { Map . Entry < Emotion . EmotionScore , Double > scoreVal = emotion . scores . scores ( ) . entrySet ( ) . stream ( ) . max ( null ) . get ( ) ; return String . format ( "%s:%.2f" , StringUtils . capitalize ( scoreVal . getKey ( ) . name ( ) ) , scoreVal . getValue ( ) ) ; }

Devuelve la emoción más dominada y la puntuación.


private void eatImage  ( ) { if ( getBitePosition ( ) ) { setBittenImage ( ) ; } }


public static boolean isAllowed  ( Class < ? > typeToCheck , Class < ? > attributeType ) { if ( allowedClassTypeMap . isEmpty ( ) ) { initialise ( ) ; } List < Class < ? > > list = allowedClassTypeMap . get ( attributeType ) ; if ( list == null ) { return false ; } return list . contains ( typeToCheck ) ; }

Cheques Si se permite el tipo de atributo.


private RootNode modifyMessageConversationRead  ( String userUid , List < String > uids , HttpServletResponse response , boolean readValue ) { RootNode responseNode = new RootNode ( "response" ) ; User currentUser = currentUserService . getCurrentUser ( ) ; User user = userUid != null ? userService . getUser ( userUid ) : currentUser ; if ( user == null ) { response . setStatus ( HttpServletResponse . SC_NOT_FOUND ) ; responseNode . addChild ( new SimpleNode ( "message" , "No user with uid: " + userUid ) ) ; return responseNode ; } if ( ! canModifyUserConversation ( currentUser , user ) ) { throw new UpdateAccessDeniedException ( "Not authorized to modify this object." ) ; } Collection < org . hisp . dhis . message . MessageConversation > messageConversations = messageService . getMessageConversations ( user , uids ) ; if ( messageConversations . isEmpty ( ) ) { response . setStatus ( HttpServletResponse . SC_NOT_FOUND ) ; responseNode . addChild ( new SimpleNode ( "message" , "No MessageConversations found for the given IDs." ) ) ; return responseNode ; } CollectionNode marked = responseNode . addChild ( new CollectionNode ( readValue ? "markedRead" : "markedUnread" ) ) ; marked . setWrapping ( false ) ; for ( org . hisp . dhis . message . MessageConversation conversation : messageConversations ) { boolean success = ( readValue ? conversation . markRead ( user ) : conversation . markUnread ( user ) ) ; if ( success ) { messageService . updateMessageConversation ( conversation ) ; marked . addChild ( new SimpleNode ( "uid" , conversation . getUid ( ) ) ) ; } } response . setStatus ( HttpServletResponse . SC_OK ) ; return responseNode ; }

Handler interno para establecer la propiedad Leer de MessAgeconversation.


public DocumentTypeImpl ( CoreDocumentImpl ownerDocument , String qualifiedName , String publicID , String systemID ) { this ( ownerDocument , qualifiedName ) ; this . publicID = publicID ; this . systemID = systemID ; }

Método de fábrica para crear un nodo tipo documento.


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

ID del usuario o comunidad que posee el archivo de audio.


public ChunkManager ( World world , long seed ) { this . world = world ; loadSeed ( seed ) ; generateTerrain ( ) ; this . random = new Random ( ) ; }


public void addHeaderView  ( View v , Object data , boolean isSelectable ) { ListAdapter adapter = getAdapter ( ) ; if ( adapter != null && ! ( adapter instanceof HeaderViewGridAdapter ) ) { throw new IllegalStateException ( "Cannot add header view to grid -- setAdapter has already been called." ) ; } ViewGroup . LayoutParams lyp = v . getLayoutParams ( ) ; FixedViewInfo info = new FixedViewInfo ( ) ; FrameLayout fl = new FullWidthFixedViewLayout ( getContext ( ) ) ; if ( lyp != null ) { v . setLayoutParams ( new FrameLayout . LayoutParams ( lyp . width , lyp . height ) ) ; fl . setLayoutParams ( new LayoutParams ( lyp . width , lyp . height ) ) ; } fl . addView ( v ) ; info . view = v ; info . viewContainer = fl ; info . data = data ; info . isSelectable = isSelectable ; mHeaderViewInfos . add ( info ) ; if ( adapter != null ) { ( ( HeaderViewGridAdapter ) adapter ) . notifyDataSetChanged ( ) ; } }

Agregue una vista fija para aparecer en la parte superior de la cuadrícula.Si ADD ADDHEADERVIEW 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í, HeaderGridView puede envolver el cursor suministrado con uno que también explicará las vistas del encabezado.


public void updateAnchor  ( ) { if ( mOwner != null ) { ConstraintWidget widget = mOwner . getConstraintWidget ( ) ; if ( widget instanceof Guideline ) { mAnchor = ( ( Guideline ) widget ) . getAnchor ( ) ; } else { mAnchor = widget . getAnchor ( mType ) ; } } else { mAnchor = null ; } }

Recupere el ancla del widget de restricción del propietario


public String createGroupWithPeople  ( @ NotNull String personGroupId , @ NotNull People people ) { Validation . validateArray ( people . simplePersons ( ) , 1 , 1000 , new ParameterValidationException ( "people" , "People list is invalid. min 1, max 1000" ) ) ; boolean exists = ! Utils . throwsException ( null , PersonGroupNotFoundException . class ) ; if ( ! exists ) { personGroupBuilder . createGroup ( personGroupId , personGroupId , "" ) . withNoResult ( ) ; } people . simplePersons ( ) . stream ( ) . forEach ( null ) ; personGroupBuilder . trainGroup ( personGroupId ) . withNoResult ( ) ; return personGroupId ; }

Crea un nuevo grupo de un conjunto de personas.


public void printDurationRestart  ( String tag ) { LogUtils . i ( tag + " :  " + durationRestart ( ) ) ; }


private static final String export  ( SandboxRay ray , String tabs ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( tabs ) . append ( "List<RaycastResult> results = new ArrayList<RaycastResult>();" ) . append ( NEW_LINE ) ; sb . append ( tabs ) . append ( "Ray ray = new Ray(" ) . append ( export ( ray . getStart ( ) ) ) . append ( ", " ) . append ( "Math.toRadians(" ) . append ( Math . toDegrees ( ray . getDirection ( ) ) ) . append ( ")" ) . append ( ");" ) . append ( NEW_LINE ) ; sb . append ( tabs ) . append ( "world.raycast(ray, " ) . append ( ray . getLength ( ) ) . append ( ", " ) . append ( "null, " ) . append ( ray . isIgnoreSensors ( ) ) . append ( ", " ) . append ( "true, " ) . append ( ray . isAll ( ) ) . append ( ", " ) . append ( "results);" ) . append ( NEW_LINE ) ; return sb . toString ( ) ; }


public AndExtended ( List < Filter > children ) { super ( children ) ; }


private StringFlowable ( ) { throw new IllegalStateException ( "No instances!" ) ; }


public synchronized void add  ( int index , Object element ) { Object [ ] elements = getArray ( ) ; int len = elements . length ; if ( index > len || index < 0 ) throw new IndexOutOfBoundsException ( "Index: " + index + ", Size: " + len ) ; Object [ ] newElements ; int numMoved = len - index ; if ( numMoved == 0 ) newElements = copyOf ( elements , len + 1 ) ; else { newElements = new Object [ len + 1 ] ; System . arraycopy ( elements , 0 , newElements , 0 , index ) ; System . arraycopy ( elements , index , newElements , index + 1 , numMoved ) ; } newElements [ index ] = element ; setArray ( newElements ) ; }

Inserta el elemento especificado en la posición especificada en esta lista.Cambie el elemento actualmente en esa posición (si corresponde) y cualquier elemento posterior a la derecha (agrega uno a sus índices).


@ Override public synchronized void clear  ( ) { File [ ] files = mRootDirectory . listFiles ( ) ; if ( files != null ) { for ( File file : files ) { file . delete ( ) ; } } mEntries . clear ( ) ; mTotalSize = 0 ; VolleyLog . d ( "Cache cleared." ) ; }

Borra el caché.Elimina todos los archivos en caché desde el disco.


public boolean intersects  ( S2LatLngRect other ) { return lat . intersects ( other . lat ) && lng . intersects ( other . lng ) ; }

Devuelve verdadero si este rectángulo y el otro rectángulo dado tienen algún punto en común.


public Sample ( BufferedReader reader , int numChannels ) { try { String line = reader . readLine ( ) ; StringTokenizer tok = new StringTokenizer ( line ) ; if ( ! tok . nextToken ( ) . equals ( "FRAME" ) ) { throw new Error ( "frame Parsing sample error" ) ; } frameData = new short [ numChannels ] ; for ( int i = 0 ; i < numChannels ; i ++ ) { int svalue = Integer . parseInt ( tok . nextToken ( ) ) - 32768 ; if ( svalue < - 32768 || svalue > 32767 ) { throw new Error ( "data out of short range" ) ; } frameData [ i ] = ( short ) svalue ; } line = reader . readLine ( ) ; tok = new StringTokenizer ( line ) ; if ( ! tok . nextToken ( ) . equals ( "RESIDUAL" ) ) { throw new Error ( "residual Parsing sample error" ) ; } residualSize = Integer . parseInt ( tok . nextToken ( ) ) ; residualData = new byte [ residualSize ] ; for ( int i = 0 ; i < residualSize ; i ++ ) { int bvalue = Integer . parseInt ( tok . nextToken ( ) ) - 128 ; if ( bvalue < - 128 || bvalue > 127 ) { throw new Error ( "data out of byte range" ) ; } residualData [ i ] = ( byte ) bvalue ; } } catch ( NoSuchElementException nse ) { throw new Error ( "Parsing sample error " + nse . getMessage ( ) ) ; } catch ( IOException ioe ) { throw new Error ( "IO error while parsing sample" + ioe . getMessage ( ) ) ; } }


public static String convertTeamColorToName  ( final int teamValue ) { final Team [ ] teams = Team . values ( ) ; for ( final Team team : teams ) { if ( team . getValue ( ) == teamValue ) { return StringUtils . capitalize ( team . toString ( ) . toLowerCase ( ) . replaceAll ( "team_" , "" ) ) ; } } return "UNKNOWN_TEAM" ; }

Convertir el valor INT del equipo a la cadena.


private static Menu insertOrUpdate  ( long parent , String name , V v ) { String node = Model . node ( ) ; W q = W . create ( ) . and ( "parent" , parent ) . and ( "name" , name ) . and ( "node" , node ) ; try { if ( Helper . exists ( q , Menu . class ) ) { Helper . update ( q , v , Menu . class ) ; } else { long id = UID . next ( "menu.id" ) ; while ( Helper . exists ( W . create ( X . ID , id ) , Menu . class ) ) { id = UID . next ( "menu.id" ) ; log . debug ( "id=" + id ) ; } Helper . insert ( v . set ( X . ID , id ) . set ( "id" , id ) . set ( "parent" , parent ) . set ( "name" , name ) . set ( "node" , node ) , Menu . class ) ; } } catch ( Exception e1 ) { log . error ( e1 . getMessage ( ) , e1 ) ; } long count = Helper . count ( W . create ( "parent" , parent ) , Menu . class ) ; Helper . update ( parent , V . create ( "childs" , count ) , Menu . class ) ; return Helper . load ( q , Menu . class ) ; }


public static boolean hasPermission  ( CordovaPlugin plugin , String permission ) { try { Method hasPermission = CordovaInterface . class . getDeclaredMethod ( "hasPermission" , String . class ) ; return ( Boolean ) hasPermission . invoke ( plugin . cordova , permission ) ; } catch ( NoSuchMethodException noSuchMethodException ) { LOG . d ( LOG_TAG , "No need to check for permission " + permission ) ; return true ; } catch ( IllegalAccessException illegalAccessException ) { LOG . e ( LOG_TAG , "IllegalAccessException when checking permission " + permission , illegalAccessException ) ; } catch ( InvocationTargetException invocationTargetException ) { LOG . e ( LOG_TAG , "invocationTargetException when checking permission " + permission , invocationTargetException ) ; } return false ; }

Cheques en tiempo de ejecución para ver si la solicitud se le ha otorgado un permiso.Este es un método de ayuda alternativo a cordovainterface.haspermission () que no requiere que el proyecto se construya con Córdova-Android 5.0.0+


public static boolean shouldShowRequestPermissionRationale  ( Activity activity , String ... permissions ) { for ( String permission : permissions ) { if ( ActivityCompat . shouldShowRequestPermissionRationale ( activity , permission ) ) { return true ; } } return false ; }

Se necesitan controles dados a los permisos para mostrar la justificación.


public String toJson  ( ) throws JsonGenerationException , JsonMappingException , IOException  { ObjectMapper mapper = new ObjectMapper ( ) ; return mapper . writeValueAsString ( this ) ; }


public String formatPeriod  ( Period period ) { if ( period == null ) { return null ; } String typeName = period . getPeriodType ( ) . getName ( ) ; if ( typeName . equals ( WeeklyPeriodType . NAME ) ) { return period . getIsoDate ( ) ; } String keyStartDate = "format." + typeName + ".startDate" ; String keyEndDate = "format." + typeName + ".endDate" ; String startPattern = resourceBundle . getString ( keyStartDate ) ; String endPattern = resourceBundle . getString ( keyEndDate ) ; boolean dayPattern = startPattern . contains ( "dd" ) || endPattern . contains ( "dd" ) ; Date periodStartDate = period . getStartDate ( ) ; Date periodEndDate = period . getEndDate ( ) ; DateTimeUnit start = PeriodType . getCalendar ( ) . fromIso ( periodStartDate ) ; DateTimeUnit end = PeriodType . getCalendar ( ) . fromIso ( periodEndDate ) ; String startDate ; String endDate ; if ( ! dayPattern ) { start . setDay ( 1 ) ; end . setDay ( 1 ) ; startDate = commonFormatting ( new DateTimeUnit ( start , true ) . toJdkDate ( ) , startPattern ) ; endDate = commonFormatting ( new DateTimeUnit ( end , true ) . toJdkDate ( ) , endPattern ) ; } else { startDate = PeriodType . getCalendar ( ) . formattedDate ( startPattern , start ) ; endDate = PeriodType . getCalendar ( ) . formattedDate ( endPattern , end ) ; } try { return Character . toUpperCase ( startDate . charAt ( 0 ) ) + startDate . substring ( 1 ) + endDate ; } catch ( IllegalArgumentException ex ) { return INVALID_DATE ; } }

Formatos de un período.Devuelve NULL si el valor es nulo.Devoluciones Invalid_Date Si la cadena de formato no es válida.


public static SM_SYSTEM_MESSAGE STR_GUILD_LEAVE_DONE  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1300241 , value0 ) ; }


private void initPeerLists  ( ) { ListView incomingPeerConnectionListView = ( ListView ) findViewById ( R . id . incoming_peer_connection_list_view ) ; ListView outgoingPeerConnectionListView = ( ListView ) findViewById ( R . id . outgoing_peer_connection_list_view ) ; incomingPeerAdapter = new PeerListAdapter ( getApplicationContext ( ) , R . layout . peer_connection_list_item , incomingList , Peer . INCOMING ) ; incomingPeerConnectionListView . setAdapter ( incomingPeerAdapter ) ; outgoingPeerAdapter = new PeerListAdapter ( getApplicationContext ( ) , R . layout . peer_connection_list_item , outgoingList , Peer . OUTGOING ) ; outgoingPeerConnectionListView . setAdapter ( outgoingPeerAdapter ) ; }


public List < Layer > createOverlays  ( ) { return Collections . emptyList ( ) ; }

Devuelve una lista de superposiciones, desde la parte inferior hasta la parte superior (donde las superposiciones posteriores se pintan encima de las anteriores si se superponen).


protected void handleMatcherFinishedWithFileSide  ( ) { }

Este método se llama cuando el hilo de Cumplimiento ha terminado de procesar los registros de archivos.La implementación por defecto no hace nada.


public void moveToId  ( int id ) { currentSlot = id ; }

Establece el registro actual para ser el registro que tiene la ID especificada.


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

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


public boolean needToShowDecorations  ( ) { return mShowDecorations ; }

Indica si queremos mostrar decoraciones (puntos de anclaje, manijas de tamaño de tamaño).Normalmente queremos ocultar decoraciones al arrastrar un widget.


public static void main  ( String [ ] args ) { String time = null ; String dumpFile = null ; String protocol = null ; boolean timeTest = false ; int iterations = 1 ; int delay = 0 ; boolean setMetrics = false ; boolean setDetailedMetrics = false ; boolean setVerbose = false ; boolean setDumpUtterance = false ; boolean setDumpRelations = false ; String waveDumpFile = null ; String runTitle = null ; boolean setSilentMode = false ; String audioFile = null ; boolean setInputMode = false ; String voiceName = null ; for ( int i = 0 ; i < args . length ; i ++ ) { if ( args [ i ] . equals ( "-metrics" ) ) { setMetrics = true ; } else if ( args [ i ] . equals ( "-detailedMetrics" ) ) { setDetailedMetrics = true ; } else if ( args [ i ] . equals ( "-silent" ) ) { setSilentMode = true ; } else if ( args [ i ] . equals ( "-period" ) ) { if ( ++ i < args . length ) { try { delay = Integer . parseInt ( args [ i ] ) ; } catch ( NumberFormatException nfe ) { System . out . println ( "Bad clock period" ) ; usage ( ) ; } } } else if ( args [ i ] . equals ( "-verbose" ) ) { setVerbose = true ; } else if ( args [ i ] . equals ( "-dumpUtterance" ) ) { setDumpUtterance = true ; } else if ( args [ i ] . equals ( "-dumpRelations" ) ) { setDumpRelations = true ; } else if ( args [ i ] . equals ( "-clockMode" ) ) { iterations = Integer . MAX_VALUE ; delay = 300 ; } else if ( args [ i ] . equals ( "-timeTest" ) ) { timeTest = true ; iterations = 100 ; } else if ( args [ i ] . equals ( "-dumpAudio" ) ) { if ( ++ i < args . length ) { audioFile = args [ i ] ; } else { usage ( ) ; } } else if ( args [ i ] . equals ( "-iter" ) ) { if ( ++ i < args . length ) { try { iterations = Integer . parseInt ( args [ i ] ) ; } catch ( NumberFormatException nfe ) { System . out . println ( "Bad iteration format" ) ; usage ( ) ; } } else { usage ( ) ; } } else if ( args [ i ] . equals ( "-dumpASCII" ) ) { if ( ++ i < args . length ) { dumpFile = args [ i ] ; waveDumpFile = args [ i ] ; } else { usage ( ) ; } } else if ( args [ i ] . equals ( "-version" ) ) { System . out . println ( VERSION ) ; } else if ( args [ i ] . equals ( "-help" ) ) { usage ( ) ; } else if ( args [ i ] . equals ( "-time" ) ) { setInputMode = true ; if ( ++ i < args . length ) { time = args [ i ] ; } else { usage ( ) ; } } else if ( args [ i ] . equals ( "-run" ) ) { if ( ++ i < args . length ) { runTitle = args [ i ] ; } else { usage ( ) ; } } else if ( args [ i ] . equals ( "-voice" ) ) { if ( ++ i < args . length ) { voiceName = args [ i ] ; } else { usage ( ) ; } } else { System . out . println ( "Unknown option:" + args [ i ] ) ; } } if ( voiceName == null ) { voiceName = "alan" ; } FreeTTSTime freetts = new FreeTTSTime ( VoiceManager . getInstance ( ) . getVoice ( voiceName ) ) ; Voice voice = freetts . getVoice ( ) ; if ( setMetrics ) { voice . setMetrics ( true ) ; } if ( setDetailedMetrics ) { voice . setDetailedMetrics ( true ) ; } if ( setVerbose ) { voice . setVerbose ( true ) ; } if ( setDumpUtterance ) { voice . setDumpUtterance ( true ) ; } if ( setDumpRelations ) { voice . setDumpRelations ( true ) ; } if ( waveDumpFile != null ) { voice . setWaveDumpFile ( waveDumpFile ) ; } if ( runTitle != null ) { voice . setRunTitle ( runTitle ) ; } if ( setSilentMode ) { freetts . setSilentMode ( true ) ; } if ( audioFile != null ) { freetts . setAudioFile ( audioFile ) ; } if ( setInputMode ) { freetts . setInputMode ( InputMode . TEXT ) ; } freetts . startup ( ) ; if ( time != null ) { freetts . getVoice ( ) . startBatch ( ) ; for ( int i = 0 ; i < iterations ; i ++ ) { freetts . safeTimeToSpeech ( time ) ; try { Thread . sleep ( delay * 1000L ) ; } catch ( InterruptedException ie ) { break ; } } freetts . getVoice ( ) . endBatch ( ) ; } else { interactiveMode ( freetts ) ; } freetts . shutdown ( ) ; System . exit ( 0 ) ; }

El punto de entrada principal para Freetettstime.


final void fillQName  ( QName toFill , String uri , String localpart , String prefix ) { if ( ! fStringsInternalized ) { uri = ( uri != null && uri . length ( ) > 0 ) ? fSymbolTable . addSymbol ( uri ) : null ; localpart = ( localpart != null ) ? fSymbolTable . addSymbol ( localpart ) : XMLSymbols . EMPTY_STRING ; prefix = ( prefix != null && prefix . length ( ) > 0 ) ? fSymbolTable . addSymbol ( prefix ) : XMLSymbols . EMPTY_STRING ; } else { if ( uri != null && uri . length ( ) == 0 ) { uri = null ; } if ( localpart == null ) { localpart = XMLSymbols . EMPTY_STRING ; } if ( prefix == null ) { prefix = XMLSymbols . EMPTY_STRING ; } } String raw = localpart ; if ( prefix != XMLSymbols . EMPTY_STRING ) { fStringBuffer . clear ( ) ; fStringBuffer . append ( prefix ) ; fStringBuffer . append ( ':' ) ; fStringBuffer . append ( localpart ) ; raw = fSymbolTable . addSymbol ( fStringBuffer . ch , fStringBuffer . offset , fStringBuffer . length ) ; } toFill . setValues ( prefix , localpart , raw , uri ) ; }


public static SM_SYSTEM_MESSAGE STR_COMBINE_NO_COMPONENT_ITEM_SINGLE  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1330046 , value0 ) ; }


private void weakRegionDFS  ( Block v , int r ) { try { this . m_regions . get ( r ) . add ( v ) ; DominatorNode < Block > parentOfV = this . m_dom . getParentOf ( this . m_dom . getDode ( v ) ) ; Block u2 = ( parentOfV == null ) ? null : parentOfV . getGode ( ) ; List < DominatorNode < Block > > children = this . m_pdom . getChildrenOf ( this . m_pdom . getDode ( v ) ) ; for ( int i = 0 ; i < children . size ( ) ; i ++ ) { DominatorNode < Block > w = children . get ( i ) ; Block u1 = w . getGode ( ) ; if ( u2 != null && u1 . equals ( u2 ) ) { this . weakRegionDFS ( w . getGode ( ) , r ) ; } else { this . m_regCount ++ ; this . m_regions . put ( this . m_regCount , this . createRegion ( this . m_regCount ) ) ; this . weakRegionDFS ( w . getGode ( ) , this . m_regCount ) ; } } } catch ( RuntimeException e ) { G . v ( ) . out . println ( "[RegionAnalysis] Exception in weakRegionDFS: " + e ) ; G . v ( ) . out . println ( "v is  " + v . toShortString ( ) + " in region " + r ) ; G . v ( ) . out . flush ( ) ; } }

Estos algoritmos supone que la primera vez que se llama con una cola del CFG.Luego, para cada nodo secundario W de V en el árbol post-dominador, compara el padre de V en el árbol Dominador con W y, si son iguales, eso significa que pertenece a la misma región que V, por lo que se llama recursivamente las regiondfs.Con W y la misma ID de la Región como v. Si la comparación falla, entonces se crea una nueva región y se llama a WeekionDFS recursivamente con W pero esta vez con la ID de la región recién creada.


@ deprecated protected int write  ( int unit ) { int newLength = this . charsLength + 1 ; ensureCapacity ( newLength ) ; this . charsLength = newLength ; this . chars [ ( this . chars . length - this . charsLength ) ] = ( ( char ) unit ) ; return this . charsLength ; }


private static String keyForPayload  ( String name ) { return "service_payload_" + name ; }

Tecla de carga útil adicional de servicio


public void resumeEncoding  ( ) { this . suspendEncoding = false ; }

Reanuda la codificación de la corriente.Puede ser útil si necesita incrustar una pieza de datos codificados de base64 en un flujo.


public boolean isRtlSupported  ( ) { sync ( ) ; return myApplicationSupportsRtl ; }

Devuelve VERDADERO si la aplicación tiene soporte RTL.


public void transformValues  ( TObjectFunction < V , V > function ) { byte [ ] states = _states ; V [ ] values = _values ; for ( int i = values . length ; i -- > 0 ; ) { if ( states [ i ] == FULL ) { values [ i ] = function . execute ( values [ i ] ) ; } } }

Transforme los valores en este mapa usando <tt> función </ tt>.


public static SM_SYSTEM_MESSAGE STR_MSG_COMBAT_MY_DODGE  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1210002 , value0 ) ; }


@ Override public int read  ( byte bytes [ ] , int offset , int length ) throws IOException { int r ; if ( ( r = in . read ( bytes , offset , length ) ) == - 1 ) return r ; md5 . Update ( bytes , offset , r ) ; return r ; }


@ Override public void actionPerformed  ( ActionEvent ev ) { executeImmediately ( "set mode=" + ( Comparer . COMPARISON_MODE . RELATIVE ) + ";" ) ; CompareWindow viewer = ( CompareWindow ) getParent ( ) ; viewer . getCommandManager ( ) . updateEnableState ( ) ; }


public static void showDocument  ( String url ) { boolean windows = isWindowsPlatform ( ) ; String cmd = null ; try { if ( windows ) { cmd = WIN_PATH + " " + WIN_FLAG + " " + url ; Runtime . getRuntime ( ) . exec ( cmd ) ; } else { cmd = UNIX_PATH + " " + UNIX_FLAG + "(" + url + ")" ; Process p = Runtime . getRuntime ( ) . exec ( cmd ) ; try { int exitCode = p . waitFor ( ) ; if ( exitCode != 0 ) { cmd = UNIX_PATH + " " + url ; p = Runtime . getRuntime ( ) . exec ( cmd ) ; } } catch ( InterruptedException x ) { System . err . println ( "Error bringing up browser, cmd='" + cmd + "'" ) ; System . err . println ( "Caught: " + x ) ; } } } catch ( IOException x ) { System . err . println ( "Could not invoke browser, command=" + cmd ) ; System . err . println ( "Caught: " + x ) ; } }

Muestra un archivo en el navegador del sistema.Si desea mostrar un archivo, debe incluir el nombre de la ruta absoluta.


public NotPredicate ( Predicate p ) { m_predicate = p ; }


public void onStart  ( ) { if ( mFullscreenManager != null ) { mLastContentOffset = mFullscreenManager . getContentOffset ( ) ; mLastVisibleContentOffset = mFullscreenManager . getVisibleContentOffset ( ) ; mFullscreenManager . addListener ( this ) ; } requestRender ( ) ; }

Llamado cuando se inicia la actividad anfitriona.


public void addParam  ( ModelParam param ) { if ( param != null ) { contextInfo . put ( param . name , param ) ; contextParamList . add ( param ) ; } }

Agrega una definición de parámetros a este servicio;Pone en la lista en orden agregado luego ordena por pedido si se especifica.


public WallCreateCommentQuery replyToComment  ( Integer value ) { return unsafeParam ( "reply_to_comment" , value ) ; }


@ HEAD @ Path ( "{table}/{blobId}" ) @ RequiresPermissions ( "blob|read|{table}" ) @ Timed ( name = "bv.emodb.blob.BlobStoreResource1.head" , absolute = true ) @ ApiOperation ( value = "Retrieves the current version of a piece of content from the data store." , notes = "Returns a response object." , response = Response . class ) public Response head  ( @ PathParam ( "table" ) String table , @ PathParam ( "blobId" ) String blobId ) { BlobMetadata blob = _blobStore . getMetadata ( table , blobId ) ; Response . ResponseBuilder response = Response . ok ( ) ; setHeaders ( response , blob , null ) ; return response . build ( ) ; }

Recupera la versión actual de un trozo de contenido del almacén de datos.


public Builder renameColumn  ( String oldName , String newName ) { return transform ( new RenameColumnsTransform ( oldName , newName ) ) ; }


public CompositeAction ( long duration ) { super ( null , duration , Activity . DEFAULT_STEP_TIME ) ; }

Crea una nueva composición de la duración específica y el tiempo de paso predeterminado de 20 milisegundos.


@ Override public boolean equals  ( Object that ) { if ( this == that ) { return true ; } if ( that == null ) { return false ; } if ( getClass ( ) != that . getClass ( ) ) { return false ; } SysDic other = ( SysDic ) that ; return ( this . getId ( ) == null ? other . getId ( ) == null : this . getId ( ) . equals ( other . getId ( ) ) ) && ( this . getIndexId ( ) == null ? other . getIndexId ( ) == null : this . getIndexId ( ) . equals ( other . getIndexId ( ) ) ) && ( this . getCode ( ) == null ? other . getCode ( ) == null : this . getCode ( ) . equals ( other . getCode ( ) ) ) && ( this . getCodeText ( ) == null ? other . getCodeText ( ) == null : this . getCodeText ( ) . equals ( other . getCodeText ( ) ) ) && ( this . getSortNo ( ) == null ? other . getSortNo ( ) == null : this . getSortNo ( ) . equals ( other . getSortNo ( ) ) ) && ( this . getEditable ( ) == null ? other . getEditable ( ) == null : this . getEditable ( ) . equals ( other . getEditable ( ) ) ) && ( this . getEnable ( ) == null ? other . getEnable ( ) == null : this . getEnable ( ) . equals ( other . getEnable ( ) ) ) && ( this . getRemark ( ) == null ? other . getRemark ( ) == null : this . getRemark ( ) . equals ( other . getRemark ( ) ) ) && ( this . getCreateBy ( ) == null ? other . getCreateBy ( ) == null : this . getCreateBy ( ) . equals ( other . getCreateBy ( ) ) ) && ( this . getCreateTime ( ) == null ? other . getCreateTime ( ) == null : this . getCreateTime ( ) . equals ( other . getCreateTime ( ) ) ) && ( this . getUpdateBy ( ) == null ? other . getUpdateBy ( ) == null : this . getUpdateBy ( ) . equals ( other . getUpdateBy ( ) ) ) && ( this . getUpdateTime ( ) == null ? other . getUpdateTime ( ) == null : this . getUpdateTime ( ) . equals ( other . getUpdateTime ( ) ) ) ; }

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


int readCorner2  ( int numRows , int numColumns ) { int currentByte = 0 ; if ( readModule ( numRows - 3 , 0 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( numRows - 2 , 0 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( numRows - 1 , 0 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 0 , numColumns - 4 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 0 , numColumns - 3 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 0 , numColumns - 2 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 0 , numColumns - 1 , numRows , numColumns ) ) { currentByte |= 1 ; } currentByte <<= 1 ; if ( readModule ( 1 , numColumns - 1 , numRows , numColumns ) ) { currentByte |= 1 ; } return currentByte ; }

 Lee los 8 bits de la condición de esquina especial 2.

 Ver ISO 16022: 2006, Figura F.4


private void start  ( ) { mStarted = true ; mEnableSessionInvalidationsTimer . resume ( ) ; Intent intent = new Intent ( mContext , InvalidationClientService . class ) ; mContext . startService ( intent ) ; }

Inicia el cliente de invalidación sin actualizar los tipos de invalidación registrados.


public int degree  ( ) { return x . length - 1 ; }


public Iterator tuples  ( IntIterator rows ) { return m_tuples . iterator ( rows ) ; }

Obtenga un iterador sobre las tuplas para las filas dadas en esta tabla.


@ Override public Pair < Aggregation , Aggregation > nest  ( ) { String nestingName = getName ( ) ; Aggregation inner = withName ( nestingName ) ; Aggregation outer = new LongSumAggregation ( getName ( ) , nestingName ) ; return new ImmutablePair < > ( outer , inner ) ; }

La anidación de una agregación de "cuenta" cambia la agregación externa a un 'longsum' mientras que la agregación interna permanece sin cambios.También se realiza la transformación de la agregación de clase base.


public static Map < String , Object > sendMailHiddenInLogFromScreen  ( DispatchContext dctx , Map < String , ? extends Object > rServiceContext ) { Map < String , Object > serviceContext = UtilMisc . makeMapWritable ( rServiceContext ) ; serviceContext . put ( "hideInLog" , true ) ; return sendMailFromScreen ( dctx , serviceContext ) ; }

El servicio de JavaMail es el mismo que SendmailfromScreen, pero con el resultado oculto en el registro.Para evitar que no tenga contraseñas codificadas que se muestran en el registro


public Vector add  ( Vector other ) { return new Vector ( x + other . x , y + other . y ) ; }


public void toggleSelection  ( int position ) { toggleSelection ( position , false ) ; }

Método de conveniencia para nunca invalidar el artículo.


@ Override public boolean containsSymbol  ( String symbol ) { int bucket = hash ( symbol ) % fTableSize ; int length = symbol . length ( ) ; OUTER : for ( SREntry entry = fBuckets [ bucket ] ; entry != null ; entry = entry . next ) { SREntryData data = ( SREntryData ) entry . get ( ) ; if ( data == null ) { continue ; } if ( length == data . characters . length ) { for ( int i = 0 ; i < length ; i ++ ) { if ( symbol . charAt ( i ) != data . characters [ i ] ) { continue OUTER ; } } return true ; } } return false ; }

Devuelve VERDADERO si la tabla de símbolos ya contiene el símbolo especificado.


public static SM_SYSTEM_MESSAGE STR_MSG_COMBAT_DODGED_A_TO_ME  ( String value0 ) { return new SM_SYSTEM_MESSAGE ( 1201088 , value0 ) ; }


protected void shiftLeft  ( ) { for ( int i = mant . length - 1 ; i > 0 ; i -- ) { mant [ i ] = mant [ i - 1 ] ; } mant [ 0 ] = 0 ; exp -- ; }

Cambie la Mantissa a la izquierda y ajuste el exponente para compensar.


public static void loadArmLibrary  ( ApplicationLike applicationLike , String libName ) { if ( libName == null || libName . isEmpty ( ) || applicationLike == null ) { throw new TinkerRuntimeException ( "libName or context is null!" ) ; } if ( TinkerApplicationHelper . isTinkerEnableForNativeLib ( applicationLike ) ) { if ( TinkerApplicationHelper . loadLibraryFromTinker ( applicationLike , "lib/armeabi" , libName ) ) { return ; } } System . loadLibrary ( libName ) ; }

SOLO APOYO AUTOMÁTICAR AUTOMÁTICO LIB / BIBLIZA DE LIB / ARMEABI DEL PARCHE.En algún proceso, es posible que no desee instalar Tinker y puede cargar el parche dex y la biblioteca sin instalar Tinker!


public List < X509Certificate > checkServerTrusted  ( X509Certificate [ ] chain , String authType , SSLSession session ) throws CertificateException { return checkTrusted ( chain , authType , session , null , false ) ; }

Valida si se confía en un servidor.Si se administra una sesión y no nula, también verifica si la cadena está fijada adecuadamente para ese host de pares.Si nulo, no verifica los certificados fijados.El valor de retorno es una lista de los certificados utilizados para tomar la decisión de confianza.


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


public int signum  ( ) { return signum ; }

Devuelve el signo de esta duración en -1,0, o 1.


public T waitForResult  ( ) throws InterruptedException  { try { return waitForResult ( - 1 , TimeUnit . MILLISECONDS ) ; } catch ( TimeoutException e ) { throw new RuntimeException ( "Should not occur as we are waiting forever" ) ; } }

Espera cualquier resultado indefinidamente.


public void clear  ( ) { this . map . clear ( ) ; }

Restablece el almacenamiento para vaciar.


protected void saveBaseURI  ( ) { fBaseURIScope . push ( fDepth ) ; fBaseURI . push ( fCurrentBaseURI . getBaseSystemId ( ) ) ; fLiteralSystemID . push ( fCurrentBaseURI . getLiteralSystemId ( ) ) ; fExpandedSystemID . push ( fCurrentBaseURI . getExpandedSystemId ( ) ) ; }

Guarda el URI base actual en la parte superior de la pila.


public static final void toString  ( StringBuffer output , char [ ] tab ) { if ( tab == null ) { output . append ( "null" ) ; return ; } output . append ( "(" ) ; int size = tab . length ; output . append ( size ) ; if ( listMax == - 1 || size <= listMax ) { for ( int i = 0 ; i < size ; i ++ ) { output . append ( "," ) ; output . append ( tab [ i ] ) ; } } else { int border = size / 2 ; if ( listBorder < border ) border = listBorder ; for ( int i = 0 ; i < border ; i ++ ) { output . append ( "," ) ; output . append ( tab [ i ] ) ; } output . append ( ",..." ) ; for ( int i = border ; i > 0 ; i -- ) { output . append ( "," ) ; output . append ( tab [ size - i ] ) ; } } output . append ( ")" ) ; }

Proporciona una representación de cadena de una matriz de caracteres.Utiliza el <código> listmax </ code> y <code> listborder </ code> variables.


private void writeObject  ( java . io . ObjectOutputStream s ) throws IOException { s . defaultWriteObject ( ) ; for ( int k = 0 ; k < segments . length ; ++ k ) { Segment < K , V > seg = segments [ k ] ; seg . lock ( ) ; try { IHashEntry < K , V > [ ] tab = seg . table ; for ( int i = 0 ; i < tab . length ; ++ i ) { for ( IHashEntry < K , V > e = tab [ i ] ; e != null ; e = _handler . next ( e ) ) { s . writeObject ( _handler . key ( e ) ) ; s . writeObject ( _handler . value ( e ) ) ; } } } finally { seg . unlock ( ) ; } } s . writeObject ( null ) ; s . writeObject ( null ) ; }

Guarde el estado de la instancia de <tt> concurrenthashmap </ tt> en un flujo (es decir, serialize).


public static SM_SYSTEM_MESSAGE STR_SUBMIT_PETITION_QUOTA_LEFT  ( int num0th , int num1 ) { return new SM_SYSTEM_MESSAGE ( 1300540 , num0th , num1 ) ; }

Esta es su petición% Num0.Puede hacer que el% NUM1 sea más peticiones de apoyo hoy.


public static boolean wildcardMatch  ( String filename , String wildcardMatcher , IOCase caseSensitivity ) { if ( filename == null && wildcardMatcher == null ) { return true ; } if ( filename == null || wildcardMatcher == null ) { return false ; } if ( caseSensitivity == null ) { caseSensitivity = IOCase . SENSITIVE ; } String [ ] wcs = splitOnTokens ( wildcardMatcher ) ; boolean anyChars = false ; int textIdx = 0 ; int wcsIdx = 0 ; Stack < int [ ] > backtrack = new Stack < > ( ) ; do { if ( ! backtrack . isEmpty ( ) ) { int [ ] array = backtrack . pop ( ) ; wcsIdx = array [ 0 ] ; textIdx = array [ 1 ] ; anyChars = true ; } while ( wcsIdx < wcs . length ) { if ( wcs [ wcsIdx ] . equals ( "?" ) ) { textIdx ++ ; if ( textIdx > filename . length ( ) ) { break ; } anyChars = false ; } else if ( wcs [ wcsIdx ] . equals ( "*" ) ) { anyChars = true ; if ( wcsIdx == wcs . length - 1 ) { textIdx = filename . length ( ) ; } } else { if ( anyChars ) { textIdx = caseSensitivity . checkIndexOf ( filename , textIdx , wcs [ wcsIdx ] ) ; if ( textIdx == - 1 ) { break ; } int repeat = caseSensitivity . checkIndexOf ( filename , textIdx + 1 , wcs [ wcsIdx ] ) ; if ( repeat >= 0 ) { backtrack . push ( new int [ ] { wcsIdx , repeat } ) ; } } else { if ( ! caseSensitivity . checkRegionMatches ( filename , textIdx , wcs [ wcsIdx ] ) ) { break ; } } textIdx += wcs [ wcsIdx ] . length ( ) ; anyChars = false ; } wcsIdx ++ ; } if ( wcsIdx == wcs . length && textIdx == filename . length ( ) ) { return true ; } } while ( ! backtrack . isEmpty ( ) ) ; return false ; }

Comprueba un nombre de archivo para ver si coincide con el comintador de comodines especificado que permite el control a través de la sensibilidad a la mayoría de las casos.<P> El comedor de comodín usa los personajes '?'y '*' para representar a un solo o múltiples caracteres comodín (cero o más).nótese bienla secuencia "*?"No funciona correctamente en la actualidad en las cadenas de coincidencia.


public static void writeLines  ( Collection < ? > lines , String lineEnding , OutputStream output , String encoding ) throws IOException { writeLines ( lines , lineEnding , output , Charsets . toCharset ( encoding ) ) ; }

Escribe el valor <código> TOSTRING () </ CODE> de cada elemento en una colección a una línea </ código> de SURODSTREAM </ CODE>, utilizando la codificación de caracteres especificada y la finalización de la línea especificada.<p /> Los nombres de codificación de caracteres se pueden encontrar en <a href="http://www.iana.org/assignments/Character-sets"> IANA </A>.


private void initActionBarDrawerToggle  ( ) { mActionBarDrawerToggle = new ActionBarDrawerToggle ( ( Activity ) getContext ( ) , mDelegate . getDrawerLayout ( ) , this , R . string . accessibility_enhanced_bookmark_drawer_toggle_btn_open , R . string . accessibility_enhanced_bookmark_drawer_toggle_btn_close ) ; mDelegate . getDrawerLayout ( ) . setDrawerListener ( mActionBarDrawerToggle ) ; mActionBarDrawerToggle . syncState ( ) ; }

Configure ActionBardraWerToggle, a.k.a. Botón de hamburguesa.


public int equivHashCode  ( ) { return getOpBox ( ) . getValue ( ) . equivHashCode ( ) ; }

Devuelve un código hash para este objeto, consistente con la igualdad estructural.


private void rollbackOnException  ( TransactionStatus status , Throwable ex ) { logger . trace ( message ( "Initiating transaction rollback on application exception" ) , ex ) ; try { this . getTransactionManager ( ) . rollback ( status ) ; } catch ( RuntimeException ex2 ) { logger . error ( message ( "Application exception overridden by rollback exception" ) , ex ) ; throw ex2 ; } catch ( Error err ) { logger . error ( message ( "Application exception overridden by rollback error" ) , ex ) ; throw err ; } }

Realice una reversión, manejo de excepciones de retroceso correctamente.


public void updateStatusBar  ( ) { statusBar . setText1 ( "Terms=" + getTree ( ) . getNumberOfNodes ( ) ) ; final long totalReads = doc . getNumberOfReads ( ) ; final StringBuilder buf2 = new StringBuilder ( ) ; if ( doc . getNumberOfSamples ( ) > 1 ) { Comparer . COMPARISON_MODE mode = Comparer . parseMode ( doc . getDataTable ( ) . getParameters ( ) ) ; if ( mode . equals ( Comparer . COMPARISON_MODE . RELATIVE ) ) { buf2 . append ( String . format ( "Relative comparison, Reads=%,d (normalized to %,d reads per sample)" , totalReads , Comparer . parseNormalizedTo ( doc . getDataTable ( ) . getParameters ( ) ) ) ) ; } else buf2 . append ( String . format ( "Absolute comparison, Reads=%,d Assigned=%,d" , totalReads , totalAssignedReads ) ) ; } else if ( totalReads > 0 ) { buf2 . append ( String . format ( "Reads=%,d Assigned=%,d" , totalReads , totalAssignedReads ) ) ; if ( doc . getBlastMode ( ) != BlastMode . Unknown ) buf2 . append ( " mode=" ) . append ( doc . getBlastMode ( ) . toString ( ) ) ; } else { if ( getTree ( ) . getNumberOfNodes ( ) > 0 ) buf2 . append ( String . format ( " total terms=%,d" , getTree ( ) . getNumberOfNodes ( ) ) ) ; } if ( Document . getVersionInfo ( ) . get ( getClassName ( ) + " tree" ) != null ) buf2 . append ( "     " ) . append ( Basic . skipFirstLine ( Document . getVersionInfo ( ) . get ( getClassName ( ) + " tree" ) ) . replaceAll ( "\\s+" , " " ) ) ; statusBar . setText2 ( buf2 . toString ( ) ) ; }


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


public void gossipSharedData  ( SharedGossipDataMessage message ) { gossipManager . gossipSharedData ( message ) ; }


boolean isEmpty  ( ) { return mDescription . isEmpty ( ) && mTypes . isEmpty ( ) ; }

Comprueba si la información sobre el contenido OMA está vacío.


public FriendsGetListsQuery ( VkApiClient client , UserActor actor ) { super ( client , "friends.getLists" , GetListsResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; }

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


public void resetInitialIfExistSearchActive  ( ) { _initialIfExistSearchActive = false ; }

Restablecer el indicador _initialifexistsearchactive


protected PhotosConfirmTagQuery photoId  ( String value ) { return unsafeParam ( "photo_id" , value ) ; }


public boolean isJavaLibraryClass  ( ) { if ( name . startsWith ( "java." ) || name . startsWith ( "sun." ) || name . startsWith ( "javax." ) || name . startsWith ( "com.sun." ) || name . startsWith ( "org.omg." ) || name . startsWith ( "org.xml." ) ) return true ; return false ; }

A veces necesitamos saber qué clase es una clase JDK.No hay una forma sencilla de distinguir a una clase de usuario y una clase JDK, aquí usamos el prefijo del paquete como la heurística.


private static < T extends  Serializable > void testShallowEquals ( @ NotNull T original , ReachableClasses reachableClasses , Examples examples )  throws ExampleNotFoundException , IllegalAccessException , TestCorrectnessException  { T clone = ( T ) DeepEqualsTesterUtil . cloneWithSerialization ( original ) ; List < Field > allFields = DeepEqualsTesterUtil . getAllFields ( original . getClass ( ) ) ; for ( Field field : allFields ) { if ( ! Modifier . isStatic ( field . getModifiers ( ) ) ) { field . setAccessible ( true ) ; Pair < ? , ? > examplesPair = examples . getExamples ( ( Class < ? extends Serializable > ) field . getType ( ) ) ; Object newValueForOriginal = examplesPair . getFirst ( ) ; Object newValueForClone = examplesPair . getSecond ( ) ; Object oldValueForOriginal = field . get ( original ) ; Object oldValueForClone = field . get ( clone ) ; boolean objectsTheSameBeforeTweak = original . equals ( clone ) ; if ( ! objectsTheSameBeforeTweak ) { throw new TestCorrectnessException ( "original was not equal to clone before tweaking them" ) ; } boolean objectsHashTheSameBeforeTweak = original . hashCode ( ) == clone . hashCode ( ) ; if ( ! objectsHashTheSameBeforeTweak ) { throw new TestCorrectnessException ( "original hash code was not equal to clone hash code before tweaking the objects" ) ; } field . set ( original , newValueForOriginal ) ; field . set ( clone , newValueForClone ) ; boolean equalsWorksAsIntended = ! original . equals ( clone ) ; boolean hashWorksAsIntended = original . hashCode ( ) != clone . hashCode ( ) ; field . set ( original , oldValueForOriginal ) ; field . set ( clone , oldValueForClone ) ; Assert . assertTrue ( getFailureMessage ( "equals" , field , reachableClasses . getExamplePathTo ( original . getClass ( ) ) ) , equalsWorksAsIntended ) ; Assert . assertTrue ( getFailureMessage ( "hash" , field , reachableClasses . getExamplePathTo ( original . getClass ( ) ) ) , hashWorksAsIntended ) ; } } }

Muta cada campo en el objeto uno a la vez y prueba para la igualdad del objeto.Afirmar un fracaso si alguna mutación no da como resultado que los dos objetos no sean iguales


public IndexJoinScan ( Scan s , Index idx , String joinField , TableScan ts ) { this . s = s ; this . idx = idx ; this . joinField = joinField ; this . ts = ts ; beforeFirst ( ) ; }

Crea un análisis de unión de índice para el índice LHS y RHS especificado.


public static Step fromCursor  ( Cursor cursor ) { Step step = new Step ( ) ; for ( int c = 0 ; c < cursor . getColumnCount ( ) ; c ++ ) { String columnName = cursor . getColumnName ( c ) ; if ( columnName . equals ( RecipeInstructionsTable . PHOTO_COLUMN ) ) { step . setPhoto ( cursor . getString ( c ) ) ; } else if ( columnName . equals ( RecipeInstructionsTable . DESCRIPTION_COLUMN ) ) { step . setDescription ( cursor . getString ( c ) ) ; } } return step ; }

Método de ayudante estático para poblar los atributos de un cursor de la base de datos.


public void clear  ( ) { items . clear ( ) ; Iterator siter = springs . iterator ( ) ; Spring . SpringFactory f = Spring . getFactory ( ) ; while ( siter . hasNext ( ) ) f . reclaim ( ( Spring ) siter . next ( ) ) ; springs . clear ( ) ; }

Despeja este simulador, eliminando todas las instancias de Forceitem y Primavera para el simulador.


public BigReal ( long val , MathContext mc ) { d = new BigDecimal ( val , mc ) ; }


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

Obtenga los contenidos de un <código> inputstream </ code> como una lista de cadenas, una entrada por línea, utilizando la codificación de caracteres especificada.<p /> Los nombres de codificación de caracteres se pueden encontrar en <a href="http://www.iana.org/assignments/Character-sets"> IANA </A>.<p /> Este método almacena la entrada internamente, por lo que no es necesario usar un <código> tamponputstream </ code>.


protected int calcOffsetToNextView  ( int direction ) { int spanCount = getSpanCount ( ) ; int orientation = getOrientation ( ) ; if ( orientation == VERTICAL ) { switch ( direction ) { case View . FOCUS_DOWN : return spanCount ; case View . FOCUS_UP : return - spanCount ; case View . FOCUS_RIGHT : return 1 ; case View . FOCUS_LEFT : return - 1 ; } } else if ( orientation == HORIZONTAL ) { switch ( direction ) { case View . FOCUS_DOWN : return 1 ; case View . FOCUS_UP : return - 1 ; case View . FOCUS_RIGHT : return spanCount ; case View . FOCUS_LEFT : return - spanCount ; } } return 0 ; }


default String objectPropertyName  ( IRI propIri ) { return "op-" + fromIri ( propIri ) ; }

Generar el nombre de un tipo de relación MM de la propiedad IRI de un objeto OWL


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

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


public String upload_appender_file1  ( String group_name , byte [ ] file_buff , String file_ext_name , NameValuePair [ ] meta_list ) throws IOException , MyException { String parts [ ] = this . upload_appender_file ( group_name , file_buff , file_ext_name , meta_list ) ; if ( parts != null ) { return parts [ 0 ] + SPLIT_GROUP_NAME_AND_FILENAME_SEPERATOR + parts [ 1 ] ; } else { return null ; } }

Cargar archivo de apartado al servidor de almacenamiento (por archivo Buff)


public void broadcastHate  ( int value ) { for ( VisibleObject visibleObject : getOwner ( ) . getKnownList ( ) . getKnownObjects ( ) . values ( ) ) { if ( visibleObject instanceof Creature ) { ( ( Creature ) visibleObject ) . getAggroList ( ) . notifyHate ( getOwner ( ) , value ) ; } } }

Notificar el valor de odio a todas las criaturas visibles.


private boolean lineToSpeech  ( String path ) { boolean ok = true ; voice . startBatch ( ) ; try { BufferedReader reader = new BufferedReader ( new FileReader ( path ) ) ; String line ; while ( ( line = reader . readLine ( ) ) != null && ok ) { ok = textToSpeech ( line ) ; } reader . close ( ) ; } catch ( IOException ioe ) { voice . error ( "can't read " + path ) ; } voice . endBatch ( ) ; return ok ; }

Lee el archivo apuntado por la ruta dada y hace que cada línea sea como voz individualmente.


@ NotNull public OCROnImageAction ocrOnImage  ( @ Nullable String language , boolean detectOrientation , @ NotNull String imageUrl ) { return new OCROnImageAction ( cognitiveContext , language , detectOrientation , imageUrl ) ; }

El reconocimiento de caracteres ópticos (OCR) detecta texto en una imagen y extrae los caracteres reconocidos en un flujo de caracteres utilizable a la máquina.<p> Tras el éxito, se devolverán los resultados de OCR.<p> Tras el fracaso, se devolverá el código de error junto con un mensaje de error.El código de error puede ser uno de InvalidImageURL, InvalidImageFormat, InvalidImagageSize, NotsupportedImage, NotsupportedLanguage, o InternalServerError.


private void fireOnNewTagSubscriptionsEvent  ( final Set < Long > tagIds ) { if ( ! tagIds . isEmpty ( ) ) { listenersLock . readLock ( ) . lock ( ) ; try { Set < Long > copyList = new HashSet < Long > ( tagIds ) ; for ( TagSubscriptionListener listener : tagSubscriptionListeners ) { listener . onNewTagSubscriptions ( copyList ) ; } } finally { listenersLock . readLock ( ) . unlock ( ) ; } } }

Incendia un <código> onnewtagsubscriptions () </ code> evento a todos los registrados <código> tagsubscriptionlistener </ code> oyentes.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_StatUp_ME_TO_B  ( String skillcaster , String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200571 , skillcaster , skilltarget , skillname ) ; }

[% Skillcaster] ha impulsado [% SkillTarget] Físico Físico mediante el uso de [% de habilidad].


public GenericAttr ( String name , byte data [ ] ) { attr_name = new AsciiCP ( name ) ; this . data = data ; }


public void unregister  ( String key ) throws RegistryException  { try { registry . unbind ( key ) ; } catch ( Exception e ) { throw new RegistryException ( "Failed to unregister with key [" + key + "]" , e ) ; } }

Elimina la unión para la clave especificada en este registro.


public FriendsGetMutualQuery order  ( FriendsGetMutualOrder value ) { return unsafeParam ( "order" , value ) ; }


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

Crea una nueva instancia de la clase de ZwaveHrvControlCommandClass.


@ Override public Tab createFrozenTab  ( TabState state , int id , int index ) { return Tab . createFrozenTabFromState ( id , null , state . isIncognito ( ) , null , Tab . INVALID_TAB_ID , state ) ; }

Crea una pestaña congelada.Esta pestaña no está destinada a ser utilizada o descongelada, solo se usa como marcador de posición hasta que se pueda crear la pestaña real.El índice se ignora en DocumentMode porque Android maneja el pedido de las pestañas.


public PhotosCreateCommentQuery attachments  ( List < String > value ) { return unsafeParam ( "attachments" , value ) ; }

(Requerido si "MENSAJE" no está configurado). Lista de objetos conectados a la publicación, en el siguiente formato: "Tipo" "Owner_id" _ "media_id" "" tipo "" - Tipo de archivo adjunto: "Photo" - Photo"Video" - Video "Audio" - Audio "Doc" - Documento "" Owner_ID "" - Identificación del propietario del archivo adjunto."" Media_ID "" - ID de archivos adjuntos de medios.<p> Ejemplo: photo100172_166443618, photo66748_265827614


public void defineLayout  ( IPageLayout layout ) { String editorArea = layout . getEditorArea ( ) ; IFolderLayout top = layout . createFolder ( "top" , IPageLayout . LEFT , 0.40f , editorArea ) ; top . addView ( RepositoriesView . VIEW_ID ) ; layout . addView ( ISVNUIConstants . HISTORY_VIEW_ID , IPageLayout . BOTTOM , 0.70f , editorArea ) ; layout . setEditorAreaVisible ( true ) ; }

Define el diseño inicial para una página.


public TimingLogger ( Logger logger , String tag , String label ) { mLogger = logger ; reset ( tag , label ) ; }

Cree e inicialice un objeto de tiempo de tiempo que se registre utilizando la etiqueta específica.Si el registro. Islogguage no está habilitado para al menos el nivel de registro. Obverbano para esa etiqueta en la hora de la creación, la llamada ADDSPLIT y DUTPLOG no hará nada.


private List < View > addView  ( View view , List < View > cache ) { if ( cache == null ) { cache = new LinkedList < View > ( ) ; } cache . add ( view ) ; return cache ; }

Agrega vista al caché especificado.Crea una lista de caché si es nulo.


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


public PhotosSaveWallPhotoQuery userId  ( Integer value ) { return unsafeParam ( "user_id" , value ) ; }

ID del usuario en cuyo muro se guardará la foto.


Crea una nueva instancia de textprintImpl.


protected String doLinkURLEncode  ( HttpServletRequest request , HttpServletResponse response , StringBuilder newURL , boolean interWebapp , boolean didFullStandard , boolean didFullSecure ) { String encodedUrl ; if ( interWebapp ) { if ( response != null ) { encodedUrl = RequestLinkUtil . encodeURLNoJsessionId ( newURL . toString ( ) , response ) ; } else { encodedUrl = newURL . toString ( ) ; } } else { boolean forceManualJsessionid = ! cookies ; boolean isSpider = false ; if ( UtilHttp . checkURLforSpiders ( request ) ) { isSpider = true ; } if ( ! request . isSecure ( ) && didFullSecure ) { forceManualJsessionid = true ; } if ( request . isSecure ( ) && didFullStandard ) { forceManualJsessionid = true ; } if ( response != null && ! forceManualJsessionid && ! isSpider ) { encodedUrl = response . encodeURL ( newURL . toString ( ) ) ; } else { if ( ! isSpider ) { String sessionId = ";jsessionid=" + request . getSession ( ) . getId ( ) ; int questionIndex = newURL . indexOf ( "?" ) ; if ( questionIndex == - 1 ) { newURL . append ( sessionId ) ; } else { newURL . insert ( questionIndex , sessionId ) ; } } if ( response != null ) { encodedUrl = response . encodeURL ( newURL . toString ( ) ) ; } else { encodedUrl = newURL . toString ( ) ; } } } return encodedUrl ; }

Scipio: Factorored-Out Makelink Code, que debemos exponer para que otro código de creación de enlaces pueda reutilizar.<p> Advertencia: Newurl se modifica en el lugar y luego se descarta, por lo que solo usa el resultado.


@ Override public int hashCode  ( ) { final int prime = 31 ; int result = 1 ; result = prime * result + ( ( getUserId ( ) == null ) ? 0 : getUserId ( ) . hashCode ( ) ) ; result = prime * result + ( ( getMenuId ( ) == null ) ? 0 : getMenuId ( ) . hashCode ( ) ) ; result = prime * result + ( ( getPermission ( ) == null ) ? 0 : getPermission ( ) . hashCode ( ) ) ; result = prime * result + ( ( getEnable ( ) == null ) ? 0 : getEnable ( ) . hashCode ( ) ) ; result = prime * result + ( ( getRemark ( ) == null ) ? 0 : getRemark ( ) . hashCode ( ) ) ; result = prime * result + ( ( getCreateBy ( ) == null ) ? 0 : getCreateBy ( ) . hashCode ( ) ) ; result = prime * result + ( ( getCreateTime ( ) == null ) ? 0 : getCreateTime ( ) . hashCode ( ) ) ; result = prime * result + ( ( getUpdateBy ( ) == null ) ? 0 : getUpdateBy ( ) . hashCode ( ) ) ; result = prime * result + ( ( getUpdateTime ( ) == null ) ? 0 : getUpdateTime ( ) . hashCode ( ) ) ; return result ; }

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


public static void stopThread  ( ) { ActivityManager am ; synchronized ( ActivityManager . class ) { am = s_instance ; } if ( am != null ) am . _stop ( ) ; }

Detiene el hilo del administrador de actividades.Todas las actividades programadas se cancelan, y luego el hilo se le notifica para dejar de funcionar.


public Map < Integer , Integer > apply  ( ) throws CanceledException  { final Map < Integer , Integer > orphan2AncestorMapping = new HashMap < > ( ) ; if ( progress != null ) { progress . setMaximum ( tree . getNumberOfNodes ( ) ) ; progress . setProgress ( 0 ) ; } final Set < Integer > orphans = new HashSet < > ( ) ; if ( tree . getRoot ( ) != null ) computeOrphan2AncestorMappingRec ( tree . getRoot ( ) , orphan2AncestorMapping , orphans ) ; for ( Integer id : orphans ) { orphan2AncestorMapping . put ( id , IdMapper . UNASSIGNED_ID ) ; } orphans . clear ( ) ; if ( progress instanceof ProgressPercentage ) ( ( ProgressPercentage ) progress ) . reportTaskCompleted ( ) ; return orphan2AncestorMapping ; }

Aplica el filtro de soporte MIN a la clasificación de taxones.


public boolean removeAllEdgesOutOf  ( Unit u ) { boolean hasRemoved = false ; for ( QueueReader < Edge > edgeRdr = listener ( ) ; edgeRdr . hasNext ( ) ; ) { Edge e = edgeRdr . next ( ) ; if ( e . srcUnit ( ) == u ) { removeEdge ( e ) ; hasRemoved = true ; } } return hasRemoved ; }

Elimina todos los bordes salientes que comienzan en la unidad dada


public static boolean isLeapYear  ( int year ) { return year % 4 == 0 && year % 100 != 0 || year % 400 == 0 ; }


public final void closeSourceDataTagsBuffers  ( ) { dataTagsBuffer . disable ( ) ; dataTagsBuffer . close ( ) ; persistentTagsBuffer . disable ( ) ; persistentTagsBuffer . close ( ) ; }

Estos métodos cierra suavemente y desactiva los sincrón de Sincronización de ProcessMessagessender.


public boolean isDrawAxisLineEnabled  ( ) { return mDrawAxisLine ; }

Devuelve VERDADERO si se debe dibujar la línea junto con el eje.


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


public boolean dateRange  ( Object day1 , Object month1 , Object year1 , Object day2 , Object month2 , Object year2 , Object gmt ) { Map < String , Integer > params = new HashMap < String , Integer > ( ) ; parseDateParam ( params , day1 ) ; parseDateParam ( params , month1 ) ; parseDateParam ( params , year1 ) ; parseDateParam ( params , day2 ) ; parseDateParam ( params , month2 ) ; parseDateParam ( params , year2 ) ; parseDateParam ( params , gmt ) ; boolean useGmt = params . get ( "gmt" ) != null ; Calendar cal = getCurrentTime ( useGmt ) ; Date current = cal . getTime ( ) ; if ( params . get ( "day1" ) != null ) { cal . set ( Calendar . DAY_OF_MONTH , params . get ( "day1" ) ) ; } if ( params . get ( "month1" ) != null ) { cal . set ( Calendar . MONTH , params . get ( "month1" ) ) ; } if ( params . get ( "year1" ) != null ) { cal . set ( Calendar . YEAR , params . get ( "year1" ) ) ; } Date from = cal . getTime ( ) ; Date to ; if ( params . get ( "day2" ) != null ) { cal . set ( Calendar . DAY_OF_MONTH , params . get ( "day2" ) ) ; } if ( params . get ( "month2" ) != null ) { cal . set ( Calendar . MONTH , params . get ( "month2" ) ) ; } if ( params . get ( "year2" ) != null ) { cal . set ( Calendar . YEAR , params . get ( "year2" ) ) ; } to = cal . getTime ( ) ; if ( to . before ( from ) ) { cal . add ( Calendar . MONTH , + 1 ) ; to = cal . getTime ( ) ; } if ( to . before ( from ) ) { cal . add ( Calendar . YEAR , + 1 ) ; cal . add ( Calendar . MONTH , - 1 ) ; to = cal . getTime ( ) ; } return current . compareTo ( from ) >= 0 && current . compareTo ( to ) <= 0 ; }

Solo el primer parámetro es obligatorio.Todos los demás parámetros se pueden dejar por lo tanto, el significado de los parámetros cambia.La definición del método muestra la versión con los parámetros más posibles llenos.El significado real de los parámetros se adivina de su valor.Si se especifican "de" y "a", los límites son inclusivos.Si se especifica el parámetro "GMT", se toman tiempos para estar en GMT, de lo contrario se usa la zona horaria local.


private boolean isDistanceToRootCache  ( Direction direction ) { int directionOrdinal = direction . getDirection ( ) ; Float f = mDistToRootCache [ directionOrdinal ] ; if ( f < 0 ) { return false ; } return true ; }


public DexlibWrapper ( File inputDexFile ) { this . inputDexFile = inputDexFile ; }

Construya un dexlibwrapper de un archivo DEX y almacena sus clases a las que se hace referencia a su nombre.No se hace más proceso aquí.


@ Deployment ( resources = { "org/activiti/examples/bpmn/tasklistener/TaskListenerTest.bpmn20.xml" } ) public void testTaskAssignmentListenerNotCalledWhenAssigneeNotUpdated  ( ) { ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( "taskListenerProcess" ) ; Task task = taskService . createTaskQuery ( ) . singleResult ( ) ; assertEquals ( "TaskCreateListener is listening!" , task . getDescription ( ) ) ; taskService . setAssignee ( task . getId ( ) , "kermit" ) ; task = taskService . createTaskQuery ( ) . singleResult ( ) ; assertEquals ( "TaskAssignmentListener is listening: kermit" , task . getDescription ( ) ) ; task . setDescription ( "Clear" ) ; taskService . saveTask ( task ) ; taskService . setAssignee ( task . getId ( ) , "kermit" ) ; task = taskService . createTaskQuery ( ) . singleResult ( ) ; assertEquals ( "Clear" , task . getDescription ( ) ) ; task . setAssignee ( "kermit" ) ; taskService . saveTask ( task ) ; task = taskService . createTaskQuery ( ) . singleResult ( ) ; assertEquals ( "Clear" , task . getDescription ( ) ) ; task . setName ( "test" ) ; taskService . saveTask ( task ) ; task = taskService . createTaskQuery ( ) . singleResult ( ) ; assertEquals ( "Clear" , task . getDescription ( ) ) ; task . setAssignee ( "john" ) ; taskService . saveTask ( task ) ; task = taskService . createTaskQuery ( ) . singleResult ( ) ; assertEquals ( "TaskAssignmentListener is listening: john" , task . getDescription ( ) ) ; runtimeService . deleteProcessInstance ( processInstance . getProcessInstanceId ( ) , "" ) ; }

Validate Fix for ACT-1627: No tirar evento de asignación en cada actualización


public static void main  ( String [ ] args ) { if ( args . length < 2 ) { LOGGER . error ( "There must be at least two arguments" ) ; return ; } int lastIndex = args . length - 1 ; Path [ ] files = getFiles ( args ) ; Main main = new Main ( ) ; main . generate ( files [ lastIndex ] , Arrays . copyOf ( files , lastIndex ) ) ; }

Generar datos de reporte de encanto de directorios con resultados de informes de altura.


public void resetCustom  ( ) { mIsLegendCustom = false ; }

Llamar a esto deshabilitará las etiquetas de leyenda personalizada (establecidas por SetCustom (...)).En su lugar, las etiquetas se calcularán nuevamente automáticamente (después de que se llama NotifyDataSetchanged ()).


public ImageSelection ( Image image ) { this . image = image ; }

Instantánea una nueva selección de imágenes.


private void parseValue  ( String str ) { String cleanString = str . replaceAll ( "[^\\d]" , "" ) ; if ( cleanString . length ( ) > 0 ) { value = new BigDecimal ( cleanString ) . setScale ( 2 , BigDecimal . ROUND_FLOOR ) . divide ( new BigDecimal ( 100 ) , BigDecimal . ROUND_FLOOR ) ; } else { value = BigDecimal . ZERO ; } }

Parses Valor del texto en el campo Editar.


public FriendsGetQueryWithFields ( VkApiClient client , UserActor actor , UserField ... fields ) { super ( client , "friends.get" , GetFieldsResponse . class ) ; accessToken ( actor . getAccessToken ( ) ) ; fields ( fields ) ; }

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


private DatabaseHelper ( Context c ) { openHelper = new DaoMaster . DevOpenHelper ( c , BD_NAME , null ) ; }


@ Override public void endExternalSubset  ( Augmentations augmentations ) throws XNIException { }


public void appendChangeReport  ( final ChangeReport changeReport ) { changeReports . add ( changeReport ) ; }

Método de acceso directo para agregar un informe de cambio.


public static < V > List < V > invertList  ( List < V > sourceList ) { if ( isEmpty ( sourceList ) ) { return sourceList ; } List < V > invertList = new ArrayList < V > ( sourceList . size ( ) ) ; for ( int i = sourceList . size ( ) - 1 ; i >= 0 ; i -- ) { invertList . add ( sourceList . get ( i ) ) ; } return invertList ; }


public static boolean equals  ( String filename1 , String filename2 , boolean normalized , IOCase caseSensitivity ) { if ( filename1 == null || filename2 == null ) { return filename1 == null && filename2 == null ; } if ( normalized ) { filename1 = normalize ( filename1 ) ; filename2 = normalize ( filename2 ) ; if ( filename1 == null || filename2 == null ) { throw new NullPointerException ( "Error normalizing one or both of the file names" ) ; } } if ( caseSensitivity == null ) { caseSensitivity = IOCase . SENSITIVE ; } return caseSensitivity . checkEquals ( filename1 , filename2 ) ; }

Comprueba si dos nombres de archivo son iguales, opcionalmente, normalizando y proporcionando control a través de la sensibilidad de la caja.


public EntryRep ( Entry entry ) throws RemoteException { EntryClassBase ecb = ClassMapper . toEntryClassBase ( entry . getClass ( ) ) ; eclass = ecb . eclass ; codebase = ecb . codebase ; try { EntryField [ ] efields = ClassMapper . getFields ( entry . getClass ( ) ) ; fields = new Object [ efields . length ] ; for ( int i = efields . length ; -- i >= 0 ; ) { EntryField f = efields [ i ] ; Object val = f . field . get ( entry ) ; if ( f . marshal && val != null ) val = new MarshalledWrapper ( val ) ; fields [ i ] = val ; } } catch ( IOException e ) { throw new MarshalException ( "error marshalling arguments" , e ) ; } catch ( IllegalAccessException e ) { throw new MarshalException ( "error marshalling arguments" , e ) ; } }

Convierte una entrada a un EntryRep.Cualquier excepción de que los resultados se incluyan en una marisciplina.


@ Nullable ResourceHandle tryToGetResourceHandle  ( K key , Callable < ? extends R > loader , EliminationStack < ResourceKey < K > > stack , long timeoutNanos ) { ResourceKey < K > resourceKey = stack . pop ( ) ; if ( resourceKey == null ) { return newResourceHandle ( key , loader , stack ) ; } if ( timeToIdlePolicy . isPresent ( ) && timeToIdlePolicy . get ( ) . hasExpired ( resourceKey ) ) { return null ; } return tryToGetPooledResourceHandle ( resourceKey ) ; }

Intenta recuperar el siguiente controlador disponible, creando el recurso si es necesario.


private Vector1D finiteOrNullPoint  ( final double x ) { return Double . isInfinite ( x ) ? null : new Vector1D ( x ) ; }


public BoyerMoore ( byte [ ] pattern , int offset , int length , int R ) { this . R = R ; this . pattern = new byte [ length ] ; System . arraycopy ( pattern , offset , this . pattern , 0 , length ) ; right = new int [ R ] ; for ( int c = 0 ; c < R ; c ++ ) right [ c ] = - 1 ; for ( int j = 0 ; j < pattern . length ; j ++ ) right [ pattern [ j ] ] = j ; }


public static < X extends  DataSource > boolean areDataSourcesIndependent ( Set < X > dataSources )  { return dataSources . size ( ) == getIndependentDataSources ( dataSources ) . size ( ) ; }

Devuelve VERDADERO si se proporcionan datos de datos independientes.Independiente significa que ningún datasource es (super) propietario de cualquier otro DataSource.


public static SM_SYSTEM_MESSAGE STR_SKILL_SUCC_OneTimeTypeBoostSkillLevel_ME_TO_B  ( String skilltarget , String skillname ) { return new SM_SYSTEM_MESSAGE ( 1200540 , skilltarget , skillname ) ; }

[% SkillTarget] recibió el efecto de la habilidad de impulso a medida que usó [% de habilidad].


public MetadataHttpResponseChannel ( AsyncResponse asyncResponse , ObjectWriter writer ) { this . asyncResponse = asyncResponse ; this . writer = writer ; }

Construye un canal para enviar solicitudes de metadatos al usuario.


public void addAll  ( Taxa taxa ) { for ( Iterator it = taxa . iterator ( ) ; it . hasNext ( ) ; ) { String name = ( String ) it . next ( ) ; add ( name ) ; } }


public RequestHandle post  ( Context context , String url , Header [ ] headers , RequestParams params , String contentType , ResponseHandlerInterface responseHandler ) { HttpEntityEnclosingRequestBase request = new HttpPost ( url ) ; if ( params != null ) request . setEntity ( paramsToEntity ( params , responseHandler ) ) ; if ( headers != null ) request . setHeaders ( headers ) ; return sendRequest ( httpClient , httpContext , request , contentType , responseHandler , context ) ; }

Realice una solicitud de publicación HTTP y rastree el contexto Android que inició la solicitud.Establecer encabezados solo para esta solicitud


@ Override public void onPassphraseTypeSelected  ( PassphraseType type ) { if ( ! mProfileSyncService . isBackendInitialized ( ) ) { return ; } boolean isAllDataEncrypted = mProfileSyncService . isEncryptEverythingEnabled ( ) ; boolean isUsingSecondaryPassphrase = mProfileSyncService . isUsingSecondaryPassphrase ( ) ; assert ! isAllDataEncrypted ; assert ! isUsingSecondaryPassphrase ; displayCustomPassphraseDialog ( ) ; }

Devolución de llamada para passphrasetypedialogfragment.listener


public BeforeSpaceModeChangeEvent ( IJSpace space , SpaceMode spaceMode ) { super ( space , spaceMode ) ; }


public VOGeoServerWeatherSymbol ( ) { String fullResourceName = "geoserver/GeoServerExtShapeSymbol.xml" ; SymbolTypeConfigReader . readConfig ( VOGeoServerWeatherSymbol . class , fullResourceName , fieldEnableMap ) ; }

Instantánea un nuevo símbolo de tiempo VO GEO Server.


private static boolean hasHorizontalConstraints  ( @ NotNull ConstraintWidget widget ) { ConstraintAnchor left = widget . getAnchor ( ConstraintAnchor . Type . LEFT ) ; ConstraintAnchor right = widget . getAnchor ( ConstraintAnchor . Type . RIGHT ) ; return ( left != null && left . isConnected ( ) ) || ( right != null && right . isConnected ( ) ) ; }

Devuelve verdadero si el widget tiene restricciones horizontales


public Z Exch  ( Z a ) { double t ; t = re ; re = a . re ; a . re = t ; t = im ; im = a . im ; a . im = t ; return this ; }

Intercambia las partes reales e imaginarias de dos z's.


public void destroyAndUnBindDestination  ( String destinationName ) throws JMSException { try { getInitialContext ( ) . unbind ( destinationName ) ; } catch ( NamingException ne ) { } }

Destruye un destino (gstopicimpl o gsqueuevmente) y luego no desvincula el registro JNDI.


public MyPagerAdapter ( List < View > viewList , List < String > titleList ) { this . viewList = viewList ; this . titleList = titleList ; }


public Bucket ( String label , Experiment experiment , double allocationPercent , boolean isControl ) { this ( label , experiment . id , allocationPercent , isControl , null ) ; }

Crea un cubo con valores predeterminados para todos los argumentos requeridos.


public IntegerSpinner ( SpinnerModel model ) { super ( model ) ; }


public JsonObject internal_createBackground  ( ITextBackground background ) { JsonObject jsonSymbol = null ; if ( background != null ) { EsriTextBackgroundInterface backgroundConverter = data . getTextBackgroundMap ( background . getClass ( ) ) ; if ( backgroundConverter != null ) { jsonSymbol = backgroundConverter . convert ( background ) ; } else { System . err . println ( "Unsupported background : " + background . getClass ( ) . getName ( ) ) ; } } return jsonSymbol ; }


public void refreshCalendar  ( ) { TextView title = ( TextView ) rootView . findViewById ( R . id . title ) ; refreshDays ( ) ; title . setText ( android . text . format . DateFormat . format ( CalendarUtils . getCalendarMonthTitleFormat ( ) , month ) ) ; }


public static void registerHorseArmor  ( ResourceLocation id , HorseArmorType type ) { AutomaticNamespacedRegistry < ResourceLocation , HorseArmorType > registry = Registries . get ( HorseArmorType . class ) ; if ( type == null ) { throw new NullPointerException ( "Attempted to register a null horse armor" ) ; } else if ( id == null ) { throw new NullPointerException ( "Attempted to register a horse armor with a null ID" ) ; } else if ( registry . containsKey ( id ) ) { throw new IllegalArgumentException ( String . format ( "The horse armor ID \"%s\" has already been registered" , id ) ) ; } registry . register ( id , type ) ; }


private void decode  ( byte [ ] data , int width , int height ) { long start = System . currentTimeMillis ( ) ; Result rawResult = null ; byte [ ] rotatedData = new byte [ data . length ] ; for ( int y = 0 ; y < height ; y ++ ) { for ( int x = 0 ; x < width ; x ++ ) rotatedData [ x * height + height - y - 1 ] = data [ x + y * width ] ; } int tmp = width ; width = height ; height = tmp ; data = rotatedData ; PlanarYUVLuminanceSource source = captureEvent . getCameraManager ( ) . buildLuminanceSource ( data , width , height ) ; BinaryBitmap bitmap = new BinaryBitmap ( new HybridBinarizer ( source ) ) ; try { rawResult = multiFormatReader . decodeWithState ( bitmap ) ; } catch ( ReaderException re ) { } catch ( Exception re ) { } finally { multiFormatReader . reset ( ) ; } if ( rawResult != null ) { long end = System . currentTimeMillis ( ) ; Log . d ( TAG , "Found barcode (" + ( end - start ) + " ms):\n" + rawResult . toString ( ) ) ; Message message = Message . obtain ( captureEvent . getHandler ( ) , MessageIDs . decode_succeeded , rawResult ) ; Bundle bundle = new Bundle ( ) ; bundle . putParcelable ( DecodeThread . BARCODE_BITMAP , source . renderCroppedGreyscaleBitmap ( ) ) ; message . setData ( bundle ) ; message . sendToTarget ( ) ; } else { Message message = Message . obtain ( captureEvent . getHandler ( ) , MessageIDs . 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 BlankIcon ( Color colour , int size ) { fillColour = colour ; this . size = size ; }


protected boolean isOnSameScreenAsChildren  ( ) { return true ; }

Si este grupo de preferencias debe mostrarse en la misma pantalla que sus preferencias contenidas.


private void expand  ( int i ) { if ( count + i <= buf . length ) { return ; } byte [ ] newbuf = mPool . getBuf ( ( count + i ) * 2 ) ; System . arraycopy ( buf , 0 , newbuf , 0 , count ) ; mPool . returnBuf ( buf ) ; buf = newbuf ; }

Asegura que haya suficiente espacio en el búfer para el número dado de bytes adicionales.


private void decode  ( byte [ ] data , int width , int height ) { long start = System . currentTimeMillis ( ) ; Result rawResult = null ; byte [ ] rotatedData = new byte [ data . length ] ; for ( int y = 0 ; y < height ; y ++ ) { for ( int x = 0 ; x < width ; x ++ ) rotatedData [ x * height + height - y - 1 ] = data [ x + y * width ] ; } int tmp = width ; width = height ; height = tmp ; PlanarYUVLuminanceSource source = CameraManager . get ( ) . buildLuminanceSource ( rotatedData , width , height ) ; BinaryBitmap bitmap = new BinaryBitmap ( new HybridBinarizer ( source ) ) ; try { rawResult = multiFormatReader . decodeWithState ( bitmap ) ; } catch ( ReaderException re ) { } finally { multiFormatReader . reset ( ) ; } if ( rawResult != null ) { long end = System . currentTimeMillis ( ) ; Log . d ( TAG , "Found barcode (" + ( end - start ) + " ms):\n" + rawResult . toString ( ) ) ; Message message = Message . obtain ( activity . getHandler ( ) , R . id . decode_succeeded , rawResult ) ; Bundle bundle = new Bundle ( ) ; bundle . putParcelable ( DecodeThread . BARCODE_BITMAP , source . renderCroppedGreyscaleBitmap ( ) ) ; message . setData ( bundle ) ; message . sendToTarget ( ) ; } else { Message message = Message . obtain ( activity . getHandler ( ) , R . id . decode_failed ) ; message . sendToTarget ( ) ; } }


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


public ByteString toByteString  ( ) { return ByteString . copyOf ( buffer , 0 , length ) ; }

Devuelve una cadena de bytes que consiste en los bytes en este constructor.


public static String extractCSVOutputByFieldNum  ( String csvOut , int fieldNum ) { String tokens [ ] = csvOut . split ( ",(?=([^\"]*\"[^\"]*\")*[^\"]*$)" , - 1 ) ; return tokens [ fieldNum ] ; }


public static void addFunction  ( String name , Class type ) { if ( ! Function . class . isAssignableFrom ( type ) ) { throw new IllegalArgumentException ( "Type argument must be a subclass of FunctionExpression." ) ; } if ( hasFunction ( name ) ) { throw new IllegalArgumentException ( "Function with that name already exists" ) ; } String lo = name . toLowerCase ( ) ; String hi = name . toUpperCase ( ) ; if ( ! name . equals ( lo ) && ! name . equals ( hi ) ) throw new IllegalArgumentException ( "Name can't have mixed case, try \"" + hi + "\" instead." ) ; s_functionTable . put ( lo , type ) ; s_functionTable . put ( hi , type ) ; }

Añadir una función a la tabla de funciones.Luego estará disponible para su uso con declaraciones compiladas del lenguaje de expresión prefusible.


public static String id  ( ) { String id = UID . id ( System . currentTimeMillis ( ) , UID . random ( ) ) ; try { while ( Helper . exists ( id , Repo . class ) ) { id = UID . id ( System . currentTimeMillis ( ) , UID . random ( ) ) ; } } catch ( Exception e ) { log . error ( e . getMessage ( ) , e ) ; } return id ; }


protected boolean checkPrevWords  ( Element currentRulePart , int position , NodeList tokens ) { NamedNodeMap attNodes = currentRulePart . getAttributes ( ) ; for ( int z = 0 ; z < attNodes . getLength ( ) ; z ++ ) { Node el = attNodes . item ( z ) ; String currentAtt = el . getNodeName ( ) ; String currentVal = el . getNodeValue ( ) ; if ( currentAtt . equals ( "num" ) ) { int requiredNum = Integer . parseInt ( currentVal . substring ( 0 , 1 ) ) ; int num = 0 ; for ( int i = position - 1 ; i >= 0 ; i -- ) { if ( ! ( ( Element ) tokens . item ( i ) ) . getAttribute ( "ph" ) . equals ( "" ) ) num ++ ; } if ( currentVal . length ( ) == 1 ) { if ( num != requiredNum ) return false ; } else if ( currentVal . substring ( 1 , 2 ) . equals ( "+" ) ) { if ( ! ( num >= requiredNum ) ) return false ; } else if ( currentVal . substring ( 1 , 2 ) . equals ( "-" ) ) { if ( ! ( num <= requiredNum ) ) return false ; } } } return true ; }

Cheques Regla de la regla con la etiqueta "Previgws";Solo hay el atributo "num" en este momento;verifica si el número de palabras que preceden al token actual es el mismo que el valor del atributo num;F.E.El valor "3+" significa: al menos 3 tokens precedentes, "3-": no más de 3, "3": exactamente 3


@ Override public void renderLimitLines  ( Canvas c ) { }

Límite de XAXIS en Radarchart aún no admitido.


public void convertLayer  ( int count , int total , JsonArray jsonLayerlist , ILayer layer , Map mxdMap ) { if ( layer == null ) { System . err . println ( "convertLayer() : layer == null" ) ; } try { System . out . println ( String . format ( "Reading layer (%d/%d) : %s" , count , total , layer . getName ( ) ) ) ; if ( layer instanceof GroupLayer ) { System . out . println ( "Group Layer" ) ; } else if ( layer instanceof FeatureLayer ) { JsonObject jsonLayerObject = new JsonObject ( ) ; jsonLayerObject . addProperty ( "name" , layer . getName ( ) ) ; jsonLayerObject . addProperty ( "maxScale" , layer . getMinimumScale ( ) ) ; jsonLayerObject . addProperty ( "minScale" , layer . getMaximumScale ( ) ) ; FeatureLayer featureLayer = ( FeatureLayer ) layer ; jsonLayerObject . addProperty ( "definitionExpression" , featureLayer . getDefinitionExpression ( ) ) ; jsonLayerObject . addProperty ( "transparency" , featureLayer . getTransparency ( ) ) ; IFeatureRenderer renderer = featureLayer . getRenderer ( ) ; JsonObject jsonRenderer = internal_createRenderer ( renderer ) ; if ( jsonRenderer != null ) { jsonLayerObject . add ( "renderer" , jsonRenderer ) ; } JsonArray jsonLabelRendererArray = new JsonArray ( ) ; IGeoFeatureLayer geoFeatureLayer = ( IGeoFeatureLayer ) layer ; if ( geoFeatureLayer . isDisplayAnnotation ( ) ) { IAnnotateLayerPropertiesCollection annotationProperties = geoFeatureLayer . getAnnotationProperties ( ) ; for ( int index = 0 ; index < annotationProperties . getCount ( ) ; index ++ ) { IAnnotateLayerProperties [ ] item = new IAnnotateLayerProperties [ 1 ] ; annotationProperties . queryItem ( index , item , null , null ) ; if ( item [ 0 ] != null ) { EsriLabelRendererInterface labelConverter = data . getLabel ( item [ 0 ] . getClass ( ) ) ; if ( labelConverter != null ) { JsonObject jsonLabelRenderer = labelConverter . convert ( item [ 0 ] , mxdMap ) ; if ( jsonLabelRenderer != null ) { jsonLabelRendererArray . add ( jsonLabelRenderer ) ; } } } } jsonLayerObject . add ( "labelRenderers" , jsonLabelRendererArray ) ; } JsonArray fieldArray = readFields ( featureLayer ) ; jsonLayerObject . add ( "fields" , fieldArray ) ; jsonLayerlist . add ( jsonLayerObject ) ; JsonObject dataSourceObject = readDataSource ( featureLayer ) ; jsonLayerObject . add ( "dataSource" , dataSourceObject ) ; } else { System . out . println ( "Unsupported layer : " + layer . getClass ( ) . getName ( ) ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } }


private boolean isEmptyPersistent  ( ) throws SAException  { Context context = null ; try { if ( ! _cacheManager . getTemplatesManager ( ) . isEmpty ( ) ) return false ; ITemplateHolder tHolder = TemplateHolderFactory . createEmptyTemplateHolder ( this , _uidFactory . createUIDFromCounter ( ) , Long . MAX_VALUE , false ) ; IServerTypeDesc templateType = _typeManager . getServerTypeDesc ( IServerTypeDesc . ROOT_TYPE_NAME ) ; context = _cacheManager . getCacheContext ( ) ; ISAdapterIterator < IEntryHolder > entriesIterSA = _cacheManager . makeEntriesIter ( context , tHolder , templateType , 0 , SystemTime . timeMillis ( ) , false ) ; if ( entriesIterSA == null ) return true ; IEntryHolder eh = entriesIterSA . next ( ) ; entriesIterSA . close ( ) ; return ( eh == null ) ; } finally { _cacheManager . freeCacheContext ( context ) ; } }

Devuelve verdadero si el espacio persistente está vacío.


private static boolean sameConstraints  ( Lease l1 , Lease l2 ) { if ( ! ( l1 instanceof RemoteMethodControl ) ) { return ! ( l2 instanceof RemoteMethodControl ) ; } else if ( ! ( l2 instanceof RemoteMethodControl ) ) { return false ; } else { return ConstrainableProxyUtil . equivalentConstraints ( ( ( RemoteMethodControl ) l1 ) . getConstraints ( ) , ( ( RemoteMethodControl ) l2 ) . getConstraints ( ) , leaseToLeaseMethods ) ; } }

Devuelve VERDADERO si los dos arrendamientos implementan RemoteTethodControl y tienen las mismas restricciones para los métodos de arrendamiento, o ambos no implementan RemoteMethodControl, de lo contrario, devuelve FALSO.


public Object invoke  ( MethodInvocation methodInvocation ) throws Throwable { int retries = retryCountOnFailure ; while ( true ) { try { if ( actualService == null ) { synchronized ( actualServiceMonitor ) { if ( actualService == null ) { actualService = lookupService ( ) ; } } } return methodInvocation . getMethod ( ) . invoke ( actualService , methodInvocation . getArguments ( ) ) ; } catch ( InvocationTargetException e ) { if ( logger . isTraceEnabled ( ) ) { logger . trace ( "Failed to execute [" + methodInvocation . getMethod ( ) . getName ( ) + "] on [" + actualService + "]" , e ) ; } synchronized ( actualServiceMonitor ) { actualService = null ; } if ( -- retries == 0 ) { throw e . getTargetException ( ) ; } } } }

Cuando se utiliza un proxy inteligente, envuelve la invocación de un método de servicio y, en caso de falla, intentará realizar otra búsqueda para el servicio.


public String toString  ( ) { String sRes = "" ; Iterator iEdgeIter = Arrays . asList ( getEdgeSet ( ) . toArray ( ) ) . listIterator ( ) ; while ( iEdgeIter . hasNext ( ) ) { Edge e = ( Edge ) iEdgeIter . next ( ) ; String sA = "" ; char [ ] cTmp = e . getVertexA ( ) . getLabel ( ) . toCharArray ( ) ; int iCnt = 0 ; while ( iCnt < cTmp . length ) { char c = cTmp [ iCnt ] ; sA += ( Character . isISOControl ( c ) ) ? "_" : ( char ) c ; iCnt ++ ; } String sB = "" ; cTmp = e . getVertexB ( ) . getLabel ( ) . toCharArray ( ) ; iCnt = 0 ; while ( iCnt < cTmp . length ) { char c = cTmp [ iCnt ] ; sB += ( Character . isISOControl ( c ) ) ? "_" : ( char ) c ; iCnt ++ ; } sRes = sRes . concat ( sA + "->" + sB + "(Distro: " + getEdgeDistro ( e ) . toString ( ) + ")\n" ) ; } return sRes ; }

Devuelve una representación de cadena del gráfico de distribución.


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

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


public MessagesDeleteQuery delete  ( Actor actor ) { return new MessagesDeleteQuery ( getClient ( ) , actor ) ; }


public TemplateParameterStep2 ( @ Nullable FormFactor formFactor , Map < String , Object > presetParameters , @ Nullable Disposable disposable , @ NotNull Key < String > packageNameKey , SourceProvider [ ] sourceProviders , String stepTitle ) { super ( disposable ) ; myFormFactor = formFactor ; mySourceProviders = sourceProviders ; myPresetParameters . putAll ( presetParameters ) ; myPackageNameKey = packageNameKey ; myParameterToKey = CacheBuilder . newBuilder ( ) . weakKeys ( ) . build ( CacheLoader . from ( new ParameterKeyFunction ( ) ) ) ; myRootPanel . setBorder ( createBodyBorder ( ) ) ; myTemplateDescription . setBorder ( BorderFactory . createEmptyBorder ( 0 , 0 , myTemplateDescription . getFont ( ) . getSize ( ) , 0 ) ) ; setBodyComponent ( myRootPanel ) ; myStepTitle = stepTitle ; }

Crea un nuevo paso de asistente de parámetros de plantilla.


private void populateTable  ( AnalyticsTable table , String valueExpression , String textValueExpression , Set < ValueType > valueTypes , String whereClause , String approvalClause ) { final String start = DateUtils . getMediumDateString ( table . getPeriod ( ) . getStartDate ( ) ) ; final String end = DateUtils . getMediumDateString ( table . getPeriod ( ) . getEndDate ( ) ) ; final String tableName = table . getTempTableName ( ) ; final String valTypes = TextUtils . getQuotedCommaDelimitedString ( ObjectUtils . asStringList ( valueTypes ) ) ; String sql = "insert into " + table . getTempTableName ( ) + " (" ; List < AnalyticsTableColumn > columns = getDimensionColumns ( table ) ; validateDimensionColumns ( columns ) ; for ( AnalyticsTableColumn col : columns ) { sql += col . getName ( ) + "," ; } sql += "daysxvalue, daysno, value, textvalue) select " ; for ( AnalyticsTableColumn col : columns ) { sql += col . getAlias ( ) + "," ; } sql += valueExpression + " * ps.daysno as daysxvalue, " + "ps.daysno as daysno, " + valueExpression + " as value, " + textValueExpression + " as textvalue " + "from datavalue dv " + "left join _dataelementgroupsetstructure degs on dv.dataelementid=degs.dataelementid " + "left join _organisationunitgroupsetstructure ougs on dv.sourceid=ougs.organisationunitid " + "left join _categorystructure dcs on dv.categoryoptioncomboid=dcs.categoryoptioncomboid " + "left join _categorystructure acs on dv.attributeoptioncomboid=acs.categoryoptioncomboid " + "left join _orgunitstructure ous on dv.sourceid=ous.organisationunitid " + "left join _dataelementstructure des on dv.dataelementid = des.dataelementid " + "inner join dataelement de on dv.dataelementid=de.dataelementid " + "inner join categoryoptioncombo co on dv.categoryoptioncomboid=co.categoryoptioncomboid " + "inner join categoryoptioncombo ao on dv.attributeoptioncomboid=ao.categoryoptioncomboid " + "inner join _categoryoptioncomboname aon on dv.attributeoptioncomboid=aon.categoryoptioncomboid " + "inner join period pe on dv.periodid=pe.periodid " + "inner join _periodstructure ps on dv.periodid=ps.periodid " + "inner join organisationunit ou on dv.sourceid=ou.organisationunitid " + approvalClause + "where de.valuetype in (" + valTypes + ") " + "and de.domaintype = 'AGGREGATE' " + "and pe.startdate >= '" + start + "' " + "and pe.startdate <= '" + end + "' " + "and dv.value is not null " + "and dv.deleted is false " ; if ( whereClause != null ) { sql += "and " + whereClause ; } populateAndLog ( sql , tableName + ", " + valueTypes ) ; }


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


@ Override public void onWebsocketHandshakeSentAsClient  ( WebSocket conn , ClientHandshake request ) throws InvalidDataException { }

Esta implementación predeterminada no hace nada, lo que hará que las conexiones siempre progresen.


@ Override public boolean hasMoreData  ( ) { return hasMoreData ; }

Si se pueden leer o no más datos de este origen de datos.


public static boolean isAquaLookAndFeel  ( ) { return UIUtils . isAquaLookAndFeel ( ) ; }

Determina si actual L & F es aqualookandfeel


public NameTypeCP ( String name , String sig ) { uniq = ( "NT : @#$%" + name + "SD#$" + sig ) . intern ( ) ; this . name = new AsciiCP ( name ) ; this . sig = new AsciiCP ( sig ) ; }

Las entradas de nombre / tipo se utilizan para especificar el tipo asociado con un nombre de símbolo.