signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class InstrumentedExecutors { /** * Returns an instrumented default thread factory used to create new threads . * This factory creates all new threads used by an Executor in the * same { @ link ThreadGroup } . If there is a { @ link * java . lang . SecurityManager } , it uses the group of { @ link * Syst...
return new InstrumentedThreadFactory ( Executors . defaultThreadFactory ( ) , registry , name ) ;
public class Counter { /** * This method removes given key from counter * @ param element * @ return counter value */ public double removeKey ( T element ) { } }
AtomicDouble v = map . remove ( element ) ; dirty . set ( true ) ; if ( v != null ) return v . get ( ) ; else return 0.0 ;
public class Zone { /** * Represent a zone with a fake email and a TTL of 86400. * @ param name corresponds to { @ link # name ( ) } * @ param id nullable , corresponds to { @ link # id ( ) } * @ deprecated Use { @ link # create ( String , String , int , String ) } . This will be removed in version */ @ Deprecate...
return new Zone ( id , name , 86400 , "nil@" + name ) ;
public class CommonG { /** * Connect to JDBC secured / not secured database * @ param database database connection string * @ param host database host * @ param port database port * @ param user database user * @ param password database password * @ param ca trusted certificate authorities ( . crt ) * @ p...
if ( port . startsWith ( "[" ) ) { port = port . substring ( 1 , port . length ( ) - 1 ) ; } if ( ! secure ) { if ( password == null ) { password = "stratio" ; } try { myConnection = DriverManager . getConnection ( "jdbc:postgresql://" + host + ":" + port + "/" + database , user , password ) ; } catch ( SQLException se...
public class MarkdownParser { /** * Change the formats to be applied to the outline entries . * < p > The format must be compatible with { @ link MessageFormat } . * < p > If section auto - numbering is on , * the first parameter < code > { 0 } < / code > equals to the prefix , * the second parameter < code > {...
if ( ! Strings . isEmpty ( formatWithoutNumbers ) ) { this . outlineEntryWithoutNumberFormat = formatWithoutNumbers ; } if ( ! Strings . isEmpty ( formatWithNumbers ) ) { this . outlineEntryWithNumberFormat = formatWithNumbers ; }
public class LocalDateAndTimeStampImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public boolean eIsSet ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . LOCAL_DATE_AND_TIME_STAMP__STAMP_TYPE : return STAMP_TYPE_EDEFAULT == null ? stampType != null : ! STAMP_TYPE_EDEFAULT . equals ( stampType ) ; case AfplibPackage . LOCAL_DATE_AND_TIME_STAMP__THUN_YEAR : return THUN_YEAR_EDEFAULT == null ? tHunYear != null : ! THUN_YEAR_EDEFA...
public class ApiOvhOrder { /** * Create order * REST : POST / order / dedicated / server / { serviceName } / usbKey / { duration } * @ param capacity [ required ] Capacity in gigabytes * @ param serviceName [ required ] The internal name of your dedicated server * @ param duration [ required ] Duration */ publi...
String qPath = "/order/dedicated/server/{serviceName}/usbKey/{duration}" ; StringBuilder sb = path ( qPath , serviceName , duration ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "capacity" , capacity ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return con...
public class CopyFileExtensions { /** * Copies the given source directory to the given destination directory . * @ param source * The source directory . * @ param destination * The destination directory . * @ return ' s true if the directory is copied , otherwise false . * @ throws FileIsSecurityRestrictedE...
return copyDirectory ( source , destination , true ) ;
public class SkewHeap { /** * { @ inheritDoc } */ @ Override @ LogarithmicTime ( amortized = true ) @ SuppressWarnings ( "unchecked" ) public AddressableHeap . Handle < K , V > insert ( K key , V value ) { } }
if ( other != this ) { throw new IllegalStateException ( "A heap cannot be used after a meld" ) ; } if ( key == null ) { throw new NullPointerException ( "Null keys not permitted" ) ; } Node < K , V > n = createNode ( key , value ) ; // easy special cases if ( size == 0 ) { root = n ; size = 1 ; return n ; } else if ( ...
public class JMOptional { /** * Gets nullable and filtered optional . * @ param < T > the type parameter * @ param target the target * @ param predicate the predicate * @ return the nullable and filtered optional */ public static < T > Optional < T > getNullableAndFilteredOptional ( T target , Predicate < T > p...
return Optional . ofNullable ( target ) . filter ( predicate ) ;
public class DSetImpl { /** * Evaluate the boolean query predicate for each element of the collection and * return a new collection that contains each element that evaluated to true . * @ parampredicateAn OQL boolean query predicate . * @ returnA new collection containing the elements that evaluated true for the ...
// 1 . build complete OQL statement String oql = "select all from java.lang.Object where " + predicate ; TransactionImpl tx = getTransaction ( ) ; OQLQuery predicateQuery = tx . getImplementation ( ) . newOQLQuery ( ) ; PBCapsule capsule = new PBCapsule ( tx . getImplementation ( ) . getCurrentPBKey ( ) , tx ) ; Persis...
public class XmlRpcDataMarshaller { /** * Transforms the Collection of References into a Vector of Reference parameters . * @ param references a { @ link java . util . Collection } object . * @ return the Collection of References into a Vector of Reference parameters */ public static Vector < Object > toXmlRpcRefer...
Vector < Object > referencesParams = new Vector < Object > ( ) ; for ( Reference reference : references ) { referencesParams . add ( reference . marshallize ( ) ) ; } return referencesParams ;
public class CompilerStatistics { /** * Take a snapshot of the current memory usage of the JVM and update the * high - water marks . */ public void updateMemoryInfo ( ) { } }
MemoryMXBean meminfo = ManagementFactory . getMemoryMXBean ( ) ; MemoryUsage usage = meminfo . getHeapMemoryUsage ( ) ; long _heapUsed = usage . getUsed ( ) ; updateMaximum ( heapUsed , _heapUsed ) ; updateMaximum ( heapTotal , usage . getMax ( ) ) ; usage = meminfo . getNonHeapMemoryUsage ( ) ; updateMaximum ( nonHeap...
public class Context { /** * Gets the nodes from the site tree which are " In Scope " . Searches recursively starting from * the root node . Should be used with care , as it is time - consuming , querying the database for * every node in the Site Tree . * @ return the nodes in scope from site tree */ public List ...
List < SiteNode > nodes = new LinkedList < > ( ) ; SiteNode rootNode = session . getSiteTree ( ) . getRoot ( ) ; @ SuppressWarnings ( "unchecked" ) Enumeration < TreeNode > en = rootNode . children ( ) ; while ( en . hasMoreElements ( ) ) { SiteNode sn = ( SiteNode ) en . nextElement ( ) ; if ( isContainsNodesInContext...
public class Crc32 { /** * Feed a bitstring to the crc calculation . */ public void append ( short bits ) { } }
long l ; long [ ] a1 ; l = ( ( l = crc ) >> 8L ) ^ ( a1 = CRC32_TABLE ) [ ( int ) ( ( l & 0xFF ) ^ ( long ) ( bits & 0xFF ) ) ] ; crc = ( l >> 8L ) ^ a1 [ ( int ) ( ( l & 0xFF ) ^ ( long ) ( ( bits & 0xffff ) >> 8 ) ) ] ;
public class RNAUtils { /** * method to hybridize two PolymerNotations together if they are * antiparallel * @ param one * PolymerNotation first * @ param two * PolymerNotation second * @ return List of ConnectionNotations * @ throws RNAUtilsException if the polymer is not a RNA / DNA * @ throws Notatio...
checkRNA ( one ) ; checkRNA ( two ) ; List < ConnectionNotation > connections = new ArrayList < ConnectionNotation > ( ) ; ConnectionNotation connection ; /* Length of the two rnas have to be the same */ if ( areAntiparallel ( one , two ) ) { for ( int i = 0 ; i < PolymerUtils . getTotalMonomerCount ( one ) ; i ++ ) { ...
public class DefaultTraverserContext { /** * PRIVATE : Used by { @ link Traverser } */ void setChildrenContexts ( Map < String , List < TraverserContext < T > > > children ) { } }
assertTrue ( this . children == null , "children already set" ) ; this . children = children ;
public class CreateIdentityProviderRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CreateIdentityProviderRequest createIdentityProviderRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( createIdentityProviderRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createIdentityProviderRequest . getUserPoolId ( ) , USERPOOLID_BINDING ) ; protocolMarshaller . marshall ( createIdentityProviderRequest . getProviderName ...
public class AdaptiveTableLayout { /** * When used adapter with IMMUTABLE data , returns rows position modifications * ( old position - > new position ) * @ return row position modification map . Includes only modified row numbers */ @ SuppressWarnings ( "unchecked" ) public Map < Integer , Integer > getLinkedAdapt...
return mAdapter instanceof LinkedAdaptiveTableAdapterImpl ? ( ( LinkedAdaptiveTableAdapterImpl ) mAdapter ) . getRowsModifications ( ) : Collections . < Integer , Integer > emptyMap ( ) ;
public class MergeResources { /** * Workaround for https : / / issuetracker . google . com / 67418335 */ @ Override @ Input public String getCombinedInput ( ) { } }
return new CombinedInput ( super . getCombinedInput ( ) ) . add ( "dataBindingLayoutInfoOutFolder" , null ) . add ( "publicFile" , getPublicFile ( ) ) . add ( "blameLogFolder" , getBlameLogFolder ( ) ) . add ( "mergedNotCompiledResourcesOutputDirectory" , null ) . toString ( ) ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link MultiPointPropertyType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link MultiPointPropertyType } ...
return new JAXBElement < MultiPointPropertyType > ( _MultiPosition_QNAME , MultiPointPropertyType . class , null , value ) ;
public class Configuration { /** * Returns the class associated with the given key as a string . * @ param < T > The type of the class to return . * @ param key The key pointing to the associated value * @ param defaultValue The optional default value returned if no entry exists * @ param classLoader The class ...
Object o = getRawValue ( key ) ; if ( o == null ) { return ( Class < T > ) defaultValue ; } if ( o . getClass ( ) == String . class ) { return ( Class < T > ) Class . forName ( ( String ) o , true , classLoader ) ; } LOG . warn ( "Configuration cannot evaluate value " + o + " as a class name" ) ; return ( Class < T > )...
public class EitherLens { /** * Convenience static factory method for creating a lens over left values , wrapping them in a { @ link Maybe } . When * setting , a { @ link Maybe # nothing ( ) } value means to leave the { @ link Either } unaltered , where as a * { @ link Maybe # just } value replaces the either with ...
return simpleLens ( CoProduct2 :: projectA , ( lOrR , maybeL ) -> maybeL . < Either < L , R > > fmap ( Either :: left ) . orElse ( lOrR ) ) ;
public class ListDeviceEventsRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ListDeviceEventsRequest listDeviceEventsRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( listDeviceEventsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listDeviceEventsRequest . getDeviceArn ( ) , DEVICEARN_BINDING ) ; protocolMarshaller . marshall ( listDeviceEventsRequest . getEventType ( ) , EVENTTYPE_BINDING...
public class IfcPropertySetDefinitionImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ SuppressWarnings ( "unchecked" ) @ Override public EList < IfcTypeObject > getDefinesType ( ) { } }
return ( EList < IfcTypeObject > ) eGet ( Ifc4Package . Literals . IFC_PROPERTY_SET_DEFINITION__DEFINES_TYPE , true ) ;
public class SpatialRuleLookupArray { /** * This method adds the container if no such rule container exists in this lookup and returns the index otherwise . */ private int addRuleContainer ( SpatialRuleContainer container ) { } }
int newIndex = this . ruleContainers . indexOf ( container ) ; if ( newIndex >= 0 ) return newIndex ; newIndex = ruleContainers . size ( ) ; if ( newIndex >= 255 ) throw new IllegalStateException ( "No more spatial rule container fit into this lookup as 255 combination of ruleContainers reached" ) ; this . ruleContaine...
public class AStarPathUtil { /** * Return a heuristic estimate of the cost to get from < code > ( ax , ay ) < / code > to * < code > ( bx , by ) < / code > . */ protected static int getDistanceEstimate ( int ax , int ay , int bx , int by ) { } }
// we ' re doing all of our cost calculations based on geometric distance times ten int xsq = bx - ax ; int ysq = by - ay ; return ( int ) ( ADJACENT_COST * Math . sqrt ( xsq * xsq + ysq * ysq ) ) ;
public class JSONArray { /** * Returns the value at { @ code index } if it exists and is a boolean or can be coerced * to a boolean . * @ param index the index to get the value from * @ return the value at { @ code index } * @ throws JSONException if the value at { @ code index } doesn ' t exist or cannot be ...
Object object = get ( index ) ; Boolean result = JSON . toBoolean ( object ) ; if ( result == null ) { throw JSON . typeMismatch ( index , object , "boolean" ) ; } return result ;
public class StringWalker { /** * Advances this { @ link StringWalker } to the { @ code y } coordinate . < br > * Sets the character to the * @ param y the y * @ return true , if successful */ public boolean walkToY ( int y ) { } }
if ( this . y + lineHeight > y ) return true ; while ( nextLine ( ) ) if ( this . y + lineHeight > y ) return true ; return false ;
public class ManagedConcurrentValueMap { /** * Returns the value stored for the given key at the point of call . * @ param key a non null key * @ return the value stored in the map for the given key */ public V get ( K key ) { } }
ManagedReference < V > ref = internalMap . get ( key ) ; if ( ref != null ) return ref . get ( ) ; return null ;
public class DescribeClientPropertiesResult { /** * Information about the specified Amazon WorkSpaces clients . * @ return Information about the specified Amazon WorkSpaces clients . */ public java . util . List < ClientPropertiesResult > getClientPropertiesList ( ) { } }
if ( clientPropertiesList == null ) { clientPropertiesList = new com . amazonaws . internal . SdkInternalList < ClientPropertiesResult > ( ) ; } return clientPropertiesList ;
public class DeploymentMarshaller { /** * Marshall the given parameter object . */ public void marshall ( Deployment deployment , ProtocolMarshaller protocolMarshaller ) { } }
if ( deployment == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deployment . getCreatedAt ( ) , CREATEDAT_BINDING ) ; protocolMarshaller . marshall ( deployment . getDeploymentArn ( ) , DEPLOYMENTARN_BINDING ) ; protocolMarshaller . marsh...
public class ServletContainer { /** * Registers a servlet . * @ param servletClass servlet class to be registered . This class must be annotated with { @ linkplain WebServlet } . * @ return this . */ public final SC registerServlet ( Class < ? extends HttpServlet > servletClass ) { } }
WebServlet webServlet = servletClass . getAnnotation ( WebServlet . class ) ; if ( webServlet == null ) throw new IllegalArgumentException ( String . format ( "Missing annotation '%s' for class '%s'" , WebFilter . class . getName ( ) , servletClass . getName ( ) ) ) ; String [ ] urlPatterns = webServlet . value ( ) ; i...
public class CPAttachmentFileEntryLocalServiceUtil { /** * Returns the cp attachment file entry matching the UUID and group . * @ param uuid the cp attachment file entry ' s UUID * @ param groupId the primary key of the group * @ return the matching cp attachment file entry , or < code > null < / code > if a matc...
return getService ( ) . fetchCPAttachmentFileEntryByUuidAndGroupId ( uuid , groupId ) ;
public class HtmlUtils { /** * Escape the escapes ( " ) and ( \ \ ) with escapes . These characters will be replaced with * ( & quot ) and ( \ \ \ \ ) respectively . * @ param value the string to escape * @ return the escaped string */ public static String escapeEscapes ( String value ) { } }
assert ( value != null ) ; InternalStringBuilder sb = new InternalStringBuilder ( value . length ( ) ) ; for ( int i = 0 ; i < value . length ( ) ; i ++ ) { char c = value . charAt ( i ) ; if ( c == '"' ) { sb . append ( "&quot;" ) ; continue ; } if ( c == '\\' ) { sb . append ( "\\\\" ) ; continue ; } sb . append ( c ...
public class Time { /** * Generate Time Reports for a Specific Team ( hide financial info ) * @ param company Company ID * @ param team Team ID * @ param params Parameters * @ throwsJSONException If error occurred * @ return { @ link JSONObject } */ public JSONObject getByTeamLimited ( String company , String...
return _getByType ( company , team , null , params , true ) ;
public class AdjustedRangeInputStream { /** * / * ( non - Javadoc ) * @ see java . io . InputStream # read ( byte [ ] , int , int ) */ @ Override public int read ( byte [ ] buffer , int offset , int length ) throws IOException { } }
abortIfNeeded ( ) ; int numBytesRead ; // If no more bytes are available , do not read any bytes into the buffer if ( this . virtualAvailable <= 0 ) { numBytesRead = - 1 ; } else { // If the desired read length is greater than the number of available bytes , // shorten the read length to the number of available bytes ....
public class DateKeySerializer { /** * { @ inheritDoc } */ @ Override protected String doSerialize ( Date value , JsonSerializationContext ctx ) { } }
if ( ctx . isWriteDateKeysAsTimestamps ( ) ) { return Long . toString ( value . getTime ( ) ) ; } else { return DateFormat . format ( value ) ; }
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EEnum getIfcGasTerminalTypeEnum ( ) { } }
if ( ifcGasTerminalTypeEnumEEnum == null ) { ifcGasTerminalTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 843 ) ; } return ifcGasTerminalTypeEnumEEnum ;
public class ResultUtils { /** * Check converted result compatibility with required type . * @ param result result object * @ param targetType target type * @ throws ResultConversionException if result doesn ' t match required type */ public static void check ( final Object result , final Class < ? > targetType )...
if ( result != null && ! targetType . isAssignableFrom ( result . getClass ( ) ) ) { // note : conversion logic may go wrong ( e . g . because converter expect collection input mostly and may // not work correctly for single element ) , but anyway overall conversion would be considered failed . throw new ResultConversi...
public class Tile { /** * Defines the behavior of the visualization where the needle / bar should * start from 0 instead of the minValue . This is especially useful when * working with a gauge that has a range with a negative minValue * @ param IS _ TRUE */ public void setStartFromZero ( final boolean IS_TRUE ) {...
if ( null == startFromZero ) { _startFromZero = IS_TRUE ; setValue ( IS_TRUE && getMinValue ( ) < 0 ? 0 : getMinValue ( ) ) ; fireTileEvent ( REDRAW_EVENT ) ; } else { startFromZero . set ( IS_TRUE ) ; }
public class ListSubscriptionDefinitionsRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ListSubscriptionDefinitionsRequest listSubscriptionDefinitionsRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( listSubscriptionDefinitionsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( listSubscriptionDefinitionsRequest . getMaxResults ( ) , MAXRESULTS_BINDING ) ; protocolMarshaller . marshall ( listSubscriptionDefinitionsRequest . g...
public class ResourceGroovyMethods { /** * Creates a new BufferedWriter for this file , passes it to the closure , and * ensures the stream is flushed and closed after the closure returns . * @ param file a File * @ param closure a closure * @ return the value returned by the closure * @ throws IOException if...
return IOGroovyMethods . withWriter ( newWriter ( file ) , closure ) ;
public class AnnotationMethodResolver { /** * Find a < em > single < / em > Method on the Class of the given candidate object that * contains the annotation type for which this resolver is searching . * @ param candidate the instance whose Class will be checked for the annotation * @ return a single matching Meth...
Assert . notNull ( candidate , "candidate object must not be null" ) ; Class < ? > targetClass = AopUtils . getTargetClass ( candidate ) ; if ( targetClass == null ) { targetClass = candidate . getClass ( ) ; } return this . findMethod ( targetClass ) ;
public class AnalysisResults { /** * Get the number of performed runs of the given search when solving the given problem . * @ param problemID ID of the problem * @ param searchID ID of the applied search * @ return number of performed runs of the given search when solving the given problem * @ throws UnknownID...
if ( ! results . containsKey ( problemID ) ) { throw new UnknownIDException ( "Unknown problem ID " + problemID + "." ) ; } if ( ! results . get ( problemID ) . containsKey ( searchID ) ) { throw new UnknownIDException ( "Unknown search ID " + searchID + " for problem " + problemID + "." ) ; } return results . get ( pr...
public class McGregor { /** * Start McGregor search and extend the mappings if possible . * @ param largestMappingSize * @ param presentMapping * @ throws IOException */ public void startMcGregorIteration ( int largestMappingSize , Map < Integer , Integer > presentMapping ) throws IOException { } }
this . globalMCSSize = ( largestMappingSize / 2 ) ; List < String > cTab1Copy = McGregorChecks . generateCTabCopy ( source ) ; List < String > cTab2Copy = McGregorChecks . generateCTabCopy ( target ) ; // find mapped atoms of both molecules and store these in mappedAtoms List < Integer > mappedAtoms = new ArrayList < I...
public class Drawable { /** * Load an animated sprite , giving horizontal and vertical frames ( sharing the same surface ) . It may be useful in * case of multiple animated sprites . * { @ link SpriteAnimated # load ( ) } must not be called as surface has already been loaded . * @ param surface The surface refere...
return new SpriteAnimatedImpl ( surface , horizontalFrames , verticalFrames ) ;
public class LogTable { /** * Log this transaction . * @ param strTrxType The transaction type . */ public void logTrx ( FieldList record , String strTrxType ) { } }
BaseBuffer buffer = this . getBuffer ( ) ; buffer . clearBuffer ( ) ; buffer . addHeader ( strTrxType ) ; buffer . addHeader ( record . getTableNames ( false ) ) ; buffer . addHeader ( record . getCounterField ( ) . toString ( ) ) ; if ( ProxyConstants . REMOVE != strTrxType ) buffer . fieldsToBuffer ( record ) ; Objec...
public class GetWorkflowApprovalRequests { /** * Runs the example . * @ param adManagerServices the services factory . * @ param session the session . * @ throws ApiException if the API request failed with one or more service errors . * @ throws RemoteException if the API request failed due to other errors . */...
WorkflowRequestServiceInterface workflowRequestService = adManagerServices . get ( session , WorkflowRequestServiceInterface . class ) ; // Create a statement to select workflow requests . StatementBuilder statementBuilder = new StatementBuilder ( ) . where ( "type = :type" ) . orderBy ( "id ASC" ) . limit ( StatementB...
public class TypeSimplifier { /** * Finds the top - level types for all the declared types ( classes and interfaces ) in the given * { @ code Set < TypeMirror > } . * < p > The returned set contains only top - level types . If we reference { @ code java . util . Map . Entry } * then the returned set will contain ...
return types . stream ( ) . map ( typeMirror -> MoreElements . asType ( typeUtil . asElement ( typeMirror ) ) ) . map ( typeElement -> topLevelType ( typeElement ) . asType ( ) ) . collect ( toCollection ( TypeMirrorSet :: new ) ) ;
public class GenericBoJdbcDao { /** * Fetch an existing BO from storage by id . * @ param conn * @ param id * @ return */ protected T get ( Connection conn , BoId id ) { } }
if ( id == null || id . values == null || id . values . length == 0 ) { return null ; } final String cacheKey = cacheKey ( id ) ; T bo = getFromCache ( getCacheName ( ) , cacheKey , typeClass ) ; if ( bo == null ) { bo = executeSelectOne ( rowMapper , conn , calcSqlSelectOne ( id ) , id . values ) ; putToCache ( getCac...
public class HttpServer { /** * Configure the * { @ link ServerCookieEncoder } ; { @ link ServerCookieDecoder } will be * chosen based on the encoder * @ param encoder the preferred ServerCookieEncoder * @ return a new { @ link HttpServer } */ public final HttpServer cookieCodec ( ServerCookieEncoder encoder ) ...
ServerCookieDecoder decoder = encoder == ServerCookieEncoder . LAX ? ServerCookieDecoder . LAX : ServerCookieDecoder . STRICT ; return tcpConfiguration ( tcp -> tcp . bootstrap ( b -> HttpServerConfiguration . cookieCodec ( b , encoder , decoder ) ) ) ;
public class ExpressionTagQueryParser { /** * Grammar analysis */ @ Override public void enterObject ( TagQueryParser . ObjectContext ctx ) { } }
Stack < String > objectStack = new Stack < > ( ) ; stack . push ( objectStack ) ; String eval ; if ( ctx . getParent ( ) . getParent ( ) == null && ctx . tagexp ( ) != null ) { eval = getEval ( ctx . tagexp ( ) ) ; evalsPostfix . add ( eval ) ; } if ( ctx . logical_operator ( ) != null ) { TagexpContext left = ctx . ob...
public class DeflatingStreamSinkConduit { /** * The we are in the flushing state then we flush to the underlying stream , otherwise just return true * @ return false if there is still more to flush */ private boolean performFlushIfRequired ( ) throws IOException { } }
if ( anyAreSet ( state , FLUSHING_BUFFER ) ) { final ByteBuffer [ ] bufs = new ByteBuffer [ additionalBuffer == null ? 1 : 2 ] ; long totalLength = 0 ; bufs [ 0 ] = currentBuffer . getBuffer ( ) ; totalLength += bufs [ 0 ] . remaining ( ) ; if ( additionalBuffer != null ) { bufs [ 1 ] = additionalBuffer ; totalLength +...
public class MkCoPTree { /** * Adjusts the knn distance in the subtree of the specified root entry . * @ param entry the root entry of the current subtree * @ param knnLists a map of knn lists for each leaf entry */ private void adjustApproximatedKNNDistances ( MkCoPEntry entry , Map < DBID , KNNList > knnLists ) {...
MkCoPTreeNode < O > node = getNode ( entry ) ; if ( node . isLeaf ( ) ) { for ( int i = 0 ; i < node . getNumEntries ( ) ; i ++ ) { MkCoPLeafEntry leafEntry = ( MkCoPLeafEntry ) node . getEntry ( i ) ; approximateKnnDistances ( leafEntry , knnLists . get ( leafEntry . getRoutingObjectID ( ) ) ) ; } } else { for ( int i...
public class Resolve { /** * Select the best method for a call site among two choices . * @ param env The current environment . * @ param site The original type from where the * selection takes place . * @ param argtypes The invocation ' s value arguments , * @ param typeargtypes The invocation ' s type argum...
if ( sym . kind == ERR || ! sym . isInheritedIn ( site . tsym , types ) ) { return bestSoFar ; } else if ( useVarargs && ( sym . flags ( ) & VARARGS ) == 0 ) { return bestSoFar . kind >= ERRONEOUS ? new BadVarargsMethod ( ( ResolveError ) bestSoFar . baseSymbol ( ) ) : bestSoFar ; } Assert . check ( sym . kind < AMBIGU...
public class SolarisVirtualMachine { /** * The door is attached to . java _ pid < pid > in the temporary directory . */ private int openDoor ( int pid ) throws IOException { } }
String path = tmpdir + "/.java_pid" + pid ; ; fd = open ( path ) ; // Check that the file owner / permission to avoid attaching to // bogus process try { checkPermissions ( path ) ; } catch ( IOException ioe ) { close ( fd ) ; throw ioe ; } return fd ;
public class SnsAPI { /** * 刷新access _ token ( 第三方平台开发 ) * @ param appid appid * @ param refresh _ token refresh _ token * @ param component _ appid 服务开发商的appid * @ param component _ access _ token 服务开发方的access _ token * @ return SnsToken */ public static SnsToken oauth2ComponentRefreshToken ( String appid , ...
HttpUriRequest httpUriRequest = RequestBuilder . post ( ) . setUri ( BASE_URI + "/sns/oauth2/component/refresh_token" ) . addParameter ( "appid" , appid ) . addParameter ( "refresh_token" , refresh_token ) . addParameter ( "grant_type" , "refresh_token" ) . addParameter ( "component_appid" , component_appid ) . addPara...
public class UserRoleDAO { /** * Note : Use Sparingly . Cassandra ' s forced key structure means this will perform fairly poorly * @ param trans * @ param role * @ return * @ throws DAOException */ public Result < List < Data > > readByRole ( AuthzTrans trans , String role ) { } }
return psByRole . read ( trans , R_TEXT + " by Role " + role , new Object [ ] { role } ) ;
public class Organizer { public static < K , V > Map < K , V > toMap ( Mappable < K , V > [ ] aMappables ) { } }
if ( aMappables == null ) throw new IllegalArgumentException ( "aMappables required in Organizer" ) ; Map < K , V > map = new HashMap < K , V > ( aMappables . length ) ; Mappable < K , V > mappable = null ; for ( int i = 0 ; i < aMappables . length ; i ++ ) { mappable = aMappables [ i ] ; map . put ( ( K ) mappable . g...
public class AddressDivisionGroupingBase { /** * gets the count of addresses that this address division grouping may represent * If this address division grouping is not a subnet block of multiple addresses or has no range of values , then there is only one such address . * @ return */ @ Override public BigInteger ...
BigInteger cached = cachedCount ; if ( cached == null ) { cachedCount = cached = getCountImpl ( ) ; } return cached ;
public class AbstractMessageHandler { /** * Get the active operation . * @ param id the active operation id * @ return the active operation , { @ code null } if if there is no registered operation */ protected < T , A > ActiveOperation < T , A > getActiveOperation ( final Integer id ) { } }
// noinspection unchecked return ( ActiveOperation < T , A > ) activeRequests . get ( id ) ;
public class MethodCompiler { /** * Returns the name of local variable at index * @ param index * @ return */ public String getLocalName ( int index ) { } }
VariableElement lv = getLocalVariable ( index ) ; return lv . getSimpleName ( ) . toString ( ) ;
public class CacheOnDisk { /** * return the sleep time in msec */ protected long calculateSleepTime ( ) { } }
Calendar c = new GregorianCalendar ( ) ; int currentHour = c . get ( Calendar . HOUR_OF_DAY ) ; int currentMin = c . get ( Calendar . MINUTE ) ; int currentSec = c . get ( Calendar . SECOND ) ; long stime = SECONDS_FOR_24_HOURS - ( ( currentHour * 60 + currentMin ) * 60 + currentSec ) + cleanupHour * 60 * 60 ; if ( sti...
public class DescribeDeploymentJobResult { /** * A list of robot deployment summaries . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setRobotDeploymentSummary ( java . util . Collection ) } or * { @ link # withRobotDeploymentSummary ( java . util . Colle...
if ( this . robotDeploymentSummary == null ) { setRobotDeploymentSummary ( new java . util . ArrayList < RobotDeployment > ( robotDeploymentSummary . length ) ) ; } for ( RobotDeployment ele : robotDeploymentSummary ) { this . robotDeploymentSummary . add ( ele ) ; } return this ;
public class CmsADEConfigData { /** * Gets the formatters from the schema . < p > * @ param cms the current CMS context * @ param res the resource for which the formatters should be retrieved * @ return the formatters from the schema */ protected CmsFormatterConfiguration getFormattersFromSchema ( CmsObject cms ,...
try { return OpenCms . getResourceManager ( ) . getResourceType ( res . getTypeId ( ) ) . getFormattersForResource ( cms , res ) ; } catch ( CmsException e ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; return CmsFormatterConfiguration . EMPTY_CONFIGURATION ; }
public class Timestamp { /** * Returns a Timestamp , precise to the second , with a given local offset . * This is equivalent to the corresponding Ion value * { @ code YYYY - MM - DDThh : mm : ss + - oo : oo } , where { @ code oo : oo } represents the * hour and minutes of the local offset from UTC . * @ param ...
return new Timestamp ( year , month , day , hour , minute , second , offset ) ;
public class PdfSignatureAppearance { /** * Gets the main appearance layer . * Consult < A HREF = " http : / / partners . adobe . com / asn / developer / pdfs / tn / PPKAppearances . pdf " > PPKAppearances . pdf < / A > * for further details . * @ return the main appearance layer * @ throws DocumentException on...
if ( isInvisible ( ) ) { PdfTemplate t = new PdfTemplate ( writer ) ; t . setBoundingBox ( new Rectangle ( 0 , 0 ) ) ; writer . addDirectTemplateSimple ( t , null ) ; return t ; } if ( app [ 0 ] == null ) { PdfTemplate t = app [ 0 ] = new PdfTemplate ( writer ) ; t . setBoundingBox ( new Rectangle ( 100 , 100 ) ) ; wri...
public class CreateApplicationBundleMojo { /** * Writes an Info . plist file describing this bundle . * @ param infoPlist The file to write Info . plist contents to * @ param files A list of file names of the jar files to add in $ JAVAROOT * @ throws MojoExecutionException */ private void writeInfoPlist ( File in...
VelocityContext velocityContext = new VelocityContext ( ) ; velocityContext . put ( "mainClass" , mainClass ) ; velocityContext . put ( "cfBundleExecutable" , javaApplicationStub . getName ( ) ) ; velocityContext . put ( "vmOptions" , vmOptions ) ; velocityContext . put ( "bundleName" , bundleName ) ; velocityContext ....
public class FbBot { /** * Checks if there ' s any registered { @ link FbBotMillEvent } for the incoming * callback . If there ' s any , then the callback is handled . The chain will be * processed according to the { @ link BotMillPolicy } followed by this bot . If * the policy is { @ link BotMillPolicy # FIRST _...
for ( ActionFrame f : this . actionFrameList ) { // If the policy is FIRST _ ONLY stop processing the chain at the // first trigger . this . envelope = new MessageEnvelope ( ) ; if ( f . getReplies ( ) != null && f . getReplies ( ) . size ( ) > 0 ) { if ( f . processMultipleReply ( envelope ) && this . botMillPolicy . ...
public class MtasDataDoubleAdvanced { /** * ( non - Javadoc ) * @ see * mtas . codec . util . collector . MtasDataCollector # stringToBoundary ( java . lang . * String , java . lang . Integer ) */ @ Override protected Double stringToBoundary ( String boundary , Integer segmentNumber ) throws IOException { } }
if ( segmentRegistration . equals ( SEGMENT_BOUNDARY_ASC ) || segmentRegistration . equals ( SEGMENT_BOUNDARY_DESC ) ) { if ( segmentNumber == null ) { return Double . valueOf ( boundary ) ; } else { return Double . valueOf ( boundary ) / segmentNumber ; } } else { throw new IOException ( "not available for segmentRegi...
public class ElemExtensionDecl { /** * Get a function at a given index in this extension element * @ param i Index of function to get * @ return Name of Function at given index * @ throws ArrayIndexOutOfBoundsException */ public String getFunction ( int i ) throws ArrayIndexOutOfBoundsException { } }
if ( null == m_functions ) throw new ArrayIndexOutOfBoundsException ( ) ; return ( String ) m_functions . elementAt ( i ) ;
public class StateFilter { /** * / * ( non - Javadoc ) * @ see tuwien . auto . calimero . buffer . Configuration . NetworkFilter # init * ( tuwien . auto . calimero . buffer . Configuration ) */ public void init ( Configuration c ) { } }
final DatapointModel m = c . getDatapointModel ( ) ; if ( m != null ) createReferences ( m ) ;
public class CanonicalPlanner { /** * Create a JOIN or SOURCE node that contain the source information . * @ param context the execution context * @ param source the source to be processed ; may not be null * @ param usedSelectors the map of { @ link SelectorName } s ( aliases or names ) used in the query . * @...
if ( source instanceof Selector ) { // No join required . . . assert source instanceof AllNodes || source instanceof NamedSelector ; Selector selector = ( Selector ) source ; PlanNode node = new PlanNode ( Type . SOURCE ) ; if ( selector . hasAlias ( ) ) { node . addSelector ( selector . alias ( ) ) ; node . setPropert...
public class JsonDeserializer { /** * Deserialize the null value . This method allows children to override the default behaviour . * @ param reader { @ link JsonReader } used to read the JSON input * @ param ctx Context for the full deserialization process * @ param params Parameters for this deserialization * ...
reader . skipValue ( ) ; return null ;
public class DictionaryCompressionOptimizer { /** * Choose a dictionary column to convert to direct encoding . We do this by predicting the compression ration * of the stripe if a singe column is flipped to direct . So for each column , we try to predict the row count * when we will hit a stripe flush limit if that...
checkState ( ! directConversionCandidates . isEmpty ( ) ) ; int totalNonDictionaryBytesPerRow = totalNonDictionaryBytes / stripeRowCount ; // rawBytes = sum of the length of every row value ( without dictionary encoding ) // dictionaryBytes = sum of the length of every entry in the dictionary // indexBytes = bytes used...
public class McCodeGen { /** * Output class import * @ param def definition * @ param out Writer * @ throws IOException ioException */ @ Override public void writeImport ( Definition def , Writer out ) throws IOException { } }
out . write ( "package " + def . getRaPackage ( ) + ";\n\n" ) ; if ( def . isSupportEis ( ) ) { out . write ( "import java.io.IOException;\n" ) ; } out . write ( "import java.io.PrintWriter;\n" ) ; if ( def . isSupportEis ( ) ) { out . write ( "import java.net.Socket;\n" ) ; } out . write ( "import java.util.ArrayList;...
public class AWSStorageGatewayClient { /** * Activates the gateway you previously deployed on your host . In the activation process , you specify information * such as the region you want to use for storing snapshots or tapes , the time zone for scheduled snapshots the * gateway snapshot schedule window , an activa...
request = beforeClientExecution ( request ) ; return executeActivateGateway ( request ) ;
public class StopWords { /** * Is stop word . * @ param text the text * @ return the boolean */ public boolean isStopWord ( HString text ) { } }
if ( text == null ) { return true ; } else if ( text . isInstance ( Types . TOKEN ) ) { return isTokenStopWord ( Cast . as ( text ) ) ; } return text . tokens ( ) . stream ( ) . allMatch ( this :: isTokenStopWord ) ;
public class AppServicePlansInner { /** * List all capabilities of an App Service plan . * List all capabilities of an App Service plan . * @ param resourceGroupName Name of the resource group to which the resource belongs . * @ param name Name of the App Service plan . * @ throws IllegalArgumentException throw...
if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( name == null ) { throw new IllegalArgumentException ( "Parameter name is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == null ) { throw new Ille...
public class AnnotatedJacksonModule { /** * A static method to create an instance of { @ link AnnotatedJacksonModule } . * @ param clientBindingAnnotation a { @ link BindingAnnotation } to which the { @ link ObjectMapper } * need to be annotated with . * @ return an instance of { @ link AnnotatedJacksonModule } *...
if ( clientBindingAnnotation == null ) { throw new NullPointerException ( "clientBindingAnnotation:null" ) ; } BindingAnnotations . checkIsBindingAnnotation ( clientBindingAnnotation ) ; return new AnnotatedJacksonModule ( clientBindingAnnotation ) ;
public class CustomerChangeData { /** * Gets the changedFeeds value for this CustomerChangeData . * @ return changedFeeds * A list of feed changes for the customer as specified in the * selector . If a feed is included in * the selector then it will be included in this list , * even if the feed did not change ....
return changedFeeds ;
public class hqlParser { /** * hql . g : 584:1 : atom : primaryExpression ( DOT ^ identifier ( options { greedy = true ; } : ( op = OPEN ^ exprList CLOSE ! ) ) ? | lb = OPEN _ BRACKET ^ expression CLOSE _ BRACKET ! ) * ; */ public final hqlParser . atom_return atom ( ) throws RecognitionException { } }
hqlParser . atom_return retval = new hqlParser . atom_return ( ) ; retval . start = input . LT ( 1 ) ; CommonTree root_0 = null ; Token op = null ; Token lb = null ; Token DOT236 = null ; Token CLOSE239 = null ; Token CLOSE_BRACKET241 = null ; ParserRuleReturnScope primaryExpression235 = null ; ParserRuleReturnScope id...
public class XMLHelper { /** * Helper program : Extracts the specified XPATH expression * from an XML - String . * @ param node the node * @ param xString the x path * @ return NodeList * @ throws XPathExpressionException the x path expression exception */ public static NodeList getElementsB ( Node node , Str...
XPathExpression xPath = compileX ( xString ) ; return ( NodeList ) xPath . evaluate ( node , XPathConstants . NODESET ) ;
public class URIDestinationCreator { /** * Convert escaped backslash to single backslash . * This method de - escapes double backslashes whilst at the same time * checking that there are no single backslahes in the input string . * @ param input The string to be processed * @ return The modified String * @ th...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "unescapeBackslash" , input ) ; String result = input ; // If there are no backslashes then don ' t bother creating the buffer etc . if ( input . indexOf ( "\\" ) != - 1 ) { int startValue = 0 ; StringBuffer tmp = new...
public class CmsBreadCrumbConnector { /** * Appends a bread crumb entry . < p > * @ param buffer the string buffer to append to * @ param target the target state * @ param label the entry label */ private void appendBreadCrumbEntry ( StringBuffer buffer , String target , String label ) { } }
if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( target ) ) { buffer . append ( "<a href=\"#!" ) . append ( target ) . append ( "\" title=\"" + CmsDomUtil . escapeXml ( label ) + "\"><span>" ) . append ( label ) . append ( "</span></a>" ) ; } else { buffer . append ( "<span class=\"o-tools-breadcrumb-active\" title=\"...
public class Flushables { /** * Flush a { @ link Flushable } , with control over whether an { @ code IOException } may be thrown . * < p > If { @ code swallowIOException } is true , then we don ' t rethrow { @ code IOException } , but merely * log it . * @ param flushable the { @ code Flushable } object to be flu...
try { flushable . flush ( ) ; } catch ( IOException e ) { if ( swallowIOException ) { logger . log ( Level . WARNING , "IOException thrown while flushing Flushable." , e ) ; } else { throw e ; } }
public class DirContextDnsResolver { /** * Perform hostname to address resolution . * @ param host the hostname , must not be empty or { @ literal null } . * @ return array of one or more { @ link InetAddress adresses } * @ throws UnknownHostException */ @ Override public InetAddress [ ] resolve ( String host ) t...
if ( ipStringToBytes ( host ) != null ) { return new InetAddress [ ] { InetAddress . getByAddress ( ipStringToBytes ( host ) ) } ; } List < InetAddress > inetAddresses = new ArrayList < > ( ) ; try { resolve ( host , inetAddresses ) ; } catch ( NamingException e ) { throw new UnknownHostException ( String . format ( "C...
public class SIPFramer { /** * Helper function that checks whether or not the data could be a SIP message . It is a very * basic check but if it doesn ' t go through it definitely is not a SIP message . * @ param data * @ return */ public static boolean couldBeSipMessage ( final Buffer data ) throws IOException {...
if ( data . getReadableBytes ( ) < 4 ) { return false ; } final byte a = data . getByte ( 0 ) ; final byte b = data . getByte ( 1 ) ; final byte c = data . getByte ( 2 ) ; final byte d = data . getByte ( 3 ) ; return a == 'S' && b == 'I' && c == 'P' || // response a == 'I' && b == 'N' && c == 'V' && d == 'I' || // INVI...
public class AppServiceEnvironmentsInner { /** * Get all worker pools of an App Service Environment . * Get all worker pools of an App Service Environment . * @ param nextPageLink The NextLink from the previous successful call to List operation . * @ throws IllegalArgumentException thrown if parameters fail the v...
return listWorkerPoolsNextWithServiceResponseAsync ( nextPageLink ) . map ( new Func1 < ServiceResponse < Page < WorkerPoolResourceInner > > , Page < WorkerPoolResourceInner > > ( ) { @ Override public Page < WorkerPoolResourceInner > call ( ServiceResponse < Page < WorkerPoolResourceInner > > response ) { return respo...
public class TasksResult { /** * Returns the tags for the specified priority . * @ param priority * the priority * @ return the tags for the specified priority */ public final String getTags ( final Priority priority ) { } }
if ( priority == Priority . HIGH ) { return highTags ; } else if ( priority == Priority . NORMAL ) { return normalTags ; } else { return lowTags ; }
public class ConfigurationUtils { /** * Get a global integer property . This method will first try to get the value from an * environment variable and if that does not exist it will look up a system property . * @ param key Name of the variable * @ param defaultValue Returned if neither env var nor system propert...
try { String value = System . getenv ( formatEnvironmentVariable ( key ) ) ; if ( value == null ) { return tryGetIntegerProperty ( key , defaultValue ) ; } else { return Integer . parseInt ( value ) ; } } catch ( SecurityException | NumberFormatException e ) { logger . error ( "Could not get value of global property {}...
public class XMLEmitter { /** * XML text node . * @ param aText * The contained text array * @ param nOfs * Offset into the array where to start * @ param nLen * Number of chars to use , starting from the provided offset . */ public void onText ( @ Nonnull final char [ ] aText , @ Nonnegative final int nOfs...
onText ( aText , nOfs , nLen , true ) ;
public class LazyGroupMember { /** * Attempts to load the lazy command from the command registry of the parent command group , but * only if it hasn ' t already been loaded . */ private void loadIfNecessary ( ) { } }
if ( loadedMember != null ) { return ; } CommandRegistry commandRegistry = parentGroup . getCommandRegistry ( ) ; Assert . isTrue ( parentGroup . getCommandRegistry ( ) != null , "Command registry must be set for group '" + parentGroup . getId ( ) + "' in order to load lazy command '" + lazyCommandId + "'." ) ; if ( co...
public class AbstractSarlMojo { /** * Extract the dependencies that are declared for a Maven plugin . * This function reads the list of the dependencies in the configuration * resource file with { @ link MavenHelper # getConfig ( String ) } . * The key given to { @ link MavenHelper # getConfig ( String ) } is *...
final List < Dependency > dependencies = new ArrayList < > ( ) ; final Pattern pattern = Pattern . compile ( "^[ \t\n\r]*([^: \t\n\t]+)[ \t\n\r]*:[ \t\n\r]*([^: \t\n\t]+)[ \t\n\r]*$" ) ; // $ NON - NLS - 1 $ final String rawDependencies = this . mavenHelper . getConfig ( configurationKeyPrefix + ".dependencies" ) ; // ...
public class Log4JLogger { /** * Check whether the Log4j Logger used is enabled for < code > FATAL < / code > * priority . */ public boolean isFatalEnabled ( ) { } }
if ( IS12 ) { return getLogger ( ) . isEnabledFor ( Level . FATAL ) ; } return getLogger ( ) . isEnabledFor ( Level . FATAL ) ;
public class NotificationEffect { /** * ringtone */ public void ringtone ( NotificationEntry entry ) { } }
if ( ! mEnabled ) { Log . w ( TAG , "failed to play ringtone. effect disabled." ) ; return ; } if ( mRingtoneEnabled && mRingtoneAuto && entry . playRingtone && entry . ringtoneUri == null ) { // default ringtone if ( DBG ) Log . d ( TAG , "[default] ringtone" ) ; entry . setRingtone ( mContext , mRingtoneRes ) ; } if ...
public class JavaEscapeUtil { /** * Perform an escape operation , based on String , according to the specified level . */ static String escape ( final String text , final JavaEscapeLevel escapeLevel ) { } }
if ( text == null ) { return null ; } final int level = escapeLevel . getEscapeLevel ( ) ; StringBuilder strBuilder = null ; final int offset = 0 ; final int max = text . length ( ) ; int readOffset = offset ; for ( int i = offset ; i < max ; i ++ ) { final int codepoint = Character . codePointAt ( text , i ) ; /* * Sh...
public class TopicDefinition { /** * / * ( non - Javadoc ) * @ see net . timewalker . ffmq4 . management . destination . AbstractDestinationDescriptor # initFromSettings ( net . timewalker . ffmq4 . utils . Settings ) */ @ Override protected void initFromSettings ( Settings settings ) { } }
super . initFromSettings ( settings ) ; this . subscriberFailurePolicy = settings . getIntProperty ( "subscriberFailurePolicy" , FFMQSubscriberPolicy . SUBSCRIBER_POLICY_LOG ) ; this . subscriberOverflowPolicy = settings . getIntProperty ( "subscriberOverflowPolicy" , FFMQSubscriberPolicy . SUBSCRIBER_POLICY_LOG ) ; St...
public class ContentRepository { /** * Removes the specified access control entry if the given principal name matches the principal associated with the * entry . * @ param acList * the access control list to remove the entry from * @ param acEntry * the entry to be potentially removed * @ param principalNam...
if ( ANY_WILDCARD . equals ( principalName ) || acEntry . getPrincipal ( ) . getName ( ) . equals ( principalName ) ) { acList . removeAccessControlEntry ( acEntry ) ; }