signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class MSPDIWriter { /** * This method writes a single predecessor link to the MSPDI file . * @ param taskID The task UID * @ param type The predecessor type * @ param lag The lag duration * @ return A new link to be added to the MSPDI file */ private Project . Tasks . Task . PredecessorLink writePredeces...
Project . Tasks . Task . PredecessorLink link = m_factory . createProjectTasksTaskPredecessorLink ( ) ; link . setPredecessorUID ( NumberHelper . getBigInteger ( taskID ) ) ; link . setType ( BigInteger . valueOf ( type . getValue ( ) ) ) ; link . setCrossProject ( Boolean . FALSE ) ; // SF - 300 : required to keep P6 ...
public class ClassEntry { /** * Returns true if the source file has been modified . */ @ Override public boolean logModified ( Logger log ) { } }
if ( _depend . logModified ( log ) ) { return true ; } else if ( _sourcePath == null ) return false ; else if ( _sourcePath . getLastModified ( ) != _sourceLastModified ) { log . info ( "source modified time: " + _sourcePath + " old:" + new Date ( _sourceLastModified ) + " new:" + new Date ( _sourcePath . getLastModifi...
public class Matcher { /** * Resets this matcher and then attempts to find the next subsequence of * the input sequence that matches the pattern , starting at the specified * index . * < p > If the match succeeds then more information can be obtained via the * < tt > start < / tt > , < tt > end < / tt > , and <...
if ( start < 0 || start > input . length ( ) ) { throw new IndexOutOfBoundsException ( "start=" + start + "; length=" + input . length ( ) ) ; } // synchronized ( this ) { matchFound = findImpl ( address , start , matchOffsets ) ; return matchFound ;
public class BatchGetResourceConfigResult { /** * A list of resource keys that were not processed with the current response . The unprocessesResourceKeys value is * in the same form as ResourceKeys , so the value can be directly provided to a subsequent BatchGetResourceConfig * operation . If there are no unprocess...
if ( unprocessedResourceKeys == null ) { this . unprocessedResourceKeys = null ; return ; } this . unprocessedResourceKeys = new com . amazonaws . internal . SdkInternalList < ResourceKey > ( unprocessedResourceKeys ) ;
public class MapBuilder { /** * Puts all entries from otherMap into the map . * @ param otherMap Map to populate entries from . * @ return This builder . */ public MapBuilder < K , V > putAll ( Map < K , V > otherMap ) { } }
map . putAll ( otherMap ) ; return this ;
public class Util { /** * Given a class name return an object of that class . * The class parameter is used to check that the * named class is an instance of that class . * @ param className String class name * @ param cl Class expected * @ return Object checked to be an instance of that class * @ throws Ex...
try { Object o = Class . forName ( className ) . newInstance ( ) ; if ( o == null ) { throw new Exception ( "Class " + className + " not found" ) ; } if ( ! cl . isInstance ( o ) ) { throw new Exception ( "Class " + className + " is not a subclass of " + cl . getName ( ) ) ; } return o ; } catch ( Exception e ) { throw...
public class DBaseFileAttributePool { /** * Get the attribute pool that corresponds to the specified file . * @ param dbaseFile is the file from which the attributes could be extracted . * @ return the pool associated to the given file . */ static DBaseFileAttributePool getPool ( URL dbaseFile ) { } }
DBaseFileAttributePool pool = null ; if ( dbaseFile != null ) { if ( pools == null ) { pools = new WeakValueTreeMap < > ( ) ; } pool = pools . get ( dbaseFile . toExternalForm ( ) ) ; if ( pool == null ) { pool = new DBaseFileAttributePool ( dbaseFile ) ; pools . put ( dbaseFile . toExternalForm ( ) , pool ) ; } } retu...
public class PeerManager { /** * from interface PeerProvider */ public void invokeRequest ( ClientObject caller , byte [ ] serializedAction , InvocationService . ResultListener listener ) { } }
NodeRequest request = null ; try { ObjectInputStream oin = new ObjectInputStream ( new ByteArrayInputStream ( serializedAction ) ) ; request = ( NodeRequest ) oin . readObject ( ) ; _injector . injectMembers ( request ) ; request . invoke ( listener ) ; } catch ( Exception e ) { log . warning ( "Failed to execute node ...
public class CenteringTransform { /** * Change the coordinate system of { @ code y } from the * " centered " graphical coordinate system to the global document coordinate system . * @ param y the y graphical coordinate to convert . * @ return the x coordinate in the global coordinate system . */ @ Pure public dou...
final double adjustedY = y - this . translationY . get ( ) ; return this . invertY . get ( ) ? - adjustedY : adjustedY ;
public class CPDefinitionLocalizationPersistenceImpl { /** * Returns the number of cp definition localizations . * @ return the number of cp definition localizations */ @ Override public int countAll ( ) { } }
Long count = ( Long ) finderCache . getResult ( FINDER_PATH_COUNT_ALL , FINDER_ARGS_EMPTY , this ) ; if ( count == null ) { Session session = null ; try { session = openSession ( ) ; Query q = session . createQuery ( _SQL_COUNT_CPDEFINITIONLOCALIZATION ) ; count = ( Long ) q . uniqueResult ( ) ; finderCache . putResult...
public class BlockInStream { /** * Creates a { @ link BlockInStream } to read from a specific remote server . Should only be used * in cases where the data source and method of reading is known , ie . worker - worker * communication . * @ param context the file system context * @ param blockId the block id * ...
long chunkSize = context . getClusterConf ( ) . getBytes ( PropertyKey . USER_NETWORK_READER_CHUNK_SIZE_BYTES ) ; ReadRequest readRequest = ReadRequest . newBuilder ( ) . setBlockId ( blockId ) . setOpenUfsBlockOptions ( ufsOptions ) . setChunkSize ( chunkSize ) . buildPartial ( ) ; DataReader . Factory factory = new G...
public class KieModuleDeploymentHelperImpl { /** * Create a KJar for deployment ; * @ param releaseId Release ( deployment ) id . * @ param resourceFilePaths List of resource file paths * @ param kbaseName The name of the { @ link KieBase } * @ param ksessionName The name of the { @ link KieSession } . * @ pa...
ReleaseId [ ] releaseIds = { } ; if ( dependencies != null && dependencies . size ( ) > 0 ) { List < ReleaseId > depReleaseIds = new ArrayList < ReleaseId > ( ) ; for ( String dep : dependencies ) { String [ ] gav = dep . split ( ":" ) ; if ( gav . length != 3 ) { throw new IllegalArgumentException ( "Dependendency id ...
public class RemoteEventDecoder { /** * Decodes a remote event from the byte array data . * @ param data the byte array data * @ return a remote event object * @ throws RemoteRuntimeException */ @ Override public RemoteEvent < T > decode ( final byte [ ] data ) { } }
final WakeMessagePBuf pbuf ; try { pbuf = WakeMessagePBuf . parseFrom ( data ) ; return new RemoteEvent < T > ( null , null , pbuf . getSeq ( ) , decoder . decode ( pbuf . getData ( ) . toByteArray ( ) ) ) ; } catch ( final InvalidProtocolBufferException e ) { throw new RemoteRuntimeException ( e ) ; }
public class ResolveElasticsearchStep { /** * Resolve the artifact and return a file reference to the local file . */ private File resolveArtifact ( ClusterConfiguration config ) throws ArtifactException , IOException { } }
String flavour = config . getFlavour ( ) ; String version = config . getVersion ( ) ; String artifactId = getArtifactId ( flavour , version ) ; String classifier = getArtifactClassifier ( version ) ; String type = getArtifactType ( version ) ; ElasticsearchArtifact artifactReference = new ElasticsearchArtifact ( artifa...
public class RestoreCertificateAuthorityRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( RestoreCertificateAuthorityRequest restoreCertificateAuthorityRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( restoreCertificateAuthorityRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( restoreCertificateAuthorityRequest . getCertificateAuthorityArn ( ) , CERTIFICATEAUTHORITYARN_BINDING ) ; } catch ( Exception e ) { throw new SdkClien...
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link AbstractTextureType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link AbstractTextureType } { @ co...
return new JAXBElement < AbstractTextureType > ( __Texture_QNAME , AbstractTextureType . class , null , value ) ;
public class ComThread { /** * Adds a { @ link Com4jObject } to the live objects of this { @ link ComThread } * This method increases the live object count of this thread and fires an * { @ link ComObjectListener # onNewObject ( Com4jObject ) } event to all listeners . * @ param r The new { @ link Com4jObject } *...
// TODO : why is this public ? if ( r instanceof Wrapper ) { liveComObjects . add ( ( ( Wrapper ) r ) . ref ) ; } if ( ! listeners . isEmpty ( ) ) { for ( int i = listeners . size ( ) - 1 ; i >= 0 ; i -- ) listeners . get ( i ) . onNewObject ( r ) ; }
public class RPCHelper { /** * public static SyncObject syncObject = new SyncObject ( " MapSync " ) ; */ public static < I , T extends I > void registerInterface ( final Class < I > interfaceClass , final T instance , final RSBLocalServer server ) throws CouldNotPerformException { } }
for ( final Method method : interfaceClass . getMethods ( ) ) { if ( method . getAnnotation ( RPCMethod . class ) != null ) { boolean legacy = false ; try { legacy = JPService . getProperty ( JPRSBLegacyMode . class ) . getValue ( ) ; } catch ( JPNotAvailableException e ) { // if not available just register legacy meth...
public class Console { /** * Changes node path in the URL displayed by browser . * @ param path the path to the node . * @ param changeHistory if true store URL changes in browser ' s history . */ public void changePathInURL ( String path , boolean changeHistory ) { } }
jcrURL . setPath ( path ) ; if ( changeHistory ) { htmlHistory . newItem ( jcrURL . toString ( ) , false ) ; }
public class DeploymentOperations { /** * Creates an operation to replace deployment content to a running server . The previous content is undeployed , then * the new content is deployed , followed by the previous content being removed . * @ param deployments the set deployment used to replace existing deployments ...
Assertions . requiresNotNullOrNotEmptyParameter ( "deployments" , deployments ) ; final CompositeOperationBuilder builder = CompositeOperationBuilder . create ( true ) ; for ( Deployment deployment : deployments ) { addReplaceOperationSteps ( builder , deployment ) ; } return builder . build ( ) ;
public class LiKafkaSchemaRegistry { /** * Register a schema to the Kafka schema registry * @ param schema * @ param post * @ return schema ID of the registered schema * @ throws SchemaRegistryException if registration failed */ public synchronized MD5Digest register ( Schema schema , PostMethod post ) throws S...
// Change namespace if override specified if ( this . namespaceOverride . isPresent ( ) ) { schema = AvroUtils . switchNamespace ( schema , this . namespaceOverride . get ( ) ) ; } LOG . info ( "Registering schema " + schema . toString ( ) ) ; post . addParameter ( "schema" , schema . toString ( ) ) ; HttpClient httpCl...
public class Quaternionf { /** * Set this { @ link Quaternionf } to a rotation of the given angle in radians about the supplied * axis , all of which are specified via the { @ link AxisAngle4f } . * @ see # rotationAxis ( float , float , float , float ) * @ param axisAngle * the { @ link AxisAngle4f } giving th...
return rotationAxis ( axisAngle . angle , axisAngle . x , axisAngle . y , axisAngle . z ) ;
public class Expressive { /** * Return the subject when a polled sample of the feature is { @ code true } . * Uses a default ticker . */ public < S > S when ( S subject , Feature < ? super S , Boolean > feature ) { } }
return when ( subject , feature , eventually ( ) , isQuietlyTrue ( ) ) ;
public class MatcherLazyAssert { public static < T > void assertThat ( String reason , T actual , Matcher < ? super T > matcher ) { } }
if ( ! matcher . matches ( actual ) ) { Description description = new StringDescription ( ) ; description . appendText ( reason ) . appendText ( "\nExpected: " ) . appendDescriptionOf ( matcher ) . appendText ( "\n but: " ) ; matcher . describeMismatch ( actual , description ) ; throw new LazyAssertionError ( descr...
public class RocksDbUtils { /** * Builds RocksDb { @ link ReadOptions } . * @ param isTailing * @ return */ public static ReadOptions buildReadOptions ( boolean isTailing ) { } }
ReadOptions readOptions = new ReadOptions ( ) ; readOptions . setTailing ( isTailing ) ; return readOptions ;
public class AsyncLibrary { /** * @ see com . ibm . io . async . IAsyncProvider # terminateIOCB ( com . ibm . io . async . CompletionKey ) */ @ Override public void terminateIOCB ( CompletionKey theKey ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "terminateIOCB" ) ; } // termIOCB will cross into native code , so do not call termIOCB // on unix platforms , since they don ' t do anything in this method if ( doNativeIOCBInitAndTerm && AIO_INITIALIZED == aioInitialized ) ...
public class ApiOvhCloud { /** * Update a volume * REST : PUT / cloud / project / { serviceName } / volume / { volumeId } * @ param description [ required ] Volume description * @ param name [ required ] Volume name * @ param serviceName [ required ] Project id * @ param volumeId [ required ] Volume id */ pub...
String qPath = "/cloud/project/{serviceName}/volume/{volumeId}" ; StringBuilder sb = path ( qPath , serviceName , volumeId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "description" , description ) ; addBody ( o , "name" , name ) ; String resp = exec ( qPath , "PUT" , sb . toS...
public class Config { /** * Removes a configuration variable from the given scope . * < p > Removing a configuration variable is performed as if each scope had * its own namespace , that is , the same configuration variable name in one * scope does not impact one stored in a different scope . * @ param pc Page ...
switch ( scope ) { case PageContext . PAGE_SCOPE : pc . removeAttribute ( name + PAGE_SCOPE_SUFFIX , scope ) ; break ; case PageContext . REQUEST_SCOPE : pc . removeAttribute ( name + REQUEST_SCOPE_SUFFIX , scope ) ; break ; case PageContext . SESSION_SCOPE : pc . removeAttribute ( name + SESSION_SCOPE_SUFFIX , scope )...
public class Transform3D { /** * Rotate the object . * This function is equivalent to ( where r is the translation * of the quaternion as a 3x3 matrix ) : * < pre > * this = this * [ r r r 0 ] * [ r r r 0 ] * [ r r r 0 ] * [ 0 0 0 1 ] * < / pre > * @ param rotation */ public void rotate ( Quaternion r...
Transform3D m = new Transform3D ( ) ; m . makeRotationMatrix ( rotation ) ; mul ( m ) ;
public class QueryBuilder { /** * sorts are a bit more awkward and need a helper . . . */ private static String quoteSort ( Sort [ ] sort ) { } }
LinkedList < String > sorts = new LinkedList < String > ( ) ; for ( Sort pair : sort ) { sorts . add ( String . format ( "{%s: %s}" , Helpers . quote ( pair . getName ( ) ) , Helpers . quote ( pair . getOrder ( ) . toString ( ) ) ) ) ; } return sorts . toString ( ) ;
public class DescribeDhcpOptionsRequest { /** * The IDs of one or more DHCP options sets . * Default : Describes all your DHCP options sets . * < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use * { @ link # setDhcpOptionsIds ( java . util . Collection ) } or { @ link # with...
if ( this . dhcpOptionsIds == null ) { setDhcpOptionsIds ( new com . amazonaws . internal . SdkInternalList < String > ( dhcpOptionsIds . length ) ) ; } for ( String ele : dhcpOptionsIds ) { this . dhcpOptionsIds . add ( ele ) ; } return this ;
public class ComputeNodeRebootHeaders { /** * Set the time at which the resource was last modified . * @ param lastModified the lastModified value to set * @ return the ComputeNodeRebootHeaders object itself . */ public ComputeNodeRebootHeaders withLastModified ( DateTime lastModified ) { } }
if ( lastModified == null ) { this . lastModified = null ; } else { this . lastModified = new DateTimeRfc1123 ( lastModified ) ; } return this ;
public class CacheHandler { /** * 回滚当前事务写入的缓存 */ public static void rollbackCache ( ) { } }
List < String > keys = TransactionWriteCacheKeys . get ( ) ; if ( keys == null ) return ; for ( String key : keys ) { getCacheProvider ( ) . remove ( key ) ; }
public class ElasticsearchDomainStatusMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ElasticsearchDomainStatus elasticsearchDomainStatus , ProtocolMarshaller protocolMarshaller ) { } }
if ( elasticsearchDomainStatus == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( elasticsearchDomainStatus . getDomainId ( ) , DOMAINID_BINDING ) ; protocolMarshaller . marshall ( elasticsearchDomainStatus . getDomainName ( ) , DOMAINNAME_B...
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcThermalConductivityMeasure ( ) { } }
if ( ifcThermalConductivityMeasureEClass == null ) { ifcThermalConductivityMeasureEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 880 ) ; } return ifcThermalConductivityMeasureEClass ;
public class Base32 { /** * Returns the base 32 encoding of the given length from a { @ link Long } * geohash . * @ param i * the geohash * @ param length * the length of the returned hash * @ return the string geohash */ public static String encodeBase32 ( long i , int length ) { } }
char [ ] buf = new char [ 65 ] ; int charPos = 64 ; boolean negative = ( i < 0 ) ; if ( ! negative ) i = - i ; while ( i <= - 32 ) { buf [ charPos -- ] = characters [ ( int ) ( - ( i % 32 ) ) ] ; i /= 32 ; } buf [ charPos ] = characters [ ( int ) ( - i ) ] ; String result = padLeftWithZerosToLength ( new String ( buf ,...
public class ParticleIO { /** * Save a single emitter to the XML file * @ param out * The location to which we should save * @ param emitter * The emitter to store to the XML file * @ throws IOException * Indicates a failure to write or encode the XML */ public static void saveEmitter ( OutputStream out , C...
try { DocumentBuilder builder = DocumentBuilderFactory . newInstance ( ) . newDocumentBuilder ( ) ; Document document = builder . newDocument ( ) ; document . appendChild ( emitterToElement ( document , emitter ) ) ; Result result = new StreamResult ( new OutputStreamWriter ( out , "utf-8" ) ) ; DOMSource source = new ...
public class CatalogUtil { /** * Iterate through all the tables in the catalog , find a table with an id that matches the * given table id , and return its name . * @ param catalog Catalog database * @ param tableId table id * @ return table name associated with the given table id ( null if no association is fo...
String tableName = null ; for ( Table table : catalog . getTables ( ) ) { if ( table . getRelativeIndex ( ) == tableId ) { tableName = table . getTypeName ( ) ; } } return tableName ;
public class StringHelper { /** * Clean the generated alias by removing any non - alpha characters from the * beginning . * @ param alias The generated alias to be cleaned . * @ return The cleaned alias , stripped of any leading non - alpha characters . */ private static String cleanAlias ( String alias ) { } }
char [ ] chars = alias . toCharArray ( ) ; // short cut check . . . if ( ! Character . isLetter ( chars [ 0 ] ) ) { for ( int i = 1 ; i < chars . length ; i ++ ) { // as soon as we encounter our first letter , return the substring // from that position if ( Character . isLetter ( chars [ i ] ) ) { return alias . substr...
public class Octahedron { /** * Returns the vertices of an n - fold polygon of given radius and center * @ param n * @ param radius * @ param center * @ return */ @ Override public Point3d [ ] getVertices ( ) { } }
Point3d [ ] octahedron = new Point3d [ 6 ] ; octahedron [ 0 ] = new Point3d ( - cirumscribedRadius , 0 , 0 ) ; octahedron [ 1 ] = new Point3d ( cirumscribedRadius , 0 , 0 ) ; octahedron [ 2 ] = new Point3d ( 0 , - cirumscribedRadius , 0 ) ; octahedron [ 3 ] = new Point3d ( 0 , cirumscribedRadius , 0 ) ; octahedron [ 4 ...
public class SyntheticProperty { /** * Returns all the added accessor annotation descriptors in an unmodifiable list . */ public List < String > getAccessorAnnotationDescriptors ( ) { } }
if ( mAnnotationDescs == null ) { return Collections . emptyList ( ) ; } return Collections . unmodifiableList ( mAnnotationDescs ) ;
public class BCUtil { /** * 解码恢复EC压缩公钥 , 支持Base64和Hex编码 , ( 基于BouncyCastle ) < br > * 见 : https : / / www . cnblogs . com / xinzhao / p / 8963724 . html * @ param encode 压缩公钥 * @ param curveName EC曲线名 * @ since 4.4.4 */ public static PublicKey decodeECPoint ( String encode , String curveName ) { } }
return decodeECPoint ( SecureUtil . decode ( encode ) , curveName ) ;
public class VrAppSettings { /** * Enable the use of the given controller type by * adding it to the cursor controller types list . * @ param controllerType GVRControllerType to add to the list */ public void addControllerType ( GVRControllerType controllerType ) { } }
if ( cursorControllerTypes == null ) { cursorControllerTypes = new ArrayList < GVRControllerType > ( ) ; } else if ( cursorControllerTypes . contains ( controllerType ) ) { return ; } cursorControllerTypes . add ( controllerType ) ;
public class WordVectorSerializer { /** * This method reads vocab cache from provided file . * Please note : it reads only vocab content , so it ' s suitable mostly for BagOfWords / TF - IDF vectorizers * @ param file * @ return * @ throws IOException */ public static VocabCache < VocabWord > readVocabCache ( @...
try ( FileInputStream fis = new FileInputStream ( file ) ) { return readVocabCache ( fis ) ; }
public class CaffeineSpec { /** * Configures expire after access . */ void expireAfterAccess ( String key , @ Nullable String value ) { } }
requireArgument ( expireAfterAccessDuration == UNSET_INT , "expireAfterAccess was already set" ) ; expireAfterAccessDuration = parseDuration ( key , value ) ; expireAfterAccessTimeUnit = parseTimeUnit ( key , value ) ;
public class RefasterScanner { /** * Matching on the parentheses surrounding the condition of an if , while , or do - while * is nonsensical , as those parentheses are obligatory and should never be changed . */ @ Override public Void visitDoWhileLoop ( DoWhileLoopTree node , Context context ) { } }
scan ( node . getStatement ( ) , context ) ; scan ( SKIP_PARENS . visit ( node . getCondition ( ) , null ) , context ) ; return null ;
public class CommandFaceDescriptor { /** * { @ inheritDoc } */ public void setBackground ( Color background ) { } }
Color old = this . background ; this . background = background ; firePropertyChange ( BACKGROUND_PROPERTY , old , this . background ) ;
public class ModuleSetter { /** * Creating an Guice Module based on the parameters set . * @ return the { @ link AbstractModule } to be set */ public AbstractModule createModule ( ) { } }
return new AbstractModule ( ) { @ Override protected void configure ( ) { bind ( IDataFactory . class ) . to ( mDataFacClass ) ; bind ( IMetaEntryFactory . class ) . to ( mMetaFacClass ) ; bind ( IRevisioning . class ) . to ( mRevisioningClass ) ; bind ( IByteHandlerPipeline . class ) . toInstance ( mByteHandler ) ; in...
public class GDeferredRequest { @ SuppressWarnings ( "unchecked" ) protected void triggerDone ( Response < T > resolved ) { } }
for ( io . reinert . gdeferred . DoneCallback < T > callback : getDoneCallbacks ( ) ) { try { if ( callback instanceof DoneCallback ) { ( ( DoneCallback ) callback ) . onDone ( resolved ) ; } else { callback . onDone ( resolved . getPayload ( ) ) ; } } catch ( Exception e ) { log . log ( Level . SEVERE , "An uncaught e...
public class HalShopClient { /** * Returns the REST resource identified by { @ code uri } as a JSON string . * @ param link the non - templated Link of the resource * @ return json */ private String getHalJson ( final Link link ) throws IOException { } }
try { final HttpGet httpget = new HttpGet ( link . getHref ( ) ) ; if ( link . getType ( ) . isEmpty ( ) ) { httpget . addHeader ( "Accept" , "application/hal+json" ) ; } else { httpget . addHeader ( "Accept" , link . getType ( ) ) ; } System . out . println ( "| ------------- Request --------------" ) ; System . out...
public class UnilateralSortMerger { /** * Creates the reading thread . The reading thread simply reads the data off the input and puts it * into the buffer where it will be sorted . * The returned thread is not yet started . * @ param exceptionHandler * The handler for exceptions in the thread . * @ param rea...
return new ReadingThread < E > ( exceptionHandler , reader , queues , serializer . createInstance ( ) , parentTask , startSpillingBytes ) ;
public class BucketConfigurationXmlFactory { /** * Converts the specified accelerate configuration into an XML byte array . * @ param accelerateConfiguration * The configuration to convert . * @ return The XML byte array representation . */ public byte [ ] convertToXmlByteArray ( BucketAccelerateConfiguration acc...
XmlWriter xml = new XmlWriter ( ) ; xml . start ( "AccelerateConfiguration" , "xmlns" , Constants . XML_NAMESPACE ) ; xml . start ( "Status" ) . value ( accelerateConfiguration . getStatus ( ) ) . end ( ) ; xml . end ( ) ; return xml . getBytes ( ) ;
public class DOValidatorImpl { /** * Do Schematron rules validation on the Fedora object . Schematron * validation tests the object against a set of rules expressed using XPATH * in a Schematron schema . These test for things that are beyond what can be * expressed using XML Schema . * @ param objectAsFile * ...
try { DOValidatorSchematron schtron = new DOValidatorSchematron ( ruleSchemaPath , preprocessorPath , phase ) ; schtron . validate ( objectAsStream ) ; } catch ( ObjectValidityException e ) { logger . error ( "VALIDATE: ERROR - failed Schematron rules validation." , e ) ; throw e ; } catch ( Exception e ) { logger . er...
public class RspList { /** * Returns the first value in the response set . This is random , but we try to return a non - null value first */ public T getFirst ( ) { } }
Optional < Rsp < T > > retval = values ( ) . stream ( ) . filter ( rsp -> rsp . getValue ( ) != null ) . findFirst ( ) ; return retval . isPresent ( ) ? retval . get ( ) . getValue ( ) : null ;
public class AsyncActivityImpl { /** * ( non - Javadoc ) * @ see * AsyncActivity # put ( java . net . URI , * java . lang . String , java . lang . String , * Header [ ] , * Credentials ) */ public void put ( URI uri , String mimetype , String content , Header [ ] additionalRequestHeaders , Credentials credent...
ra . getExecutorService ( ) . execute ( new AsyncPutStringContentHandler ( ra , handle , uri , mimetype , content , additionalRequestHeaders , credentials ) ) ;
public class ResourceAddressFactory { /** * convenience method only , consider removing from API */ public ResourceAddress newResourceAddress ( String location , String nextProtocol ) { } }
if ( nextProtocol != null ) { ResourceOptions options = ResourceOptions . FACTORY . newResourceOptions ( ) ; options . setOption ( NEXT_PROTOCOL , nextProtocol ) ; return newResourceAddress ( location , options ) ; } else { return newResourceAddress ( location ) ; }
public class LongTupleIterators { /** * Returns an iterator that returns the { @ link MutableLongTuple } s from the * given delegate , wrapped at the given bounds . < br > * @ param bounds The bounds . A copy of this tuple will be stored internally . * @ param delegate The delegate iterator * @ return The itera...
return wrappingIteratorInternal ( LongTuples . copy ( bounds ) , delegate ) ;
public class OmsIntensityClassifierFlood { /** * VARS DOC END */ @ Execute public void process ( ) throws Exception { } }
if ( ! concatOr ( outIntensity == null , doReset ) ) { return ; } checkNull ( inWaterDepth , inVelocity , pUpperThresVelocityWaterdepth , pUpperThresWaterdepth , pLowerThresVelocityWaterdepth , pLowerThresWaterdepth ) ; // do autoboxing only once double maxWD = pUpperThresWaterdepth ; double maxVWD = pUpperThresVelocit...
public class DeleteWorkteamRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteWorkteamRequest deleteWorkteamRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteWorkteamRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteWorkteamRequest . getWorkteamName ( ) , WORKTEAMNAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON...
public class onlinkipv6prefix { /** * Use this API to fetch all the onlinkipv6prefix resources that are configured on netscaler . */ public static onlinkipv6prefix [ ] get ( nitro_service service ) throws Exception { } }
onlinkipv6prefix obj = new onlinkipv6prefix ( ) ; onlinkipv6prefix [ ] response = ( onlinkipv6prefix [ ] ) obj . get_resources ( service ) ; return response ;
public class BatchFraction { /** * Creates a new thread - pool using the { @ linkplain # DEFAULT _ THREAD _ POOL _ NAME default name } . The thread - pool is then set as * the default thread - pool for bath jobs . * @ param maxThreads the maximum number of threads to set the pool to * @ param keepAliveTime the ti...
return defaultThreadPool ( DEFAULT_THREAD_POOL_NAME , maxThreads , keepAliveTime , keepAliveUnits ) ;
public class PropertyConstraint { /** * Returns whether a proposition satisfies this constraint . If no * property name or value comparator are specified , this method always * returns < code > true < / code > . * @ param proposition a proposition . Cannot be < code > null < / code > . * @ return < code > true ...
if ( proposition == null ) { throw new IllegalArgumentException ( "proposition cannot be null" ) ; } if ( this . valueComp != null && this . propertyName != null ) { Value value = proposition . getProperty ( this . propertyName ) ; if ( ! valueComp . compare ( value , this . value ) ) { return false ; } } return true ;
public class AdsSoapModule { /** * Configures the factories . * @ param < H > the subclass of { @ link AdsServiceClientFactoryHelper } * @ param < F > the subclass of { @ link BaseAdsServiceClientFactory } * @ param adsServiceClientFactoryTypeLiteral the factory type literal which * contains a { @ link AdsServi...
install ( new FactoryModule < C , D , S , H , F > ( adsServiceClientFactoryTypeLiteral , adsServiceDescriptorFactoryTypeLiteral , adsServiceClientTypeLiteral , adsServiceDescriptorTypeLiteral , adsServiceClientFactoryHelperClass , baseAdsServiceClientFactoryClass ) ) ;
public class DropSpatialIndexGeneratorGeoDB { /** * Ensures that the table name is populated . */ @ Override public ValidationErrors validate ( final DropSpatialIndexStatement statement , final Database database , final SqlGeneratorChain sqlGeneratorChain ) { } }
final ValidationErrors validationErrors = new ValidationErrors ( ) ; validationErrors . checkRequiredField ( "tableName" , statement . getTableName ( ) ) ; return validationErrors ;
public class CommerceAccountOrganizationRelPersistenceImpl { /** * Returns the first commerce account organization rel in the ordered set where commerceAccountId = & # 63 ; . * @ param commerceAccountId the commerce account ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null...
CommerceAccountOrganizationRel commerceAccountOrganizationRel = fetchByCommerceAccountId_First ( commerceAccountId , orderByComparator ) ; if ( commerceAccountOrganizationRel != null ) { return commerceAccountOrganizationRel ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; m...
public class LogBuffer { /** * Return next 64 - bit unsigned long from buffer . ( little - endian ) * @ see mysql - 5.1.60 / include / my _ global . h - uint8korr */ public final BigInteger getUlong64 ( ) { } }
final long long64 = getLong64 ( ) ; return ( long64 >= 0 ) ? BigInteger . valueOf ( long64 ) : BIGINT_MAX_VALUE . add ( BigInteger . valueOf ( 1 + long64 ) ) ;
public class ImmutableOverlappingRangeSet { /** * Returns all { @ link Range } s { @ link Range # isConnected ( Range ) } to the { @ code queryRange } for which * { @ link Range # isEmpty ( ) } is false . Does not preserve multiplicity of { @ link Range } s */ @ Override public Collection < Range < T > > rangesOverla...
final ImmutableSet . Builder < Range < T > > ret = ImmutableSet . builder ( ) ; for ( final Range < T > range : ranges ) { if ( range . isConnected ( queryRange ) && ! range . intersection ( queryRange ) . isEmpty ( ) ) { ret . add ( range ) ; } } return ret . build ( ) ;
public class ProbabilitiesPanel { /** * Construct the combination of evolutionary operators that will be used to evolve the * polygon - based images . * @ param factory A source of polygons . * @ param canvasSize The size of the target image . * @ param rng A source of randomness . * @ return A complex evolut...
List < EvolutionaryOperator < List < ColouredPolygon > > > operators = new LinkedList < EvolutionaryOperator < List < ColouredPolygon > > > ( ) ; operators . add ( new ListCrossover < ColouredPolygon > ( new ConstantGenerator < Integer > ( 2 ) , crossOverControl . getNumberGenerator ( ) ) ) ; operators . add ( new Remo...
public class BaseContentHandler { /** * This method is called after { @ link # startNewElement ( localName ) } if the * localName of { @ link # startNewElement ( localName ) } is equals to any of the * { @ link FeatureType # getElements ( ) } , { @ link FeatureType # getLat ( ) ) } , * { @ link FeatureType # getL...
// System . out . println ( this . currentKey ) ; // System . out . println ( arg0 ) ; arg0 = normalizeValue ( arg0 ) ; if ( arg0 == null || this . currentFeatureGeoJSON == null || arg0 . trim ( ) . isEmpty ( ) ) return ; // System . out . println ( this . currentKey + " : " + arg0 ) ; FeatureType fType = this . curren...
public class XBooleanLiteralImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setIsTrue ( boolean newIsTrue ) { } }
boolean oldIsTrue = isTrue ; isTrue = newIsTrue ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , XbasePackage . XBOOLEAN_LITERAL__IS_TRUE , oldIsTrue , isTrue ) ) ;
public class VirtualNodeSpec { /** * The backends that the virtual node is expected to send outbound traffic to . * @ param backends * The backends that the virtual node is expected to send outbound traffic to . */ public void setBackends ( java . util . Collection < Backend > backends ) { } }
if ( backends == null ) { this . backends = null ; return ; } this . backends = new java . util . ArrayList < Backend > ( backends ) ;
public class InternalXtextParser { /** * InternalXtext . g : 981:1 : ruleAlternatives returns [ EObject current = null ] : ( this _ ConditionalBranch _ 0 = ruleConditionalBranch ( ( ) ( otherlv _ 2 = ' | ' ( ( lv _ elements _ 3_0 = ruleConditionalBranch ) ) ) + ) ? ) ; */ public final EObject ruleAlternatives ( ) throw...
EObject current = null ; Token otherlv_2 = null ; EObject this_ConditionalBranch_0 = null ; EObject lv_elements_3_0 = null ; enterRule ( ) ; try { // InternalXtext . g : 987:2 : ( ( this _ ConditionalBranch _ 0 = ruleConditionalBranch ( ( ) ( otherlv _ 2 = ' | ' ( ( lv _ elements _ 3_0 = ruleConditionalBranch ) ) ) + )...
public class UserGroupManager { /** * Undelete the user group with the specified ID . * @ param sUserGroupID * The ID of the user group to undelete * @ return { @ link EChange # CHANGED } if the user group was undeleted , * { @ link EChange # UNCHANGED } otherwise . */ @ Nonnull public EChange undeleteUserGroup...
final UserGroup aUserGroup = getOfID ( sUserGroupID ) ; if ( aUserGroup == null ) { AuditHelper . onAuditUndeleteFailure ( UserGroup . OT , sUserGroupID , "no-such-id" ) ; return EChange . UNCHANGED ; } m_aRWLock . writeLock ( ) . lock ( ) ; try { if ( BusinessObjectHelper . setUndeletionNow ( aUserGroup ) . isUnchange...
public class WebSocketConnectionManager { /** * Send JSON representation of given data object to all connections of a user * @ param data the data object * @ param username the username */ public void sendJsonToUser ( Object data , String username ) { } }
sendToUser ( JSON . toJSONString ( data ) , username ) ;
public class BannerComponentTree { /** * Parses the banner components and processes them using the nodeCreators in the order they * were originally passed * @ param bannerText to parse * @ return the list of nodes representing the bannerComponents */ private List < BannerComponentNode > parseBannerComponents ( Ba...
int length = 0 ; List < BannerComponentNode > bannerComponentNodes = new ArrayList < > ( ) ; for ( BannerComponents components : bannerText . components ( ) ) { BannerComponentNode node = null ; for ( NodeCreator nodeCreator : nodeCreators ) { if ( nodeCreator . isNodeType ( components ) ) { node = nodeCreator . setupN...
public class JMSService { /** * Produces topic message . Uses JmsTemplate to send to local broker and forwards ( based on * demand ) to broker network . * @ param destinationName The destination name . * @ param messageData The message data . * @ param recipients Comma - delimited list of recipient ids . */ pub...
Message msg = createObjectMessage ( messageData , "anonymous" , recipients ) ; sendMessage ( destinationName , msg ) ;
public class OAuthManager { /** * permissions */ public List < OAuthPermission > convertScopeToPermissions ( Client client , List < String > scopes ) { } }
List < OAuthPermission > list = new ArrayList < OAuthPermission > ( ) ; for ( String scope : scopes ) { if ( scope . equals ( OAuthConstants . READ_CALENDAR_SCOPE ) ) { list . add ( READ_CALENDAR_PERMISSION ) ; } else if ( scope . startsWith ( OAuthConstants . UPDATE_CALENDAR_SCOPE ) ) { String description = OAuthConst...
public class Wiselenium { /** * Decorates a list of webElements . * @ param clazz The class of the decorated elements . Must be either WebElement or a type * annotated with Component or Frame . * @ param webElements The webElements that will be decorated . * @ return The list of decorated elements or an empty l...
List < E > elements = Lists . newArrayList ( ) ; for ( WebElement webElement : webElements ) { E element = decorateElement ( clazz , webElement ) ; if ( element != null ) elements . add ( element ) ; } return elements ;
public class CreateProgrammaticProductTemplates { /** * 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 erro...
ProductTemplateServiceInterface productTemplateService = adManagerServices . get ( session , ProductTemplateServiceInterface . class ) ; NetworkServiceInterface networkService = adManagerServices . get ( session , NetworkServiceInterface . class ) ; // Create a programmatic product template . ProductTemplate productTem...
public class DescribeVoicesRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DescribeVoicesRequest describeVoicesRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( describeVoicesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeVoicesRequest . getLanguageCode ( ) , LANGUAGECODE_BINDING ) ; protocolMarshaller . marshall ( describeVoicesRequest . getIncludeAdditionalLanguageCodes ( ...
public class PathAndQuery { /** * According to RFC 3986 section 3.3 , path can contain a colon , except the first segment . * < p > Should allow the asterisk character in the path , query , or fragment components of a URL ( RFC2396 ) . * @ see < a href = " https : / / tools . ietf . org / html / rfc3986 # section -...
final int length = path . length ; for ( int i = 1 ; i < length ; i ++ ) { final byte b = path . data [ i ] ; if ( b == '/' ) { break ; } if ( b == ':' ) { return true ; } } return false ;
public class DistributedIdQueue { /** * Put an item into the queue with the given Id < br > < br > * NOTE : if an upper bound was set via { @ link QueueBuilder # maxItems } , this method will * block until there is available space in the queue . * @ param item item * @ param itemId item Id * @ throws Exceptio...
put ( item , itemId , 0 , null ) ;
public class AtomicSharedReference { /** * Call some function f on a threadsafe copy of the reference we are storing . * Should be used if you expect the function to take a while to run . * Saving the value of T after this call returns is COMPLETELY UNSAFE . Don ' t do it . * @ param f lambda ( T x ) * @ param ...
final @ Nullable SharedReference < T > localRef = getCopy ( ) ; try { if ( localRef == null ) { return f . apply ( null ) ; } else { return f . apply ( localRef . get ( ) ) ; } } finally { if ( localRef != null ) localRef . close ( ) ; }
public class RedisConnectionException { /** * Create a new { @ link RedisConnectionException } given { @ code remoteAddress } and the { @ link Throwable cause } . * @ param remoteAddress remote address . * @ param cause the nested exception . * @ return the { @ link RedisConnectionException } . * @ since 5.1 */...
if ( remoteAddress == null ) { if ( cause instanceof RedisConnectionException ) { return new RedisConnectionException ( cause . getMessage ( ) , cause . getCause ( ) ) ; } return new RedisConnectionException ( null , cause ) ; } return new RedisConnectionException ( String . format ( "Unable to connect to %s" , remoteA...
public class Configurator { /** * A method which does the following : * - discovers all Fields or Methods within the protocol stack which set * InetAddress , IpAddress , InetSocketAddress ( and Lists of such ) for which the user * has * * specified a default value . * - stores the resulting set of Fields and Me...
// Map protocol - > Map < String , InetAddressInfo > , where the latter is protocol specific Map < String , Map < String , InetAddressInfo > > inetAddressMap = new HashMap < > ( ) ; // collect InetAddressInfo for ( int i = 0 ; i < protocol_configs . size ( ) ; i ++ ) { ProtocolConfiguration protocol_config = protocol_c...
public class FuchsiaUtils { /** * Return the BundleCapability of a bundle exporting the package packageName . * @ param context The BundleContext * @ param packageName The package name * @ return the BundleCapability of a bundle exporting the package packageName */ private static BundleCapability getExportedPacka...
List < BundleCapability > packages = new ArrayList < BundleCapability > ( ) ; for ( Bundle bundle : context . getBundles ( ) ) { BundleRevision bundleRevision = bundle . adapt ( BundleRevision . class ) ; for ( BundleCapability packageCapability : bundleRevision . getDeclaredCapabilities ( BundleRevision . PACKAGE_NAME...
public class CountSqlParser { /** * 处理WithItem * @ param withItemsList */ public void processWithItemsList ( List < WithItem > withItemsList ) { } }
if ( withItemsList != null && withItemsList . size ( ) > 0 ) { for ( WithItem item : withItemsList ) { processSelectBody ( item . getSelectBody ( ) ) ; } }
public class Nfs3 { /** * / * ( non - Javadoc ) * @ see com . emc . ecs . nfsclient . nfs . Nfs # sendMknod ( com . emc . ecs . nfsclient . nfs . NfsMknodRequest ) */ public Nfs3MknodResponse sendMknod ( NfsMknodRequest request ) throws IOException { } }
Nfs3MknodResponse response = new Nfs3MknodResponse ( ) ; _rpcWrapper . callRpcNaked ( request , response ) ; return response ;
public class JellyBuilder { /** * Captures the XML fragment generated by the given closure into dom4j DOM tree * and return the root element . * @ return null * if nothing was generated . */ public Element redirectToDom ( Closure c ) { } }
SAXContentHandler sc = new SAXContentHandler ( ) ; with ( new XMLOutput ( sc ) , c ) ; return sc . getDocument ( ) . getRootElement ( ) ;
public class AutoScalingPolicyUpdateMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AutoScalingPolicyUpdate autoScalingPolicyUpdate , ProtocolMarshaller protocolMarshaller ) { } }
if ( autoScalingPolicyUpdate == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( autoScalingPolicyUpdate . getPolicyName ( ) , POLICYNAME_BINDING ) ; protocolMarshaller . marshall ( autoScalingPolicyUpdate . getTargetTrackingScalingPolicyConf...
public class KeyVaultClientCustomImpl { /** * List certificates in the specified vault . * @ param vaultBaseUrl * The vault name , e . g . https : / / myvault . vault . azure . net * @ param serviceCallback * the async ServiceCallback to handle successful and failed * responses . * @ return the { @ link Ser...
return getCertificatesAsync ( vaultBaseUrl , serviceCallback ) ;
public class DoradusClient { /** * Retrieve the map of commands keyed by service name * @ return map of commands */ public Map < String , List < String > > listCommands ( ) { } }
Map < String , List < String > > result = new HashMap < String , List < String > > ( ) ; for ( String cat : restMetadataJson . keySet ( ) ) { JsonObject commands = restMetadataJson . getJsonObject ( cat ) ; List < String > names = new ArrayList < String > ( ) ; for ( String commandName : commands . keySet ( ) ) { names...
public class ApiOvhMe { /** * Initiate an email change procedure * REST : POST / me / changeEmail * @ param newEmail [ required ] New email to associate to your account */ public OvhTask changeEmail_POST ( String newEmail ) throws IOException { } }
String qPath = "/me/changeEmail" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "newEmail" , newEmail ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ;
public class GetResponseUnmarshaller { /** * { @ inheritDoc } */ @ Override protected void onInt ( Integer val , String fieldName , JsonParser jp ) { } }
if ( resultStarted ) { found = true ; ClassUtil . setSilent ( entity , fieldName , val ) ; }
public class MetaDataService { /** * Create or replace * @ param entity entity * @ return is success */ public boolean createOrReplaceEntity ( Entity entity ) { } }
String entityName = entity . getName ( ) ; checkEntityIsEmpty ( entityName ) ; QueryPart < Entity > queryPart = new Query < Entity > ( "entities" ) . path ( entityName , true ) ; return httpClientManager . updateMetaData ( queryPart , put ( entity ) ) ;
public class RetryPolicy { /** * Specifies when retries should be aborted . Any failure that is assignable from the { @ code failures } will be result * in retries being aborted . * @ throws NullPointerException if { @ code failures } is null * @ throws IllegalArgumentException if failures is null or empty */ pub...
Assert . notNull ( failures , "failures" ) ; Assert . isTrue ( ! failures . isEmpty ( ) , "failures cannot be empty" ) ; abortConditions . add ( failurePredicateFor ( failures ) ) ; return this ;
public class ProcessEventCommand { /** * { @ inheritDoc } */ @ Override public void perform ( final Wave wave ) { } }
final JRebirthEvent event = wave . get ( EditorWaves . EVENT ) ; if ( event . eventType ( ) . name ( ) . startsWith ( "CREATE" ) ) { createBallModel ( event ) ; } else if ( event . eventType ( ) . name ( ) . startsWith ( "ACCESS" ) ) { accessBallModel ( event ) ; } else if ( event . eventType ( ) . name ( ) . startsWit...
public class EmailServiceImpl { /** * Instantiates and sets up a new { @ link SessionStrategy } instance and assigns a reference to it in the new setup object passed in . * @ param config The configuration to pull the class name for the class to instantiate . * @ param props The properties to configure the new { @ ...
SessionStrategy strategy ; Class < ? > ssc = Class . forName ( config . getSessionStrategy ( ) ) ; if ( SessionStrategy . class . isAssignableFrom ( ssc ) ) { strategy = ( ( Class < SessionStrategy > ) ssc ) . newInstance ( ) ; strategy . configure ( props ) ; newSetup . sessionStrategy = strategy ; } else { throw new ...
public class FileUtils { /** * Create directories needed based on configuration . * @ param configuration * @ throws IOException */ public static void createDirectoriesOnWorker ( SubProcessConfiguration configuration ) throws IOException { } }
try { Path path = Paths . get ( configuration . getWorkerPath ( ) ) ; if ( ! path . toFile ( ) . exists ( ) ) { Files . createDirectories ( path ) ; LOG . info ( String . format ( "Created Folder %s " , path . toFile ( ) ) ) ; } } catch ( FileAlreadyExistsException ex ) { LOG . warn ( String . format ( " Tried to creat...
public class ProposalLineItem { /** * Sets the baseRate value for this ProposalLineItem . * @ param baseRate * The base rate of the { @ code ProposalLineItem } in proposal currency . * < span class = " constraint Applicable " > This attribute is applicable when : < ul > < li > using * programmatic guaranteed , us...
this . baseRate = baseRate ;