signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class RDBMUserIdentityStore { /** * Gets the PortalUser data store object for the specified user name .
* @ param userName The user ' s name
* @ return A PortalUser object or null if the user doesn ' t exist . */
private PortalUser getPortalUser ( final String userName ) { } } | return jdbcOperations . execute ( ( ConnectionCallback < PortalUser > ) con -> { PortalUser portalUser = null ; PreparedStatement pstmt = null ; try { String query = "SELECT USER_ID FROM UP_USER WHERE USER_NAME=?" ; pstmt = con . prepareStatement ( query ) ; pstmt . setString ( 1 , userName ) ; ResultSet rs = null ; tr... |
public class StreamUtil { /** * Converts the specified property file text to a Properties object .
* @ param propFileText the property file text in standard property file format
* @ return the resulting Properties object
* @ throws java . nio . charset . CharacterCodingException if invalid encoding */
public stat... | CharsetEncoder encoder = Charset . forName ( "ISO-8859-1" ) . newEncoder ( ) . onUnmappableCharacter ( CodingErrorAction . REPORT ) ; byte [ ] bytes = encoder . encode ( CharBuffer . wrap ( propFileText ) ) . array ( ) ; Properties props = new Properties ( ) ; try { props . load ( new ByteArrayInputStream ( bytes ) ) ;... |
public class PersonDirectoryPrincipalResolver { /** * Extracts the id of the user from the provided credential . This method should be overridden by subclasses to
* achieve more sophisticated strategies for producing a principal ID from a credential .
* @ param credential the credential provided by the user .
* @... | LOGGER . debug ( "Extracting credential id based on existing credential [{}]" , credential ) ; val id = credential . getId ( ) ; if ( currentPrincipal != null && currentPrincipal . isPresent ( ) ) { val principal = currentPrincipal . get ( ) ; LOGGER . debug ( "Principal is currently resolved as [{}]" , principal ) ; i... |
public class OperationsInner { /** * Lists all the available Cognitive Services account operations .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ return the observable to the PagedList & lt ; OperationEntityInner & gt ; object */
public Observable < Page < OperationEntityInner > ... | return listWithServiceResponseAsync ( ) . map ( new Func1 < ServiceResponse < Page < OperationEntityInner > > , Page < OperationEntityInner > > ( ) { @ Override public Page < OperationEntityInner > call ( ServiceResponse < Page < OperationEntityInner > > response ) { return response . body ( ) ; } } ) ; |
public class CPOptionUtil { /** * Returns the cp option where uuid = & # 63 ; and groupId = & # 63 ; or throws a { @ link NoSuchCPOptionException } if it could not be found .
* @ param uuid the uuid
* @ param groupId the group ID
* @ return the matching cp option
* @ throws NoSuchCPOptionException if a matching... | return getPersistence ( ) . findByUUID_G ( uuid , groupId ) ; |
public class DiagnosticsInner { /** * Get Site Analysis .
* Get Site Analysis .
* @ param resourceGroupName Name of the resource group to which the resource belongs .
* @ param siteName Site Name
* @ param diagnosticCategory Diagnostic Category
* @ param analysisName Analysis Name
* @ param slot Slot - opti... | return ServiceFuture . fromResponse ( getSiteAnalysisSlotWithServiceResponseAsync ( resourceGroupName , siteName , diagnosticCategory , analysisName , slot ) , serviceCallback ) ; |
public class DatabasesInner { /** * Creates an import operation that imports a bacpac into an existing database . The existing database must be empty .
* @ param resourceGroupName The name of the resource group that contains the resource . You can obtain this value from the Azure Resource Manager API or the portal . ... | return beginCreateImportOperationWithServiceResponseAsync ( resourceGroupName , serverName , databaseName , parameters ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class EraPreference { /** * used in serialization */
void writeToStream ( DataOutput out ) throws IOException { } } | if ( this == DEFAULT ) { out . writeByte ( 0 ) ; } else { out . writeByte ( NON_DEFAULT_MARKER ) ; out . writeUTF ( this . era . name ( ) ) ; out . writeLong ( this . start . get ( EpochDays . MODIFIED_JULIAN_DATE ) ) ; out . writeLong ( this . end . get ( EpochDays . MODIFIED_JULIAN_DATE ) ) ; } |
public class PoolingConnectionFactoryBean { /** * Set the { @ link XAConnectionFactory } directly , instead of calling
* { @ link # setClassName ( String ) } .
* @ param connectionFactory the connection factory to use */
public void setConnectionFactory ( XAConnectionFactory connectionFactory ) { } } | this . connectionFactory = connectionFactory ; setClassName ( DirectXAConnectionFactory . class . getName ( ) ) ; setDriverProperties ( new Properties ( ) ) ; |
public class NodeGroupClient { /** * Updates the node template of the node group .
* < p > Sample code :
* < pre > < code >
* try ( NodeGroupClient nodeGroupClient = NodeGroupClient . create ( ) ) {
* ProjectZoneNodeGroupName nodeGroup = ProjectZoneNodeGroupName . of ( " [ PROJECT ] " , " [ ZONE ] " , " [ NODE ... | SetNodeTemplateNodeGroupHttpRequest request = SetNodeTemplateNodeGroupHttpRequest . newBuilder ( ) . setNodeGroup ( nodeGroup ) . setNodeGroupsSetNodeTemplateRequestResource ( nodeGroupsSetNodeTemplateRequestResource ) . build ( ) ; return setNodeTemplateNodeGroup ( request ) ; |
public class InvokableAnnotatedMethod { /** * Invokes the method on the class of the passed instance , not the declaring
* class . Useful with proxies
* @ param instance The instance to invoke
* @ param manager The Bean manager
* @ return A reference to the instance */
public < X > X invokeOnInstance ( Object i... | final Map < Class < ? > , Method > methods = this . methods ; Method method = methods . get ( instance . getClass ( ) ) ; if ( method == null ) { // the same method may be written to the map twice , but that is ok
// lookupMethod is very slow
Method delegate = annotatedMethod . getJavaMember ( ) ; method = SecurityActi... |
public class GUID { /** * Gets GUID as byte array .
* @ param GUID GUID .
* @ return GUID as byte array . */
public static byte [ ] getGuidAsByteArray ( final String GUID ) { } } | final UUID uuid = UUID . fromString ( GUID ) ; final ByteBuffer buff = ByteBuffer . wrap ( new byte [ 16 ] ) ; buff . putLong ( uuid . getMostSignificantBits ( ) ) ; buff . putLong ( uuid . getLeastSignificantBits ( ) ) ; byte [ ] res = new byte [ ] { buff . get ( 3 ) , buff . get ( 2 ) , buff . get ( 1 ) , buff . get ... |
public class UniversalSingleStorageJdbcQueue { /** * { @ inheritDoc } */
@ Override protected boolean removeFromEphemeralStorage ( Connection conn , IQueueMessage < Long , byte [ ] > _msg ) { } } | if ( ! ( _msg instanceof UniversalIdIntQueueMessage ) ) { throw new IllegalArgumentException ( "This method requires an argument of type [" + UniversalIdIntQueueMessage . class . getName ( ) + "]!" ) ; } UniversalIdIntQueueMessage msg = ( UniversalIdIntQueueMessage ) _msg ; int numRows = getJdbcHelper ( ) . execute ( c... |
public class AmazonElasticFileSystemClient { /** * Returns the description of a specific Amazon EFS file system if either the file system < code > CreationToken < / code >
* or the < code > FileSystemId < / code > is provided . Otherwise , it returns descriptions of all file systems owned by the
* caller ' s AWS ac... | request = beforeClientExecution ( request ) ; return executeDescribeFileSystems ( request ) ; |
public class PropertyConnectionCalculator { /** * Resolves the temporary properties of the given property map . It replaces the temporary properties in the values
* of the given map with the values of the temporary property it replaces . This procedure is done until there are no
* more temporary fields present in t... | boolean temporaryPresent = false ; do { temporaryPresent = false ; for ( Map . Entry < String , Set < String > > entry : map . entrySet ( ) ) { Set < String > newProperties = new HashSet < String > ( ) ; Iterator < String > properties = entry . getValue ( ) . iterator ( ) ; while ( properties . hasNext ( ) ) { String p... |
public class Ci_HelpTable { /** * Processes general help with no specific command requested .
* @ param at table to add help information to
* @ param toHelp the command to help with */
protected void specificHelp ( AsciiTable at , String toHelp ) { } } | if ( this . skbShell . getCommandMap ( ) . containsKey ( toHelp ) ) { // we have a command to show help for , collect all information and present help
SkbShellCommand ssc = this . skbShell . getCommandMap ( ) . get ( toHelp ) . getCommands ( ) . get ( toHelp ) ; TreeMap < String , SkbShellArgument > args = new TreeMap ... |
public class EcorePackageRenameStrategy { /** * Change the package name .
* @ param newName the new name .
* @ param resourceSet the set of resource to use . */
protected void setPackageName ( String newName , ResourceSet resourceSet ) { } } | final EObject object = resourceSet . getEObject ( this . uriProvider . apply ( resourceSet ) , true ) ; if ( object instanceof SarlScript ) { ( ( SarlScript ) object ) . setPackage ( newName ) ; } else { throw new RefactoringException ( "SARL script not loaded." ) ; // $ NON - NLS - 1 $
} |
public class IntStream { /** * Performs a reduction on the elements of this stream , using the provided
* identity value and an associative accumulation function , and returns the
* reduced value .
* < p > The { @ code identity } value must be an identity for the accumulator
* function . This means that for all... | int result = identity ; while ( iterator . hasNext ( ) ) { int value = iterator . nextInt ( ) ; result = op . applyAsInt ( result , value ) ; } return result ; |
public class ClassDescriptorDef { /** * Returns the collection definition of the given name if it exists .
* @ param name The name of the collection
* @ return The collection definition or < code > null < / code > if there is no such collection */
public CollectionDescriptorDef getCollection ( String name ) { } } | CollectionDescriptorDef collDef = null ; for ( Iterator it = _collections . iterator ( ) ; it . hasNext ( ) ; ) { collDef = ( CollectionDescriptorDef ) it . next ( ) ; if ( collDef . getName ( ) . equals ( name ) ) { return collDef ; } } return null ; |
public class AbstractLinkedList { /** * Replaces an entry in the list .
* @ param oldEntry
* the entry to be replaced .
* @ param newEntry
* the replacement entry . */
protected void replaceEntry ( T oldEntry , T newEntry ) { } } | T prev = oldEntry . getPrev ( ) ; T next = newEntry . getNext ( ) ; if ( prev != null ) { prev . setNext ( newEntry ) ; } else { head = newEntry ; } if ( next != null ) { next . setPrev ( newEntry ) ; } else { last = newEntry ; } |
public class EntityUtils { /** * Adds the hit effects into the world for the specified { @ link IBlockState } .
* @ param world the world
* @ param target the target
* @ param particleManager the effect renderer
* @ param states the states */
@ SideOnly ( Side . CLIENT ) public static void addHitEffects ( World... | BlockPos pos = target . getBlockPos ( ) ; if ( ArrayUtils . isEmpty ( states ) ) states = new IBlockState [ ] { world . getBlockState ( pos ) } ; IBlockState baseState = world . getBlockState ( pos ) ; if ( baseState . getRenderType ( ) != EnumBlockRenderType . INVISIBLE ) return ; double fxX = pos . getX ( ) + world .... |
public class MainController { /** * init fxml when loaded . */
@ PostConstruct public void init ( ) throws Exception { } } | // init the title hamburger icon
final JFXTooltip burgerTooltip = new JFXTooltip ( "Open drawer" ) ; drawer . setOnDrawerOpening ( e -> { final Transition animation = titleBurger . getAnimation ( ) ; burgerTooltip . setText ( "Close drawer" ) ; animation . setRate ( 1 ) ; animation . play ( ) ; } ) ; drawer . setOnDraw... |
public class PriceTypeEnumeration { /** * Returns a PriceTypeEnumeration based on the String value or null .
* @ param value Value to search for .
* @ return PriceTypeEnumeration or null . */
public static PriceTypeEnumeration findByValue ( final String value ) { } } | if ( value . equalsIgnoreCase ( "negotiable" ) ) { return PriceTypeEnumeration . NEGOTIABLE ; } else { return PriceTypeEnumeration . STARTING ; } |
public class Example { /** * Creates a converter which applies { @ code inputConverter } to the input of
* each example , and { @ code outputConverter } to the output .
* @ param converter
* @ return */
public static < A , B , C , D > Converter < Example < A , B > , Example < C , D > > converter ( Converter < A ,... | return new ExampleConverter < A , B , C , D > ( inputConverter , outputConverter ) ; |
public class ProjectNodeSupport { /** * Return a list of resource model configuration
* @ param serviceName
* @ param keyprefix prefix for properties
* @ return List of Maps , each map containing " type " : String , " props " : Properties */
public List < ExtPluginConfiguration > listPluginConfigurations ( final ... | return listPluginConfigurations ( projectConfig . getProjectProperties ( ) , keyprefix , serviceName , extra ) ; |
public class ValidateUtils { /** * Validates the operation inputs .
* @ param inputs @ throws Exception for invalid inputs */
public static void validateInputs ( EditXmlInputs inputs ) throws Exception { } } | validateXmlAndFilePathInputs ( inputs . getXml ( ) , inputs . getFilePath ( ) ) ; if ( Constants . Inputs . MOVE_ACTION . equals ( inputs . getAction ( ) ) ) { validateIsNotEmpty ( inputs . getXpath2 ( ) , "xpath2 input is required for action 'move' " ) ; } if ( ! Constants . Inputs . SUBNODE_ACTION . equals ( inputs .... |
public class Dia { /** * If not set , defaults to the last path segment of path , with any " . dia " extension stripped . */
@ Override public String getLabel ( ) { } } | String l = label ; if ( l != null ) return l ; String p = path ; if ( p != null ) { String filename = p . substring ( p . lastIndexOf ( '/' ) + 1 ) ; if ( filename . endsWith ( DOT_EXTENSION ) ) filename = filename . substring ( 0 , filename . length ( ) - DOT_EXTENSION . length ( ) ) ; if ( filename . isEmpty ( ) ) th... |
public class ResourceCopy { /** * Copies the file < tt > file < / tt > to the directory < tt > dir < / tt > , keeping the structure relative to < tt > rel < / tt > .
* @ param file the file to copy
* @ param rel the base ' relative '
* @ param dir the directory
* @ param mojo the mojo
* @ param filtering the ... | if ( filtering == null ) { File out = computeRelativeFile ( file , rel , dir ) ; if ( out . getParentFile ( ) != null ) { mojo . getLog ( ) . debug ( "Creating " + out . getParentFile ( ) + " : " + out . getParentFile ( ) . mkdirs ( ) ) ; FileUtils . copyFileToDirectory ( file , out . getParentFile ( ) ) ; } else { thr... |
public class ParameterServerSubscriber { /** * When this is a slave node
* it returns the connection url for this node
* and the associated master connection urls in the form of :
* host : port : streamId
* @ return the slave connection info */
public SlaveConnectionInfo slaveConnectionInfo ( ) { } } | if ( isMaster ( ) ) throw new IllegalStateException ( "Unable to determine slave connection info. This is a master node" ) ; return SlaveConnectionInfo . builder ( ) . connectionUrl ( subscriber . connectionUrl ( ) ) . masterUrl ( publishMasterUrl ) . build ( ) ; |
public class CmsDefaultPageEditor { /** * Returns the OpenCms VFS uri of the template of the current page . < p >
* @ return the OpenCms VFS uri of the template of the current page */
public String getUriTemplate ( ) { } } | String result = "" ; try { result = getCms ( ) . readPropertyObject ( getParamTempfile ( ) , CmsPropertyDefinition . PROPERTY_TEMPLATE , true ) . getValue ( "" ) ; } catch ( CmsException e ) { LOG . warn ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_READ_TEMPLATE_PROP_FAILED_0 ) , e ) ; } return result ; |
public class Configuration { /** * Get an input stream attached to the configuration resource with the
* given < code > name < / code > .
* @ param name configuration resource name .
* @ return an input stream attached to the resource . */
public InputStream getConfResourceAsInputStream ( String name ) { } } | try { URL url = getResource ( name ) ; if ( url == null ) { LOG . info ( name + " not found" ) ; return null ; } else { LOG . info ( "found resource " + name + " at " + url ) ; } return url . openStream ( ) ; } catch ( Exception e ) { return null ; } |
public class ConcurrentLinkedDeque { /** * Unlinks non - null last node . */
private void unlinkLast ( Node < E > last , Node < E > prev ) { } } | // assert last ! = null ;
// assert prev ! = null ;
// assert last . item = = null ;
for ( Node < E > o = null , p = prev , q ; ; ) { if ( p . item != null || ( q = p . prev ) == null ) { if ( o != null && p . next != p && last . casPrev ( prev , p ) ) { skipDeletedSuccessors ( p ) ; if ( last . next == null && ( p . p... |
public class XMLUtil { /** * Replies the float value that corresponds to the specified attribute ' s path .
* < p > The path is an ordered list of tag ' s names and ended by the name of
* the attribute .
* @ param document is the XML document to explore .
* @ param caseSensitive indicates of the { @ code path }... | assert document != null : AssertMessages . notNullParameter ( 0 ) ; final String v = getAttributeValue ( document , caseSensitive , 0 , path ) ; if ( v != null ) { try { return Float . parseFloat ( v ) ; } catch ( NumberFormatException e ) { } } return defaultValue ; |
public class SipStackTool { /** * Initialize SipStack using provided properties */
public SipStack initializeSipStack ( String transport , String myPort , Properties myProperties ) throws Exception { } } | /* * http : / / code . google . com / p / mobicents / issues / detail ? id = 3121
* Reset sipStack when calling initializeSipStack method */
tearDown ( ) ; try { sipStack = new SipStack ( transport , Integer . valueOf ( myPort ) , myProperties ) ; logger . info ( "SipStack - " + sipStackName + " - created!" ) ; } cat... |
public class UploadObjectObserver { /** * < ! - - - Notified from
* { @ link AmazonS3EncryptionClient # uploadObject ( UploadObjectRequest ) } when
* all parts have been successfully uploaded to S3 . - - - > This method is
* responsible for finishing off the upload by making a complete multi - part
* upload req... | return s3 . completeMultipartUpload ( new CompleteMultipartUploadRequest ( req . getBucketName ( ) , req . getKey ( ) , uploadId , partETags ) ) ; |
public class ListDeviceEventsResult { /** * The device events requested for the device ARN .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setDeviceEvents ( java . util . Collection ) } or { @ link # withDeviceEvents ( java . util . Collection ) } if you wa... | if ( this . deviceEvents == null ) { setDeviceEvents ( new java . util . ArrayList < DeviceEvent > ( deviceEvents . length ) ) ; } for ( DeviceEvent ele : deviceEvents ) { this . deviceEvents . add ( ele ) ; } return this ; |
public class LocalisationManager { /** * Method searchForPtoPOutputHandler
* < p > Method will attempt to get an output handler to a remote localisation
* If the outputHandler does not exist , a transmit queue is created etc
* @ param preferredME
* @ param localMessage
* @ return
* @ throws SIRollbackExcept... | // Venu temp
// For Liberty runtime , there would not be WLM . In this release of Liberty , in runtime this
// function is not get called . Hence just returning null
return null ; |
public class ContainerModule { /** * Executes the added test modules and their callbacks in the order of their addition using
* { @ link ScriptContext # run ( TestModule ) } . */
@ Override public void execute ( ) { } } | // save archive dir of the outer module so it can be reset later
String previousArchiveDir = archiveDirProvider . get ( ) . getPath ( ) ; try { // make sure archive dirs are within that of the container module
moduleArchiveDir = moduleArchiveDirProvider . get ( ) . getPath ( ) ; config . put ( JFunkConstants . ARCHIVE_... |
public class KryoUtils { /** * Tries to copy the given record from using the provided Kryo instance . If this fails , then
* the record from is copied by serializing it into a byte buffer and deserializing it from
* there .
* @ param from Element to copy
* @ param kryo Kryo instance to use
* @ param serialize... | try { return kryo . copy ( from ) ; } catch ( KryoException ke ) { // Kryo could not copy the object - - > try to serialize / deserialize the object
try { byte [ ] byteArray = InstantiationUtil . serializeToByteArray ( serializer , from ) ; return InstantiationUtil . deserializeFromByteArray ( serializer , byteArray ) ... |
public class ModifyInstanceCreditSpecificationRequest { /** * Information about the credit option for CPU usage .
* @ return Information about the credit option for CPU usage . */
public java . util . List < InstanceCreditSpecificationRequest > getInstanceCreditSpecifications ( ) { } } | if ( instanceCreditSpecifications == null ) { instanceCreditSpecifications = new com . amazonaws . internal . SdkInternalList < InstanceCreditSpecificationRequest > ( ) ; } return instanceCreditSpecifications ; |
public class GridTable { /** * Search through the buffers for this bookmark .
* @ return int index in table ; or - 1 if not found .
* @ param bookmark java . lang . Object The bookmark to search for .
* @ param iHandleType The bookmark type . */
public int bookmarkToIndex ( Object bookmark , int iHandleType ) { }... | if ( bookmark == null ) return - 1 ; int iTargetPosition = m_gridBuffer . bookmarkToIndex ( bookmark , iHandleType ) ; if ( iTargetPosition == - 1 ) iTargetPosition = m_gridList . bookmarkToIndex ( bookmark , iHandleType ) ; return iTargetPosition ; // Target position |
public class TreeUtil { /** * Returns the first descendant of the given node that is not a ParenthesizedExpression . */
public static Expression trimParentheses ( Expression node ) { } } | while ( node instanceof ParenthesizedExpression ) { node = ( ( ParenthesizedExpression ) node ) . getExpression ( ) ; } return node ; |
public class StandardClassBodyEmitter { /** * / * ( non - Javadoc )
* @ see com . pogofish . jadt . emitter . ClassBodyEmitter # emitToString ( com . pogofish . jadt . emitter . Sink , com . pogofish . jadt . ast . Constructor ) */
@ Override public void emitToString ( Sink sink , String indent , Constructor construc... | logger . finest ( "Generating toString() for " + constructor . name ) ; sink . write ( indent + "@Override\n" ) ; sink . write ( indent + "public String toString() {\n" ) ; sink . write ( indent + " return \"" + constructor . name ) ; if ( ! constructor . args . isEmpty ( ) ) { sink . write ( "(" ) ; boolean first = ... |
public class JavaExprAnalyzer { /** * Analyze an expression .
* @ param expr
* The expression to analyze .
* @ param availableIdentifiers
* Total set of declarations available .
* @ return The < code > Set < / code > of declarations used by the expression .
* @ throws RecognitionException
* If an error oc... | final JavaParser parser = parse ( expr ) ; parser . conditionalOrExpression ( ) ; JavaAnalysisResult result = new JavaAnalysisResult ( ) ; result . setAnalyzedExpr ( expr ) ; result . setIdentifiers ( new HashSet < String > ( parser . getIdentifiers ( ) ) ) ; return analyze ( result , availableIdentifiers ) ; |
public class ByteArrayUtil { /** * Read an unsigned short from the byte array at the given offset .
* @ param array Array to read from
* @ param offset Offset to read at
* @ return short */
public static int readUnsignedShort ( byte [ ] array , int offset ) { } } | // First make integers to resolve signed vs . unsigned issues .
int b0 = array [ offset + 0 ] & 0xFF ; int b1 = array [ offset + 1 ] & 0xFF ; return ( ( b0 << 8 ) + ( b1 << 0 ) ) ; |
public class GrpSettings { /** * Sets the targetGender value for this GrpSettings .
* @ param targetGender * Specifies the target gender of the { @ link LineItem } . This field
* is only applicable if
* { @ link # provider } is not null . */
public void setTargetGender ( com . google . api . ads . admanager . axi... | this . targetGender = targetGender ; |
public class ApiRequestParams { /** * Convenient method to convert this typed request params into an untyped map . This map is
* composed of { @ code Map < String , Object > } , { @ code List < Object > } , and basic Java data types .
* This allows you to test building the request params and verify compatibility wi... | JsonObject json = GSON . toJsonTree ( this ) . getAsJsonObject ( ) ; return UNTYPED_MAP_DESERIALIZER . deserialize ( json ) ; |
public class AbstractViewQuery { /** * apply fadein animation for view
* @ return */
public T fadeIn ( ) { } } | if ( view != null ) { view . startAnimation ( AnimationUtils . loadAnimation ( context , android . R . anim . fade_in ) ) ; } return self ( ) ; |
public class CNFEncoder { /** * Returns the current configuration of this encoder . If the encoder was constructed with a given configuration , this
* configuration will always be used . Otherwise the current configuration of the formula factory is used or - if not
* present - the default configuration .
* @ retu... | if ( this . config != null ) return this . config ; final Configuration cnfConfig = this . f . configurationFor ( ConfigurationType . CNF ) ; return cnfConfig != null ? ( CNFConfig ) cnfConfig : this . defaultConfig ; |
public class SquigglyUtils { /** * Convert an object to a collection of maps .
* @ param mapper the object mapper
* @ param source the source object
* @ param targetCollectionType the target collection type
* @ param targetKeyType the target map key type
* @ param targetValueType the target map value type
*... | MapType mapType = mapper . getTypeFactory ( ) . constructMapType ( Map . class , targetKeyType , targetValueType ) ; return collectify ( mapper , convertToCollection ( source ) , targetCollectionType , mapType ) ; |
public class HttpResponse { public void writeHeader ( Writer writer ) throws IOException { } } | if ( _state != __MSG_EDITABLE ) throw new IllegalStateException ( __state [ _state ] + " is not EDITABLE" ) ; if ( _header == null ) throw new IllegalStateException ( "Response is destroyed" ) ; if ( getHttpRequest ( ) . getDotVersion ( ) >= 0 ) { _state = __MSG_BAD ; writer . write ( _version ) ; writer . write ( ' ' ... |
public class DeleteNamedQueryRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( DeleteNamedQueryRequest deleteNamedQueryRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( deleteNamedQueryRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteNamedQueryRequest . getNamedQueryId ( ) , NAMEDQUERYID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to ... |
public class MongoDBSchemaManager { /** * validate method validate schema and table for the list of tableInfos .
* @ param tableInfos
* list of TableInfos . */
protected void validate ( List < TableInfo > tableInfos ) { } } | db = mongo . getDB ( databaseName ) ; if ( db == null ) { logger . error ( "Database " + databaseName + "does not exist" ) ; throw new SchemaGenerationException ( "database " + databaseName + "does not exist" , "mongoDb" , databaseName ) ; } else { for ( TableInfo tableInfo : tableInfos ) { if ( tableInfo . getLobColum... |
public class AbstractMergeRunnable { /** * Check if data structures in - memory - format appropriate to merge
* with legacy policies */
private boolean canMergeLegacy ( String dataStructureName ) { } } | Object mergePolicy = getMergePolicy ( dataStructureName ) ; InMemoryFormat inMemoryFormat = getInMemoryFormat ( dataStructureName ) ; return checkMergePolicySupportsInMemoryFormat ( dataStructureName , mergePolicy , inMemoryFormat , false , logger ) ; |
public class AudioSelector { /** * Selects a specific PID from within an audio source ( e . g . 257 selects PID 0x101 ) .
* @ param pids
* Selects a specific PID from within an audio source ( e . g . 257 selects PID 0x101 ) . */
public void setPids ( java . util . Collection < Integer > pids ) { } } | if ( pids == null ) { this . pids = null ; return ; } this . pids = new java . util . ArrayList < Integer > ( pids ) ; |
public class GetApiKeysResult { /** * A list of warning messages logged during the import of API keys when the < code > failOnWarnings < / code > option is
* set to true .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setWarnings ( java . util . Collectio... | if ( this . warnings == null ) { setWarnings ( new java . util . ArrayList < String > ( warnings . length ) ) ; } for ( String ele : warnings ) { this . warnings . add ( ele ) ; } return this ; |
public class KeyVaultClientBaseImpl { /** * Gets information about a SAS definition for the specified storage account . This operation requires the storage / getsas permission .
* @ param vaultBaseUrl The vault name , for example https : / / myvault . vault . azure . net .
* @ param storageAccountName The name of t... | return ServiceFuture . fromResponse ( getSasDefinitionWithServiceResponseAsync ( vaultBaseUrl , storageAccountName , sasDefinitionName ) , serviceCallback ) ; |
public class VoiceApi { /** * Set the current agent ' s state to Ready on the voice channel .
* @ param reasons Information on causes for , and results of , actions taken by the user of the current DN . For details about reasons , refer to the [ * Genesys Events and Models Reference Manual * ] ( https : / / docs . ge... | try { VoicereadyData readyData = new VoicereadyData ( ) ; readyData . setReasons ( Util . toKVList ( reasons ) ) ; readyData . setExtensions ( Util . toKVList ( extensions ) ) ; ReadyData data = new ReadyData ( ) ; data . data ( readyData ) ; ApiSuccessResponse response = this . voiceApi . setAgentStateReady ( data ) ;... |
public class Webcam { /** * Get list of webcams to use . This method will wait predefined time interval for webcam devices
* to be discovered . By default this time is set to 1 minute .
* @ return List of webcams existing in the system
* @ throws WebcamException when something is wrong
* @ see Webcam # getWebca... | // timeout exception below will never be caught since user would have to
// wait around three hundreds billion years for it to occur
try { return getWebcams ( Long . MAX_VALUE ) ; } catch ( TimeoutException e ) { throw new RuntimeException ( e ) ; } |
public class RequestUtils { /** * Reconstructs the request URL including query parameters . < em > Note : < / em >
* the output of this method is purely for logging purposes only , thus POST
* parameters are shown as if they were GET parameters and parameters are
* < em > not < / em > URL encoded . */
public stat... | StringBuffer buf = req . getRequestURL ( ) ; @ SuppressWarnings ( "unchecked" ) Map < String , String [ ] > map = req . getParameterMap ( ) ; if ( map . size ( ) > 0 ) { buf . append ( "?" ) ; for ( Map . Entry < String , String [ ] > entry : map . entrySet ( ) ) { if ( buf . charAt ( buf . length ( ) - 1 ) != '?' ) { ... |
public class SameDiff { /** * Get the variable name to use
* for resolving a given field
* for a given function during import time .
* This method is u sed during { @ link DifferentialFunction # resolvePropertiesFromSameDiffBeforeExecution ( ) }
* @ param function the function to get the variable name for
* @... | return fieldVariableResolutionMapping . get ( function . getOwnName ( ) , fieldName ) ; |
public class WebUtils { /** * Put ticket granting ticket in request and flow scopes .
* @ param context the context
* @ param ticket the ticket value */
public static void putTicketGrantingTicketInScopes ( final RequestContext context , final TicketGrantingTicket ticket ) { } } | val ticketValue = ticket != null ? ticket . getId ( ) : null ; putTicketGrantingTicketInScopes ( context , ticketValue ) ; |
public class VALPNormDistance { /** * Get the maximum distance .
* @ param vec Approximation vector
* @ return Maximum distance of the vector */
public double getMaxDist ( VectorApproximation vec ) { } } | final int dim = lookup . length ; double maxDist = 0 ; for ( int d = 0 ; d < dim ; d ++ ) { final int vp = vec . getApproximation ( d ) ; maxDist += getPartialMaxDist ( d , vp ) ; } return FastMath . pow ( maxDist , onebyp ) ; |
public class DBWrapperFactory { /** * Create a wrapper around a collection of entities .
* @ param collection The collection to be wrapped .
* @ param entityClass The class of the entity that the collection contains .
* @ param isRevisionCollection Whether or not the collection is a collection of revision entitie... | "unchecked" , "rawtypes" } ) public < T extends BaseWrapper < T > , U > CollectionWrapper < T > createCollection ( final Collection < U > collection , final Class < U > entityClass , boolean isRevisionCollection , final DBCollectionHandler < U > handler ) { if ( collection == null ) { return null ; } final DBCollection... |
public class EncodingUtils { /** * Base64 - encode the given byte [ ] as a string .
* @ param data the byte array to encode
* @ param chunked the chunked
* @ return the encoded string */
public static String encodeBase64 ( final byte [ ] data , final boolean chunked ) { } } | if ( data != null && data . length > 0 ) { if ( chunked ) { return BASE64_CHUNKED_ENCODER . encodeToString ( data ) . trim ( ) ; } return BASE64_UNCHUNKED_ENCODER . encodeToString ( data ) . trim ( ) ; } return StringUtils . EMPTY ; |
public class RNAUtils { /** * method to get the trimmed nucleotide sequence
* @ param polymer given rna / dna polymer
* @ return trimmed nucleotide sequence
* @ throws RNAUtilsException if the polymer is not a RNA / DNA
* @ throws HELM2HandledException if it contains HELM2 specific features , so that it can not... | checkRNA ( polymer ) ; List < Nucleotide > list = getNucleotideList ( polymer ) ; int start = 0 ; Nucleotide na = list . get ( start ) ; while ( null == na . getBaseMonomer ( ) ) { start ++ ; na = list . get ( start ) ; } int end = list . size ( ) - 1 ; na = list . get ( end ) ; while ( null == na . getBaseMonomer ( ) ... |
public class CouchbaseConnection { /** * Appends a { @ link JsonDocument } ' s content to an existing one .
* @ param documentId the unique ID of the document
* @ param json the JSON String representing the document to append
* @ return the updated { @ link Document }
* @ see Bucket # append ( Document ) */
pub... | this . bucket . append ( JsonDocument . create ( documentId , JsonObject . fromJson ( json ) ) ) ; return this . get ( documentId ) ; |
public class CommerceSubscriptionEntryLocalServiceBaseImpl { /** * Deletes the commerce subscription entry with the primary key from the database . Also notifies the appropriate model listeners .
* @ param commerceSubscriptionEntryId the primary key of the commerce subscription entry
* @ return the commerce subscri... | return commerceSubscriptionEntryPersistence . remove ( commerceSubscriptionEntryId ) ; |
public class LoginServlet { /** * GET simply returns login . html */
@ Override protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { } } | if ( authConfiguration . isKeycloakEnabled ( ) ) { redirector . doRedirect ( request , response , "/" ) ; } else { redirector . doForward ( request , response , "/login.html" ) ; } |
public class MarkLogicClient { /** * setter for GraphPermissions
* @ param graphPerms */
public void setGraphPerms ( GraphPermissions graphPerms ) { } } | if ( graphPerms != null ) { getClient ( ) . setGraphPerms ( graphPerms ) ; } else { getClient ( ) . setGraphPerms ( getClient ( ) . getDatabaseClient ( ) . newGraphManager ( ) . newGraphPermissions ( ) ) ; } |
public class BoundedLocalCache { /** * Returns the current value from a computeIfAbsent invocation . */
@ Nullable V doComputeIfAbsent ( K key , Object keyRef , Function < ? super K , ? extends V > mappingFunction , long [ ] now , boolean recordStats ) { } } | @ SuppressWarnings ( "unchecked" ) V [ ] oldValue = ( V [ ] ) new Object [ 1 ] ; @ SuppressWarnings ( "unchecked" ) V [ ] newValue = ( V [ ] ) new Object [ 1 ] ; @ SuppressWarnings ( "unchecked" ) K [ ] nodeKey = ( K [ ] ) new Object [ 1 ] ; @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) Node < K , V > [ ] removed... |
public class HsqldbDatabase { /** * / * ( non - Javadoc )
* @ see org . parosproxy . paros . db . DatabaseIF # deleteSession ( java . lang . String ) */
@ Override public void deleteSession ( String sessionName ) { } } | super . deleteSession ( sessionName ) ; logger . debug ( "deleteSession " + sessionName ) ; deleteDbFile ( new File ( sessionName ) ) ; deleteDbFile ( new File ( sessionName + ".data" ) ) ; deleteDbFile ( new File ( sessionName + ".script" ) ) ; deleteDbFile ( new File ( sessionName + ".properties" ) ) ; deleteDbFile (... |
public class TrailingHeaders { /** * Adds an HTTP trailing header with the passed { @ code name } and { @ code values } to this request .
* @ param name Name of the header .
* @ param values Values for the header .
* @ return { @ code this } . */
public TrailingHeaders addHeader ( CharSequence name , Iterable < O... | lastHttpContent . trailingHeaders ( ) . add ( name , values ) ; return this ; |
public class DescribeReplicationInstanceTaskLogsResult { /** * An array of replication task log metadata . Each member of the array contains the replication task name , ARN , and
* task log size ( in bytes ) .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link #... | if ( this . replicationInstanceTaskLogs == null ) { setReplicationInstanceTaskLogs ( new java . util . ArrayList < ReplicationInstanceTaskLog > ( replicationInstanceTaskLogs . length ) ) ; } for ( ReplicationInstanceTaskLog ele : replicationInstanceTaskLogs ) { this . replicationInstanceTaskLogs . add ( ele ) ; } retur... |
public class LepInterceptor { /** * { @ inheritDoc } */
@ Override public boolean preHandle ( HttpServletRequest request , HttpServletResponse response , Object handler ) throws IOException { } } | lepManager . beginThreadContext ( scopedContext -> { scopedContext . setValue ( THREAD_CONTEXT_KEY_TENANT_CONTEXT , tenantContextHolder . getContext ( ) ) ; scopedContext . setValue ( BINDING_KEY_AUTH_CONTEXT , xmAuthContextHolder . getContext ( ) ) ; } ) ; return true ; |
public class AddressTemplate { /** * Resolve this address template against the specified statement context .
* @ param context the statement context
* @ param wildcards An optional list of wildcards which are used to resolve any wildcards in this address template
* @ return a full qualified resource address which... | int wildcardCount = 0 ; ModelNode model = new ModelNode ( ) ; Memory < String [ ] > tupleMemory = new Memory < > ( ) ; Memory < String > valueMemory = new Memory < > ( ) ; for ( Token token : tokens ) { if ( ! token . hasKey ( ) ) { // a single token or token expression
String tokenRef = token . getValue ( ) ; String [... |
public class NetworkWatchersInner { /** * Queries status of flow log on a specified resource .
* @ param resourceGroupName The name of the network watcher resource group .
* @ param networkWatcherName The name of the network watcher resource .
* @ param targetResourceId The target resource where getting the flow ... | return ServiceFuture . fromResponse ( beginGetFlowLogStatusWithServiceResponseAsync ( resourceGroupName , networkWatcherName , targetResourceId ) , serviceCallback ) ; |
public class SimpleClient { /** * { @ inheritDoc } */
@ Override public CompletableFuture < Data > getAsync ( Face face , Name name ) { } } | return getAsync ( face , getDefaultInterest ( name ) ) ; |
public class StatementDMQL { /** * Returns the metadata , which is empty if the CompiledStatement does not
* generate a Result . */
@ Override public ResultMetaData getResultMetaData ( ) { } } | switch ( type ) { case StatementTypes . DELETE_WHERE : case StatementTypes . INSERT : case StatementTypes . UPDATE_WHERE : case StatementTypes . MIGRATE_WHERE : return ResultMetaData . emptyResultMetaData ; default : throw Error . runtimeError ( ErrorCode . U_S0500 , "CompiledStatement.getResultMetaData()" ) ; } |
public class ConfigurationLoader { /** * This method loads the configuration from the supplied URI .
* @ param uri The URI
* @ param type The type , or null if default ( jvm )
* @ return The configuration */
protected static CollectorConfiguration loadConfig ( String uri , String type ) { } } | final CollectorConfiguration config = new CollectorConfiguration ( ) ; if ( type == null ) { type = DEFAULT_TYPE ; } uri += java . io . File . separator + type ; File f = new File ( uri ) ; if ( ! f . isAbsolute ( ) ) { if ( f . exists ( ) ) { uri = f . getAbsolutePath ( ) ; } else if ( System . getProperties ( ) . con... |
public class StringValue { /** * ( non - Javadoc )
* @ see java . lang . Appendable # append ( java . lang . CharSequence , int , int ) */
public Appendable append ( StringValue csq , int start , int end ) { } } | final int otherLen = end - start ; grow ( this . len + otherLen ) ; System . arraycopy ( csq . value , start , this . value , this . len , otherLen ) ; this . len += otherLen ; return this ; |
public class PatternsImpl { /** * Adds a batch of patterns to the specified application .
* @ param appId The application ID .
* @ param versionId The version ID .
* @ param patterns A JSON array containing patterns .
* @ throws IllegalArgumentException thrown if parameters fail the validation
* @ throws Erro... | return batchAddPatternsWithServiceResponseAsync ( appId , versionId , patterns ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class HomekitSRP6ServerSession { /** * Increments this SRP - 6a authentication session to { @ link State # STEP _ 1 } .
* < p > Argument origin :
* < ul >
* < li > From client : user identity ' I ' .
* < li > From server database : matching salt ' s ' and password verifier ' v ' values .
* < / ul >
*... | // Check arguments
if ( userID == null || userID . trim ( ) . isEmpty ( ) ) throw new IllegalArgumentException ( "The user identity 'I' must not be null or empty" ) ; this . userID = userID ; if ( s == null ) throw new IllegalArgumentException ( "The salt 's' must not be null" ) ; this . s = s ; if ( v == null ) throw ... |
public class ConnectionPoolConnection { /** * Attempt to deal with any transaction problems .
* @ throws SQLException on invalid state . */
private void resolveIncompleteTransactions ( ) throws SQLException { } } | switch ( transactionState ) { case COMPLETED : // All we know for certain is that at least one commit / rollback was called . Do nothing .
break ; case STARTED : // At least one statement was created with auto - commit false & no commit / rollback .
// Follow the default policy .
if ( conn != null && openStatements . s... |
public class Record { /** * Sets the field at the given position to the given value . If the field position is larger or equal than
* the current number of fields in the record , than the record is expanded to host as many columns .
* The value is kept as a reference in the record until the binary representation is... | // range check
if ( fieldNum < 0 ) { throw new IndexOutOfBoundsException ( ) ; } // if the field number is beyond the size , the tuple is expanded
if ( fieldNum >= this . numFields ) { setNumFields ( fieldNum + 1 ) ; } internallySetField ( fieldNum , value ) ; |
public class AlluxioWorkerMonitor { /** * Starts the Alluxio worker monitor .
* @ param args command line arguments , should be empty */
public static void main ( String [ ] args ) { } } | if ( args . length != 0 ) { LOG . info ( "java -cp {} {}" , RuntimeConstants . ALLUXIO_JAR , AlluxioWorkerMonitor . class . getCanonicalName ( ) ) ; LOG . warn ( "ignoring arguments" ) ; } AlluxioConfiguration conf = new InstancedConfiguration ( ConfigurationUtils . defaults ( ) ) ; HealthCheckClient client = new Worke... |
public class LocalDate { /** * Constructs a LocalDate from a < code > java . util . Date < / code >
* using exactly the same field values .
* Each field is queried from the Date and assigned to the LocalDate .
* This is useful if you have been using the Date as a local date ,
* ignoring the zone .
* One advan... | if ( date == null ) { throw new IllegalArgumentException ( "The date must not be null" ) ; } if ( date . getTime ( ) < 0 ) { // handle years in era BC
GregorianCalendar cal = new GregorianCalendar ( ) ; cal . setTime ( date ) ; return fromCalendarFields ( cal ) ; } return new LocalDate ( date . getYear ( ) + 1900 , dat... |
public class SFSUtilities { /** * Compute the full extend of a ResultSet using the first geometry field . If
* the ResultSet does not contain any geometry field throw an exception
* @ param resultSet ResultSet to analyse
* @ return The full envelope of the ResultSet
* @ throws SQLException */
public static Enve... | List < String > geometryFields = getGeometryFields ( resultSet ) ; if ( geometryFields . isEmpty ( ) ) { throw new SQLException ( "This ResultSet doesn't contain any geometry field." ) ; } else { return getResultSetEnvelope ( resultSet , geometryFields . get ( 0 ) ) ; } |
public class TableBuilder { /** * add new tr having td tags that has content of each value of list .
* The new tr tag have specifed attributes .
* @ param tdList
* @ param attrMap attributes for new tr tag
* @ return
* @ throws TagTypeUnmatchException */
@ SuppressWarnings ( "unchecked" ) public < T extends A... | tr tr = new tr ( ) ; tr . setAttr ( attrMap ) ; for ( Object obj : tdList ) { if ( obj instanceof String ) { tr . addTd ( ( String ) obj ) ; } else if ( obj instanceof AbstractJaxb ) { tr . addTd ( ( T ) obj ) ; } else { throw new TagTypeUnmatchException ( "String or other tag object expected but tdList contains " + ob... |
public class BasicWebAppActor { /** * reply a request catched by interceptor , note this is server dependent and bound to undertow .
* for servlet containers , just override KontraktorServlet methods
* @ param exchange */
public void handleDirectRequest ( HttpServerExchange exchange ) { } } | Log . Info ( this , "direct request received " + exchange ) ; getDirectRequestResponse ( exchange . getRequestPath ( ) ) . then ( ( s , err ) -> { exchange . setResponseCode ( 200 ) ; exchange . getResponseHeaders ( ) . put ( Headers . CONTENT_TYPE , "text/html; charset=utf-8" ) ; exchange . getResponseSender ( ) . sen... |
public class Campaign { /** * Gets the selectiveOptimization value for this Campaign .
* @ return selectiveOptimization * Selective optimization setting for this campaign , which includes
* a set of conversion
* types to optimize this campaign towards . */
public com . google . api . ads . adwords . axis . v20180... | return selectiveOptimization ; |
public class JCalendar { /** * Creates a JFrame with a JCalendar inside and can be used for testing .
* @ param s
* The command line arguments */
public static void main ( String [ ] s ) { } } | JFrame frame = new JFrame ( "JCalendar" ) ; JCalendar jcalendar = new JCalendar ( ) ; frame . getContentPane ( ) . add ( jcalendar ) ; frame . pack ( ) ; frame . setVisible ( true ) ; |
public class FileUtil { /** * 删除目录及所有子目录 / 文件 */
public static void deleteDir ( File dir ) throws IOException { } } | Validate . isTrue ( isDirExists ( dir ) , "%s is not exist or not a dir" , dir ) ; deleteDir ( dir . toPath ( ) ) ; |
public class DataUnformatFilter { /** * Filter a processing instruction event .
* @ param target
* The PI target .
* @ param data
* The PI data .
* @ exception org . xml . sax . SAXException
* If a filter further down the chain raises an exception .
* @ see org . xml . sax . ContentHandler # processingIns... | emitWhitespace ( ) ; super . processingInstruction ( target , data ) ; |
public class AttachmentManager { /** * Download each attachment in { @ code attachments } to a temporary location , and
* return a list of attachments suitable for passing to { @ code setAttachments } .
* Typically { @ code attachments } is found via a call to { @ link # findNewAttachments } .
* @ param attachmen... | Map < String , PreparedAttachment > preparedAttachments = new HashMap < String , PreparedAttachment > ( ) ; for ( Map . Entry < String , Attachment > a : attachments . entrySet ( ) ) { PreparedAttachment pa = AttachmentManager . prepareAttachment ( attachmentsDir , attachmentStreamFactory , a . getValue ( ) ) ; prepare... |
public class HibernateSession { /** * Deletes all objects matching the given criteria .
* @ param criteria The criteria
* @ return The total number of records deleted */
public long deleteAll ( final QueryableCriteria criteria ) { } } | return getHibernateTemplate ( ) . execute ( ( GrailsHibernateTemplate . HibernateCallback < Integer > ) session -> { JpaQueryBuilder builder = new JpaQueryBuilder ( criteria ) ; builder . setConversionService ( getMappingContext ( ) . getConversionService ( ) ) ; builder . setHibernateCompatible ( true ) ; JpaQueryInfo... |
public class DocCommentLexer { /** * Returns the character at position < tt > pos < / tt > from the
* matched text .
* It is equivalent to yytext ( ) . charAt ( pos ) , but faster
* @ param pos the position of the character to fetch .
* A value from 0 to yylength ( ) - 1.
* @ return the character at position ... | return zzBufferArray != null ? zzBufferArray [ zzStartRead + pos ] : zzBuffer . charAt ( zzStartRead + pos ) ; |
public class DebugAndFilterModule { /** * Initialize reusable filters . */
private void initFilters ( ) { } } | ditaWriterFilter = new DitaWriterFilter ( ) ; ditaWriterFilter . setLogger ( logger ) ; ditaWriterFilter . setJob ( job ) ; ditaWriterFilter . setEntityResolver ( reader . getEntityResolver ( ) ) ; topicFragmentFilter = new TopicFragmentFilter ( ATTRIBUTE_NAME_CONREF , ATTRIBUTE_NAME_CONREFEND ) ; tempFileNameScheme . ... |
public class DumpServicesHandler { /** * { @ inheritDoc } */
@ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { } } | final ServiceName serviceName ; if ( context . getProcessType ( ) . isServer ( ) ) { serviceName = Services . JBOSS_AS ; } else { // The HC / DC service name
serviceName = ServiceName . JBOSS . append ( "host" , "controller" ) ; } context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( Opera... |
public class Constraint { /** * The ' min ' constraint - field must contain a number larger than or equal to min .
* @ param min the minimum value
* @ return constraint */
public static Constraint min ( final Number min ) { } } | return new Constraint ( "min" , minPayload ( min ) ) { public boolean isValid ( Object actualValue ) { return actualValue == null || ( actualValue instanceof Number && min != null && min . longValue ( ) <= ( ( Number ) actualValue ) . longValue ( ) ) ; } } ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.