signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class sslvserver { /** * Use this API to unset the properties of sslvserver resource . * Properties that need to be unset are specified in args array . */ public static base_response unset ( nitro_service client , sslvserver resource , String [ ] args ) throws Exception { } }
sslvserver unsetresource = new sslvserver ( ) ; unsetresource . vservername = resource . vservername ; return unsetresource . unset_resource ( client , args ) ;
public class Parser { /** * A { @ link Parser } that first runs { @ code before } from the input start , * then runs { @ code after } from the input ' s end , and only * then runs { @ code this } on what ' s left from the input . * In effect , { @ code this } behaves reluctantly , giving * { @ code after } a ch...
return new ReluctantBetweenParser < T > ( before , this , after ) ;
public class SelectPictureActivity { /** * Method which will process the captured image */ @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } }
super . onActivityResult ( requestCode , resultCode , data ) ; // verify if the image was gotten successfully if ( requestCode == REQUEST_TAKE_CAMERA_PHOTO && resultCode == Activity . RESULT_OK ) { new ImageCompressionAsyncTask ( this ) . execute ( mCurrentPhotoPath , Environment . getExternalStoragePublicDirectory ( E...
public class FieldMarshaller { /** * Returns true if we should use the generated field marshaller methods that allow us to work * around our inability to read and write protected and private fields of a { @ link Streamable } . */ protected static boolean useFieldAccessors ( ) { } }
try { SecurityManager security = System . getSecurityManager ( ) ; if ( security != null ) { security . checkPermission ( new ReflectPermission ( "suppressAccessChecks" ) ) ; } return false ; } catch ( SecurityException se ) { return true ; }
public class AnnotationInfo { /** * アノテーションの属性名を指定して 、 アノテーションの値を取得する 。 * @ param name 属性名 。 * @ return 存在しない属性名の場合 、 nullを返します 。 */ public String getAttribute ( final String name ) { } }
for ( AttributeInfo item : attributes ) { if ( item . name . equals ( name ) ) { return item . value ; } } return null ;
public class TargetSpecifications { /** * { @ link Specification } for retrieving { @ link Target } s by " like attribute * value " . * @ param searchText * to be filtered on * @ return the { @ link Target } { @ link Specification } */ public static Specification < JpaTarget > likeAttributeValue ( final String ...
return ( targetRoot , query , cb ) -> { final String searchTextToLower = searchText . toLowerCase ( ) ; final MapJoin < JpaTarget , String , String > attributeMap = targetRoot . join ( JpaTarget_ . controllerAttributes , JoinType . LEFT ) ; query . distinct ( true ) ; return cb . like ( cb . lower ( attributeMap . valu...
public class TransformationDescription { /** * Adds a split regex transformation step to the transformation description . The value of the source field is split * based on the split string as regular expression into parts . Based on the given index , the result will be set to * the target field . The index needs to...
TransformationStep step = new TransformationStep ( ) ; step . setTargetField ( targetField ) ; step . setSourceFields ( sourceField ) ; step . setOperationParameter ( TransformationConstants . REGEX_PARAM , regexString ) ; step . setOperationParameter ( TransformationConstants . INDEX_PARAM , index ) ; step . setOperat...
public class NodeEntryImpl { /** * Extract the port string from a string in the pattern " hostname : port " * @ param host the hostname * @ return the extracted port string , or null if the pattern is not matched . */ public static String extractPort ( final String host ) { } }
if ( containsPort ( host ) ) { return host . substring ( host . indexOf ( ":" ) + 1 , host . length ( ) ) ; } else { return null ; }
public class LimitedInputStream { /** * / * ( non - Javadoc ) * @ see java . io . InputStream # read ( byte [ ] , int , int ) */ @ Override public int read ( byte [ ] b , int off , int len ) throws IOException { } }
int bytes = inner . read ( b , off , Math . min ( len , remaining ) ) ; if ( bytes > 0 ) { remaining -= bytes ; } return bytes ;
public class DiagnosticsInner { /** * Get Detectors . * Get Detectors . * @ param nextPageLink The NextLink from the previous successful call to List operation . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ throws DefaultErrorResponseException thrown if the request is rejecte...
ServiceResponse < Page < DetectorDefinitionInner > > response = listSiteDetectorsSlotNextSinglePageAsync ( nextPageLink ) . toBlocking ( ) . single ( ) ; return new PagedList < DetectorDefinitionInner > ( response . body ( ) ) { @ Override public Page < DetectorDefinitionInner > nextPage ( String nextPageLink ) { retur...
public class InternalTransaction { /** * Create the extrnal transaction for use by the public interface * from this InternalTransaction . * To detect orphaned Transactions , ie . Transactions not referenced elsewhere in the JVM , * we will keep a reference to the internalTransaction and make a weak reference to t...
final String methodName = "getExternalTransaction" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName ) ; Transaction transaction = null ; // For return . if ( transactionReference != null ) transaction = ( Transaction ) transactionReference . get ( ) ; i...
public class RevisionDecoder { /** * Decodes a Paste operation . * @ param blockSize _ S * length of a S block * @ param blockSize _ B * length of a B block * @ return DiffPart , Paste operation * @ throws DecodingException * if the decoding failed */ private DiffPart decodePaste ( final int blockSize_S ,...
if ( blockSize_S < 1 || blockSize_B < 1 ) { throw new DecodingException ( "Invalid value for blockSize_S: " + blockSize_S + " or blockSize_B: " + blockSize_B ) ; } int s = r . read ( blockSize_S ) ; int b = r . read ( blockSize_B ) ; DiffPart part = new DiffPart ( DiffAction . PASTE ) ; part . setStart ( s ) ; part . s...
public class Association { /** * Method to initialize the Cache of this CacheObjectInterface . */ public static void initialize ( ) { } }
if ( InfinispanCache . get ( ) . exists ( Association . IDCACHE ) ) { InfinispanCache . get ( ) . < Long , Association > getCache ( Association . IDCACHE ) . clear ( ) ; } else { InfinispanCache . get ( ) . < Long , Association > getCache ( Association . IDCACHE ) . addListener ( new CacheLogListener ( Association . LO...
public class Parent { /** * Gets the parentType value for this Parent . * @ return parentType * < span class = " constraint ReadOnly " > This field is read only and * will be ignored when sent to the API . < / span > */ public com . google . api . ads . adwords . axis . v201809 . cm . ParentParentType getParentType...
return parentType ;
public class DescribeLayersRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DescribeLayersRequest describeLayersRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( describeLayersRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeLayersRequest . getStackId ( ) , STACKID_BINDING ) ; protocolMarshaller . marshall ( describeLayersRequest . getLayerIds ( ) , LAYERIDS_BINDING ) ; } catch...
public class Matrix { /** * Returns whether the matrix is the same as this matrix . * @ param B * @ return */ public boolean eq ( final Matrix B ) { } }
final Matrix A = this ; if ( ( B . m_rows != A . m_rows ) || ( B . m_columns != A . m_columns ) ) { return false ; } for ( int i = 0 ; i < m_rows ; i ++ ) { for ( int j = 0 ; j < m_columns ; j ++ ) { if ( A . m_data [ i ] [ j ] != B . m_data [ i ] [ j ] ) { return false ; } } } return true ;
public class AbstractInconsistencyRepair { /** * Rollback data . */ protected void rollback ( WorkspaceStorageConnection conn ) { } }
try { if ( conn != null ) { conn . rollback ( ) ; } } catch ( IllegalStateException e ) { LOG . error ( "Can not rollback connection" , e ) ; } catch ( RepositoryException e ) { LOG . error ( "Can not rollback connection" , e ) ; }
public class DenseDoubleMatrix { /** * Sets the row to a given double array . */ public void setRow ( int row , double [ ] value ) { } }
for ( int i = 0 ; i < value . length ; i ++ ) { this . matrix [ translate ( row , i , numRows ) ] = value [ i ] ; }
public class TimerUtil { /** * The event definition on which the timer is based . * Takes in an optional execution , if missing the { @ link NoExecutionVariableScope } will be used ( eg Timer start event ) */ public static TimerJobEntity createTimerEntityForTimerEventDefinition ( TimerEventDefinition timerEventDefini...
ProcessEngineConfigurationImpl processEngineConfiguration = Context . getProcessEngineConfiguration ( ) ; String businessCalendarRef = null ; Expression expression = null ; ExpressionManager expressionManager = processEngineConfiguration . getExpressionManager ( ) ; // ACT - 1415 : timer - declaration on start - event ...
public class MultiFormatter { /** * httl . properties : formatters + = httl . spi . formatters . NumberFormatter */ public void setFormatters ( Formatter < ? > [ ] formatters ) { } }
if ( formatters != null && formatters . length > 0 ) { for ( Formatter < ? > formatter : formatters ) { if ( formatter != null ) { Class < ? > type = ClassUtils . getGenericClass ( formatter . getClass ( ) ) ; if ( type != null ) { this . formatters . put ( type , formatter ) ; } } } Map < Class < ? > , Formatter < ? >...
public class SigarNativeBindingLoader { /** * Extracts the native bindings for sigar and tells sigar where to find them . * @ return < code > false < / code > , if sigar has already been set up , < code > true < / code > otherwise * @ throws Exception */ public static boolean loadNativeSigarBindings ( ) throws Exce...
final String sigarPath = System . getProperty ( SIGAR_PATH ) ; if ( sigarPath != null ) { // sigar is already set up return false ; } final File tempDirectory = new File ( System . getProperty ( "java.io.tmpdir" ) , "sigar" ) ; tempDirectory . mkdir ( ) ; loadNativeSigarBindings ( tempDirectory ) ; return true ;
public class MongoIndexSetService { /** * { @ inheritDoc } */ @ Override public List < IndexSetConfig > findPaginated ( Set < String > indexSetIds , int limit , int skip ) { } }
final List < DBQuery . Query > idQuery = indexSetIds . stream ( ) . map ( id -> DBQuery . is ( "_id" , id ) ) . collect ( Collectors . toList ( ) ) ; final DBQuery . Query query = DBQuery . or ( idQuery . toArray ( new DBQuery . Query [ 0 ] ) ) ; return ImmutableList . copyOf ( collection . find ( query ) . sort ( DBSo...
public class AbstractSessionManager { public void stop ( ) { } }
// Invalidate all sessions to cause unbind events ArrayList sessions = new ArrayList ( _sessions . values ( ) ) ; for ( Iterator i = sessions . iterator ( ) ; i . hasNext ( ) ; ) { Session session = ( Session ) i . next ( ) ; session . invalidate ( ) ; } _sessions . clear ( ) ; // stop the scavenger SessionScavenger sc...
public class ElemApplyImport { /** * Add a child to the child list . * < ! ELEMENT xsl : apply - imports EMPTY > * @ param newChild New element to append to this element ' s children list * @ return null , xsl : apply - Imports cannot have children */ public ElemTemplateElement appendChild ( ElemTemplateElement n...
error ( XSLTErrorResources . ER_CANNOT_ADD , new Object [ ] { newChild . getNodeName ( ) , this . getNodeName ( ) } ) ; // " Can not add " + ( ( ElemTemplateElement ) newChild ) . m _ elemName + // " to " + this . m _ elemName ) ; return null ;
public class PolicyAssignmentsInner { /** * Gets a policy assignment . * @ param scope The scope of the policy assignment . * @ param policyAssignmentName The name of the policy assignment to get . * @ param serviceCallback the async ServiceCallback to handle successful and failed responses . * @ throws Illegal...
return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( scope , policyAssignmentName ) , serviceCallback ) ;
public class ParaObjectUtils { /** * Returns a map of the core data types . * @ return a map of type plural - type singular form */ public static Map < String , String > getCoreTypes ( ) { } }
if ( CORE_TYPES . isEmpty ( ) ) { try { for ( Class < ? extends ParaObject > clazz : getCoreClassesMap ( ) . values ( ) ) { ParaObject p = clazz . getConstructor ( ) . newInstance ( ) ; CORE_TYPES . put ( p . getPlural ( ) , p . getType ( ) ) ; } } catch ( Exception ex ) { logger . error ( null , ex ) ; } } return Coll...
public class AbstractTypeConvertingMap { /** * Helper method for obtaining float value from parameter * @ param name The name of the parameter * @ return The double value or null if there isn ' t one */ public Float getFloat ( String name ) { } }
Object o = get ( name ) ; if ( o instanceof Number ) { return ( ( Number ) o ) . floatValue ( ) ; } if ( o != null ) { try { String string = o . toString ( ) ; if ( string != null ) { return Float . parseFloat ( string ) ; } } catch ( NumberFormatException e ) { } } return null ;
public class TopicAdminClient { /** * / * package - private */ final PublishResponse publish ( ProjectTopicName topic , List < PubsubMessage > messages ) { } }
PublishRequest request = PublishRequest . newBuilder ( ) . setTopic ( topic == null ? null : topic . toString ( ) ) . addAllMessages ( messages ) . build ( ) ; return publish ( request ) ;
public class N { /** * Returns the < code > length / 2 + 1 < / code > largest value in the specified array . * @ param a an array , must not be null or empty * @ return the median value in the array * @ see # median ( int . . . ) */ @ SafeVarargs public static char median ( final char ... a ) { } }
N . checkArgNotNullOrEmpty ( a , "The spcified array 'a' can not be null or empty" ) ; return median ( a , 0 , a . length ) ;
public class KerasUpsampling1D { /** * Get layer output type . * @ param inputType Array of InputTypes * @ return output type as InputType * @ throws InvalidKerasConfigurationException Invalid Keras config */ @ Override public InputType getOutputType ( InputType ... inputType ) throws InvalidKerasConfigurationExc...
if ( inputType . length > 1 ) throw new InvalidKerasConfigurationException ( "Keras Upsampling 1D layer accepts only one input (received " + inputType . length + ")" ) ; return this . getUpsampling1DLayer ( ) . getOutputType ( - 1 , inputType [ 0 ] ) ;
public class Scanner { /** * Closes this scanner . * < p > If this scanner has not yet been closed then if its underlying * { @ linkplain java . lang . Readable readable } also implements the { @ link * java . io . Closeable } interface then the readable ' s < tt > close < / tt > method * will be invoked . If t...
if ( closed ) return ; if ( source instanceof Closeable ) { try { ( ( Closeable ) source ) . close ( ) ; } catch ( IOException ioe ) { lastException = ioe ; } } sourceClosed = true ; source = null ; closed = true ;
public class SFSSLConnectionSocketFactory { /** * Decide cipher suites that will be passed into the SSLConnectionSocketFactory * @ return List of cipher suites . */ private static String [ ] decideCipherSuites ( ) { } }
String sysCipherSuites = System . getProperty ( "https.cipherSuites" ) ; String [ ] cipherSuites = sysCipherSuites != null ? sysCipherSuites . split ( "," ) : // use jdk default cipher suites ( ( SSLServerSocketFactory ) SSLServerSocketFactory . getDefault ( ) ) . getDefaultCipherSuites ( ) ; // cipher suites need to b...
public class PJsonArray { /** * Get the element as a boolean . * @ param i the index of the element to access */ @ Override public final boolean getBool ( final int i ) { } }
try { return this . array . getBoolean ( i ) ; } catch ( JSONException e ) { throw new ObjectMissingException ( this , "[" + i + "]" ) ; }
public class PrettySharedPreferences { /** * Call to get a { @ link com . tale . prettysharedpreferences . FloatEditor } object for the specific * key . < code > NOTE : < / code > There is a unique { @ link com . tale . prettysharedpreferences . TypeEditor } * object for a unique key . * @ param key The name of t...
TypeEditor typeEditor = TYPE_EDITOR_MAP . get ( key ) ; if ( typeEditor == null ) { typeEditor = new FloatEditor ( this , sharedPreferences , key ) ; TYPE_EDITOR_MAP . put ( key , typeEditor ) ; } else if ( ! ( typeEditor instanceof FloatEditor ) ) { throw new IllegalArgumentException ( String . format ( "key %s is alr...
public class TypeCheck { /** * This is the meat of the type checking . It is basically one big switch , * with each case representing one type of parse tree node . The individual * cases are usually pretty straightforward . * @ param t The node traversal object that supplies context , such as the * scope chain ...
JSType childType ; JSType leftType ; JSType rightType ; Node left ; Node right ; // To be explicitly set to false if the node is not typeable . boolean typeable = true ; switch ( n . getToken ( ) ) { case CAST : Node expr = n . getFirstChild ( ) ; JSType exprType = getJSType ( expr ) ; JSType castType = getJSType ( n )...
public class Box { /** * Sets the box parameters to the values contained in the supplied vectors . * @ return a reference to this box , for chaining . */ public Box set ( IVector3 minExtent , IVector3 maxExtent ) { } }
_minExtent . set ( minExtent ) ; _maxExtent . set ( maxExtent ) ; return this ;
public class RecommendationsInner { /** * Reset all recommendation opt - out settings for an app . * Reset all recommendation opt - out settings for an app . * @ param resourceGroupName Name of the resource group to which the resource belongs . * @ param siteName Name of the app . * @ throws IllegalArgumentExce...
resetAllFiltersForWebAppWithServiceResponseAsync ( resourceGroupName , siteName ) . toBlocking ( ) . single ( ) . body ( ) ;
public class ZipUtils { /** * Attempt to recursively delete a file . * Do not retry in case of a failure . * A test must be done to verify that the file exists before * invoking this method : If the file does not exist , the * delete operation will fail . * @ param file The file to recursively delete . * @ ...
String methodName = "delete" ; String filePath ; if ( tc . isDebugEnabled ( ) ) { filePath = file . getAbsolutePath ( ) ; } else { filePath = null ; } if ( file . isDirectory ( ) ) { if ( filePath != null ) { Tr . debug ( tc , methodName + ": Delete directory [ " + filePath + " ]" ) ; } File firstFailure = null ; File ...
public class ParameterParser { /** * Parse the arguments . * @ param args arguments * @ return a list of strings which are not parameters , e . g . a list of file * name . */ public List < String > parse ( String [ ] args ) { } }
// merge args & defaults List < String > extras = new ArrayList < > ( ) ; List < String > filteredArgs = filterMonadics ( args ) ; // detect and fill mons for ( int i = 0 ; i < filteredArgs . size ( ) ; i ++ ) { String key = filteredArgs . get ( i ) ; if ( key . equalsIgnoreCase ( "-h" ) || key . equalsIgnoreCase ( "-h...
public class ServiceLocator { /** * This method helps in obtaining the topic factory * @ return the factory for the factory to get topic connections from */ public TopicConnectionFactory getTopicConnectionFactory ( String topicConnFactoryName ) throws ServiceLocatorException { } }
TopicConnectionFactory factory = null ; try { if ( cache . containsKey ( topicConnFactoryName ) ) { factory = ( TopicConnectionFactory ) cache . get ( topicConnFactoryName ) ; } else { factory = ( TopicConnectionFactory ) ic . lookup ( topicConnFactoryName ) ; cache . put ( topicConnFactoryName , factory ) ; } } catch ...
public class GeneralizedParetoDistribution { /** * CDF of GPD distribution * @ param val Value * @ param mu Location parameter mu * @ param sigma Scale parameter sigma * @ param xi Shape parameter xi ( = - kappa ) * @ return CDF at position x . */ public static double cdf ( double val , double mu , double sig...
val = ( val - mu ) / sigma ; // Check support : if ( val < 0 ) { return 0. ; } if ( xi < 0 && val > - 1. / xi ) { return 1. ; } return 1 - FastMath . pow ( 1 + xi * val , - 1. / xi ) ;
public class AbstractDataServiceVisitor { /** * browse valid methods and write equivalent js methods in writer * @ param methodElements * @ param classname * @ param writer * @ return * @ throws IOException */ void browseAndWriteMethods ( List < ExecutableElement > methodElements , String classname , Writer w...
Collection < String > methodProceeds = new ArrayList < > ( ) ; boolean first = true ; for ( ExecutableElement methodElement : methodElements ) { if ( isConsiderateMethod ( methodProceeds , methodElement ) ) { if ( ! first ) { writer . append ( COMMA ) . append ( CR ) ; } visitMethodElement ( classname , methodElement ,...
public class MessageSelectingQueueChannel { /** * Consume messages on the channel via message selector . Timeout forces several retries * with polling interval setting . * @ param selector * @ param timeout * @ return */ public Message < ? > receive ( MessageSelector selector , long timeout ) { } }
long timeLeft = timeout ; Message < ? > message = receive ( selector ) ; while ( message == null && timeLeft > 0 ) { timeLeft -= pollingInterval ; if ( RETRY_LOG . isDebugEnabled ( ) ) { RETRY_LOG . debug ( "No message received with message selector - retrying in " + ( timeLeft > 0 ? pollingInterval : pollingInterval +...
public class PropertiesConfig { /** * Method to read propeties file and store the data */ private void readProperties ( ) { } }
InputStream input = null ; try { input = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( PROP_FILE_NAME ) ; if ( input == null ) { logger . info ( "Unnable to find " + PROP_FILE_NAME ) ; return ; } prop . load ( input ) ; } catch ( Exception e ) { logger . info ( "exception in PropertiesConfig readProperties"...
public class EvaluatorManager { /** * Process an evaluator message that indicates that the evaluator shut down cleanly . * @ param message */ private synchronized void onEvaluatorDone ( final EvaluatorStatusPOJO message ) { } }
assert message . getState ( ) == State . DONE ; LOG . log ( Level . FINEST , "Evaluator {0} done." , getId ( ) ) ; // Send an ACK to the Evaluator . sendEvaluatorControlMessage ( EvaluatorRuntimeProtocol . EvaluatorControlProto . newBuilder ( ) . setTimestamp ( System . currentTimeMillis ( ) ) . setIdentifier ( getId (...
public class Inflector { /** * Generates a camel case version of a phrase from underscore . * @ param underscore underscore version of a word to converted to camel case . * @ param capitalizeFirstChar set to true if first character needs to be capitalized , false if not . * @ return camel case version of undersco...
StringBuilder result = new StringBuilder ( ) ; StringTokenizer st = new StringTokenizer ( underscore , "_" ) ; while ( st . hasMoreTokens ( ) ) { result . append ( capitalize ( st . nextToken ( ) ) ) ; } return capitalizeFirstChar ? result . toString ( ) : result . substring ( 0 , 1 ) . toLowerCase ( ) + result . subst...
public class ManagedObjectFactoryImpl { /** * ( non - Javadoc ) * @ see com . ibm . ws . managedobject . ManagedObjectFactory # createManagedObject ( java . lang . Object , com . ibm . ws . managedobject . ManagedObjectInvocationContext ) */ @ Override public ManagedObject < T > createManagedObject ( T existingInstan...
if ( existingInstance == null ) { throw new IllegalArgumentException ( "Existing instance must not be null" ) ; } return new ManagedObjectImpl < T > ( existingInstance ) ;
public class ServiceObjectivesInner { /** * Gets a database service objective . * @ 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 . * @ param serverName The name of the server . * @ param serviceObjec...
return getWithServiceResponseAsync ( resourceGroupName , serverName , serviceObjectiveName ) . toBlocking ( ) . single ( ) . body ( ) ;
public class Element { /** * Add a new element attribute * @ param attributeName attribute name * @ param attributeValue attribute value * @ throws XmlModelException XML model exception */ public void addAttribute ( String attributeName , String attributeValue ) throws XmlModelException { } }
String name = attributeName . trim ( ) ; String value = attributeValue . trim ( ) ; if ( attributesMap . containsKey ( name ) ) { throw new XmlModelException ( "Duplicate attribute: " + name ) ; } attributeNames . add ( name ) ; attributesMap . put ( name , new Attribute ( name , value ) ) ;
public class ChannelServiceRestAdapter { /** * HTTP POST to create a channel , returns location to new resource which can * then be long polled . Since the channel id may later change to be a UUID , * not using a PUT but rather POST with used id being returned * @ param ccid cluster controller id * @ param atmo...
MediaType . TEXT_PLAIN } ) public Response createChannel ( @ QueryParam ( "ccid" ) String ccid , @ HeaderParam ( ChannelServiceConstants . X_ATMOSPHERE_TRACKING_ID ) String atmosphereTrackingId ) { try { log . info ( "CREATE channel for channel ID: {}" , ccid ) ; if ( ccid == null || ccid . isEmpty ( ) ) throw new Joyn...
public class AmazonRDSClient { /** * Returns information about DB snapshots . This API action supports pagination . * @ param describeDBSnapshotsRequest * @ return Result of the DescribeDBSnapshots operation returned by the service . * @ throws DBSnapshotNotFoundException * < i > DBSnapshotIdentifier < / i > do...
request = beforeClientExecution ( request ) ; return executeDescribeDBSnapshots ( request ) ;
public class VirtualMachineScaleSetsInner { /** * Reimages ( upgrade the operating system ) one or more virtual machines in a VM scale set . * @ param resourceGroupName The name of the resource group . * @ param vmScaleSetName The name of the VM scale set . * @ param serviceCallback the async ServiceCallback to h...
return ServiceFuture . fromResponse ( beginReimageWithServiceResponseAsync ( resourceGroupName , vmScaleSetName ) , serviceCallback ) ;
public class XMLStreamEventsSync { /** * Go successively into the given elements . */ public boolean goInto ( ElementContext rootContext , String ... innerElements ) throws IOException , XMLException { } }
ElementContext parent = rootContext ; for ( int i = 0 ; i < innerElements . length ; ++ i ) { if ( ! nextInnerElement ( parent , innerElements [ i ] ) ) return false ; parent = event . context . getFirst ( ) ; } return true ;
public class EventManager { /** * Register the given observer to be triggered if the given event type is triggered . * @ param event type * @ param observer event observer * @ param < T > relating type */ public < T > void register ( Class < T > event , EventObserver < T > observer ) { } }
if ( event == null ) { throw new IllegalArgumentException ( "Null Event type passed to register" ) ; } if ( observer == null ) { throw new IllegalArgumentException ( "Null observer passed to register" ) ; } nullSafeGet ( event ) . add ( observer ) ;
public class Navigator { /** * Navigates back . If current location is null it doesn ' t take any effect . When controllerClass * is null , navigate to the very first location and clear all history prior to it , otherwise * navigate to location with given locationId and clear history prior to it . Then a * { @ li...
String toLocationId = controllerClass == null ? null : controllerClass . getName ( ) ; navigateBackToLoc ( toLocationId ) ;
public class ListenerCollection { /** * Removes a { @ link org . vaadin . spring . events . internal . ListenerCollection . Listener } previously added by * { @ link # add ( org . vaadin . spring . events . internal . ListenerCollection . Listener ) } . * If no listener definition is found in the collection , nothi...
logger . trace ( "Removing listener [{}]" , listener ) ; synchronized ( listeners ) { listeners . remove ( listener ) ; } synchronized ( weakListeners ) { weakListeners . remove ( listener ) ; }
public class BeanO { /** * Create an interval timer whose first expiration occurs at a given * point in time and whose subsequent expirations occur after a * specified interval . < p > * @ param initialExpiration The point in time at which the first timer * expiration must occur . * @ param intervalDuration T...
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; // F743-425 . CodRev boolean persistent = ( timerConfig == null ? true : timerConfig . isPersistent ( ) ) ; Serializable info = ( timerConfig == null ? ( Serializable ) null : timerConfig . getInfo ( ) ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) {...
public class ChunkImpl { /** * If not already created , a new < code > processor < / code > element with the given value will be created . * Otherwise , the existing < code > processor < / code > element will be returned . * @ return a new or existing instance of < code > ItemProcessor < Chunk < T > > < / code > */...
Node node = childNode . getOrCreate ( "processor" ) ; ItemProcessor < Chunk < T > > processor = new ItemProcessorImpl < Chunk < T > > ( this , "processor" , childNode , node ) ; return processor ;
public class GraphicsUtilities { /** * < p > Returns a new translucent compatible image of the specified width and * height . That is , the returned < code > BufferedImage < / code > is compatible with * the graphics hardware . If the method is called in a headless * environment , then the returned BufferedImage ...
return isHeadless ( ) ? new BufferedImage ( width , height , BufferedImage . TYPE_INT_ARGB ) : getGraphicsConfiguration ( ) . createCompatibleImage ( width , height , Transparency . TRANSLUCENT ) ;
public class appqoecustomresp { /** * Use this API to change appqoecustomresp resources . */ public static base_responses change ( nitro_service client , appqoecustomresp resources [ ] ) throws Exception { } }
base_responses result = null ; if ( resources != null && resources . length > 0 ) { appqoecustomresp updateresources [ ] = new appqoecustomresp [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new appqoecustomresp ( ) ; updateresources [ i ] . name = resources [ i ] ....
public class GlobalMercator { /** * Converts EPSG : 900913 to pyramid pixel coordinates in given zoom level * @ param mx * @ param my * @ param zoom * @ return */ public int [ ] MetersToPixels ( double mx , double my , int zoom ) { } }
double res = Resolution ( zoom ) ; int px = ( int ) Math . round ( ( mx + originShift ) / res ) ; int py = ( int ) Math . round ( ( my + originShift ) / res ) ; return new int [ ] { px , py } ;
public class TeaToolsUtils { /** * Create a version information string based on what the build process * provided . The string is of the form " M . m . r " or * " M . m . r . bbbb " ( i . e . 1.1.0.0004 ) if the build number can be retrieved . * Returns < code > null < / code > if the version string cannot be ret...
if ( packageName == null || packageName . trim ( ) . length ( ) == 0 ) { return null ; } if ( ! packageName . endsWith ( "." ) ) { packageName = packageName + "." ; } String className = packageName + "PackageInfo" ; Class < ? > packageInfoClass = getClassForName ( className ) ; if ( packageInfoClass == null ) { return ...
public class SSLUtils { /** * This method is called for tracing in various places . It returns a string that * represents the buffer including hashcode , position , limit , and capacity . * @ param src * @ param buffer buffer to get debug info on * @ return StringBuilder */ public static StringBuilder getBuffer...
StringBuilder sb = ( null == src ) ? new StringBuilder ( 64 ) : src ; if ( null == buffer ) { return sb . append ( "null" ) ; } sb . append ( "hc=" ) . append ( buffer . hashCode ( ) ) ; sb . append ( " pos=" ) . append ( buffer . position ( ) ) ; sb . append ( " lim=" ) . append ( buffer . limit ( ) ) ; sb . append ( ...
public class ZeroBitCounter { /** * This Java method counts the number of non - set bits ( i . e . , bits that are ' 0 ' ) from 1 to the given number . * Examples : * count _ zero _ bits ( 2 ) - > 1 * count _ zero _ bits ( 5 ) - > 4 * count _ zero _ bits ( 14 ) - > 17 * @ param number The upper limit of the r...
int zeroBitCount = 0 ; for ( int i = 1 ; i <= number ; i ++ ) { int binaryRepresentation = i ; while ( binaryRepresentation != 0 ) { if ( ( binaryRepresentation % 2 ) == 0 ) { zeroBitCount ++ ; } binaryRepresentation = binaryRepresentation / 2 ; } } return zeroBitCount ;
public class CmsContainerpageController { /** * Returns a map of the container drag targets . < p > * @ return the drag targets */ public Map < String , org . opencms . ade . containerpage . client . ui . CmsContainerPageContainer > getContainerTargets ( ) { } }
Map < String , org . opencms . ade . containerpage . client . ui . CmsContainerPageContainer > result = new HashMap < String , org . opencms . ade . containerpage . client . ui . CmsContainerPageContainer > ( ) ; for ( Entry < String , org . opencms . ade . containerpage . client . ui . CmsContainerPageContainer > entr...
public class CollationElementIterator { /** * Set a new source string for iteration , and reset the offset * to the beginning of the text . * @ param source the new source string for iteration . */ public void setText ( String source ) { } }
string_ = source ; // TODO : do we need to remember the source string in a field ? CollationIterator newIter ; boolean numeric = rbc_ . settings . readOnly ( ) . isNumeric ( ) ; if ( rbc_ . settings . readOnly ( ) . dontCheckFCD ( ) ) { newIter = new UTF16CollationIterator ( rbc_ . data , numeric , string_ , 0 ) ; } el...
public class FedoraRepositoryRestore { /** * This method runs a repository restore . * @ param bodyStream the body stream * @ return response * @ throws IOException if IO exception occurred */ @ POST public Response runRestore ( final InputStream bodyStream ) throws IOException { } }
if ( null == bodyStream ) { throw new WebApplicationException ( serverError ( ) . entity ( "Request body must not be null" ) . build ( ) ) ; } final String body = IOUtils . toString ( bodyStream ) ; final File backupDirectory = new File ( body . trim ( ) ) ; if ( ! backupDirectory . exists ( ) ) { throw new WebApplicat...
public class AggregateFunctionRepository { /** * Associates an aggregate function ID with a { @ link VortexAggregateFunction } and a { @ link VortexAggregatePolicy } . */ public Tuple < VortexAggregateFunction , VortexAggregatePolicy > put ( final int aggregateFunctionId , final VortexAggregateFunction aggregateFunctio...
return aggregateFunctionMap . put ( aggregateFunctionId , new Tuple < > ( aggregateFunction , policy ) ) ;
public class IPTC { /** * Reads the IPTC . * @ param tv the TagValue containing the array of bytes of the IPTC */ public void read ( TagValue tv , String filename ) { } }
originalValue = tv . getValue ( ) ; File file = new File ( filename ) ; IIMReader reader = null ; SubIIMInputStream subStream = null ; try { int offset = tv . getReadOffset ( ) ; int length = tv . getReadlength ( ) ; subStream = new SubIIMInputStream ( new FileIIMInputStream ( file ) , offset , length ) ; reader = new ...
public class IPDImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public boolean eIsSet ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . IPD__IOC_ADAT : return IOC_ADAT_EDEFAULT == null ? iocAdat != null : ! IOC_ADAT_EDEFAULT . equals ( iocAdat ) ; case AfplibPackage . IPD__IMAGE_DATA : return IMAGE_DATA_EDEFAULT == null ? imageData != null : ! IMAGE_DATA_EDEFAULT . equals ( imageData ) ; } return super . eIsS...
public class DelegatedClientFactory { /** * Configure bitbucket client . * @ param properties the properties */ protected void configureBitBucketClient ( final Collection < BaseClient > properties ) { } }
val bb = pac4jProperties . getBitbucket ( ) ; if ( StringUtils . isNotBlank ( bb . getId ( ) ) && StringUtils . isNotBlank ( bb . getSecret ( ) ) ) { val client = new BitbucketClient ( bb . getId ( ) , bb . getSecret ( ) ) ; configureClient ( client , bb ) ; LOGGER . debug ( "Created client [{}] with identifier [{}]" ,...
public class PagingParams { /** * Creates a new PagingParams from a list of key - value pairs called tuples . * @ param tuples a list of values where odd elements are keys and the following * even elements are values * @ return a newly created PagingParams . */ public static PagingParams fromTuples ( Object ... t...
AnyValueMap map = AnyValueMap . fromTuples ( tuples ) ; return PagingParams . fromMap ( map ) ;
public class Ra10XmlGen { /** * write Connector Version * @ param out output writer * @ throws IOException io exception */ @ Override void writeConnectorVersion ( Writer out ) throws IOException { } }
out . write ( "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" ) ; writeEol ( out ) ; writeEol ( out ) ; out . write ( "<!--" ) ; writeEol ( out ) ; writeHeader ( null , out ) ; out . write ( "-->" ) ; writeEol ( out ) ; writeEol ( out ) ; out . write ( "<!DOCTYPE connector PUBLIC" ) ; writeEol ( out ) ; out . write ( " \"...
public class Util { /** * Get this image ' s full filename . * @ param filename The filename of this image ( if no path , assumes images / buttons ; if not ext assumes . gif ) . * @ param strSubDirectory The sub - directory . * @ return The full ( relative ) filename for this image . */ public static String getIm...
if ( ( strFilename == null ) || ( strFilename . length ( ) == 0 ) ) return null ; // A null will tell a JButton not to load an image if ( strFilename . indexOf ( '.' ) == - 1 ) strFilename += ".gif" ; strFilename = Util . getFullFilename ( strFilename , strSubDirectory , Constant . IMAGE_LOCATION , true ) ; return strF...
public class DateTimeField { /** * This method gets called when a bound property is changed . * This is required to listen to changes by the date popup control . * @ param evt A PropertyChangeEvent object describing the event source and the property that has changed . */ public void propertyChange ( PropertyChangeE...
if ( MenuConstants . DATE . equalsIgnoreCase ( evt . getPropertyName ( ) ) ) if ( evt . getNewValue ( ) instanceof java . util . Date ) this . setDateTime ( ( java . util . Date ) evt . getNewValue ( ) , true , DBConstants . SCREEN_MOVE ) ;
public class LogLinearXY { /** * Decodes a single example . * @ param model The log - linear model . * @ param ex The example to decode . * @ return A pair containing the most likely label ( i . e . value of y ) and the * distribution over y values . */ public Pair < String , VarTensor > decode ( FgModel model ...
LFgExample ex = getFgExample ( llex ) ; MbrDecoderPrm prm = new MbrDecoderPrm ( ) ; prm . infFactory = getBpPrm ( ) ; MbrDecoder decoder = new MbrDecoder ( prm ) ; decoder . decode ( model , ex ) ; List < VarTensor > marginals = decoder . getVarMarginals ( ) ; VarConfig vc = decoder . getMbrVarConfig ( ) ; String state...
public class DatabaseSession { /** * Free the objects . * This method is called from the remote client , and frees this session . */ public void freeRemoteSession ( ) throws RemoteException { } }
try { if ( m_database . getTableCount ( ) == 0 ) m_database . free ( ) ; // Free if this is my private database , or there are no tables left } catch ( Exception ex ) { ex . printStackTrace ( ) ; } super . freeRemoteSession ( ) ;
public class MessageAPI { /** * 群发消息给用户 。 * 本方法调用需要账户为微信已认证账户 * @ param message 消息主体 * @ param isToAll 是否发送给全部用户 。 false时需要填写groupId , true时可忽略groupId树形 * @ param groupId 群组ID * @ param openIds 群发用户 * @ return 群发结果 * @ deprecated 微信不再建议使用群组概念 , 用标签代替 */ @ Deprecated public GetSendMessageResponse sendMessa...
BeanUtil . requireNonNull ( message , "message is null" ) ; LOG . debug ( "群发消息......" ) ; String url = BASE_API_URL + "cgi-bin/message/mass/sendall?access_token=#" ; final Map < String , Object > params = new HashMap < String , Object > ( ) ; Map < String , Object > filterMap = new HashMap < String , Object > ( ) ; fi...
public class CalendarConverter { /** * Gets the chronology . * If a chronology is specified then it is used . * Otherwise , it is the GJChronology if a GregorianCalendar is used , * BuddhistChronology if a BuddhistCalendar is used or ISOChronology otherwise . * The time zone is extracted from the calendar if po...
if ( chrono != null ) { return chrono ; } Calendar cal = ( Calendar ) object ; DateTimeZone zone = null ; try { zone = DateTimeZone . forTimeZone ( cal . getTimeZone ( ) ) ; } catch ( IllegalArgumentException ex ) { zone = DateTimeZone . getDefault ( ) ; } return getChronology ( cal , zone ) ;
public class Util { /** * Closes { @ code socket } , ignoring any checked exceptions . Does nothing if { @ code socket } is * null . */ public static void closeQuietly ( Socket socket ) { } }
if ( socket != null ) { try { socket . close ( ) ; } catch ( AssertionError e ) { if ( ! isAndroidGetsocknameError ( e ) ) throw e ; } catch ( RuntimeException rethrown ) { throw rethrown ; } catch ( Exception ignored ) { } }
public class VirtualHost { /** * IDNA ASCII conversion , case normalization and validation . */ static String normalizeDefaultHostname ( String defaultHostname ) { } }
requireNonNull ( defaultHostname , "defaultHostname" ) ; if ( needsNormalization ( defaultHostname ) ) { defaultHostname = IDN . toASCII ( defaultHostname , IDN . ALLOW_UNASSIGNED ) ; } if ( ! HOSTNAME_PATTERN . matcher ( defaultHostname ) . matches ( ) ) { throw new IllegalArgumentException ( "defaultHostname: " + def...
public class TokenMatcher { /** * Group list . * @ param groupName the group name * @ return the list */ public List < HString > group ( String groupName ) { } }
return Collections . unmodifiableList ( match . getCaptures ( ) . get ( groupName ) ) ;
public class ProcessStarter { /** * Includes the given System Property as part of the start . * @ param name The System Property Name . * @ param value The System Property Value . This will have toString ( ) invoked on it . * @ return This object instance . */ public ProcessStarter sysProp ( String name , Object ...
this . systemProps . put ( name , value . toString ( ) ) ; return this ;
public class GraphHopperStorage { /** * parses a string like [ a , b , c ] */ private List < String > parseList ( String listStr ) { } }
String trimmed = listStr . trim ( ) ; String [ ] items = trimmed . substring ( 1 , trimmed . length ( ) - 1 ) . split ( "," ) ; List < String > result = new ArrayList < > ( ) ; for ( String item : items ) { String s = item . trim ( ) ; if ( ! s . isEmpty ( ) ) { result . add ( s ) ; } } return result ;
public class JobInProgress { /** * returns the ( cache ) level at which the nodes matches */ private int getMatchingLevelForNodes ( Node n1 , Node n2 ) { } }
int count = 0 ; do { if ( n1 . equals ( n2 ) ) { return count ; } ++ count ; n1 = n1 . getParent ( ) ; n2 = n2 . getParent ( ) ; } while ( n1 != null && n2 != null ) ; return this . maxLevel ;
public class ExceptionUtils { /** * < p > Removes common frames from the cause trace given the two stack traces . < / p > * @ param causeFrames stack trace of a cause throwable * @ param wrapperFrames stack trace of a wrapper throwable * @ throws IllegalArgumentException if either argument is null * @ since 2.0...
if ( causeFrames == null || wrapperFrames == null ) { throw new IllegalArgumentException ( "The List must not be null" ) ; } int causeFrameIndex = causeFrames . size ( ) - 1 ; int wrapperFrameIndex = wrapperFrames . size ( ) - 1 ; while ( causeFrameIndex >= 0 && wrapperFrameIndex >= 0 ) { // Remove the frame from the c...
public class SARLDescriptionLabelProvider { /** * Replies the image for an attribute . * @ param attribute describes the attribute . * @ return the image descriptor . */ public ImageDescriptor image ( SarlField attribute ) { } }
return this . images . forField ( attribute . getVisibility ( ) , this . adornments . get ( this . jvmModelAssociations . getJvmField ( attribute ) ) ) ;
public class MappedJournalSegmentReader { /** * Reads the next entry in the segment . */ @ SuppressWarnings ( "unchecked" ) private void readNext ( ) { } }
// Compute the index of the next entry in the segment . final long index = getNextIndex ( ) ; // Mark the buffer so it can be reset if necessary . buffer . mark ( ) ; try { // Read the length of the entry . final int length = buffer . getInt ( ) ; // If the buffer length is zero then return . if ( length <= 0 || length...
public class TileSet { /** * Returns a prepared version of the image that would be used by the tile at the specified * index . Because tilesets are often used simply to provide access to a collection of uniform * images , this method is provided to bypass the creation of a { @ link Tile } object when all * that i...
Rectangle bounds = computeTileBounds ( tileIndex , new Rectangle ( ) ) ; Mirage mirage = null ; if ( checkTileIndex ( tileIndex ) ) { if ( _improv == null ) { log . warning ( "Aiya! Tile set missing image provider" , "path" , _imagePath ) ; } else { mirage = _improv . getTileImage ( _imagePath , bounds , zations ) ; } ...
public class AttributeService { /** * Get the attributes for a feature , and put them in the feature object . * The attributes are converted lazily if requested by the layer . * The feature is filled into the passed feature object . If the feature should not be visible according to security , * null is returned (...
String layerId = layer . getId ( ) ; Map < String , Attribute > featureAttributes = getRealAttributes ( layer , featureBean ) ; feature . setAttributes ( featureAttributes ) ; // to allow isAttributeReadable to see full object addSyntheticAttributes ( feature , featureAttributes , layer ) ; if ( securityContext . isFea...
public class KeyStoreUtil { /** * Gets an array of trust managers for a given store + password . * @ param pathInfo * @ return * @ throws Exception */ public static TrustManager [ ] getTrustManagers ( Info pathInfo ) throws Exception { } }
File trustStoreFile = new File ( pathInfo . store ) ; if ( ! trustStoreFile . isFile ( ) ) { throw new Exception ( "No TrustManager: " + pathInfo . store + " does not exist." ) ; } String trustStorePassword = pathInfo . password ; TrustManagerFactory tmf = TrustManagerFactory . getInstance ( TrustManagerFactory . getDe...
public class IntStreamEx { /** * Returns a stream consisting of all elements from this stream until the * first element which does not match the given predicate is found * ( including the first mismatching element ) . * This is a < a href = " package - summary . html # StreamOps " > quasi - intermediate * opera...
Objects . requireNonNull ( predicate ) ; return delegate ( new TakeDrop . TDOfInt ( spliterator ( ) , false , true , predicate ) ) ;
public class Node { /** * The user subscribes to the node using the supplied jid . The * bare jid portion of this one must match the jid for the connection . * Please note that the { @ link Subscription . State } should be checked * on return since more actions may be required by the caller . * { @ link Subscri...
PubSub pubSub = createPubsubPacket ( Type . set , new SubscribeExtension ( jid , getId ( ) ) ) ; PubSub reply = sendPubsubPacket ( pubSub ) ; return reply . getExtension ( PubSubElementType . SUBSCRIPTION ) ;
public class CassandraDataHandlerBase { /** * From thrift row . * @ param < E > * the element type * @ param clazz * the clazz * @ param m * the m * @ param tr * the cr * @ return the e * @ throws Exception * the exception */ public < E > E fromThriftRow ( Class < E > clazz , EntityMetadata m , Da...
// Instantiate a new instance E e = null ; // Set row - key . Note : // Get a name - > field map for super - columns Map < String , Field > columnNameToFieldMap = new HashMap < String , Field > ( ) ; Map < String , Field > superColumnNameToFieldMap = new HashMap < String , Field > ( ) ; MetadataUtils . populateColumnAn...
public class JKHttpUtil { /** * Download file to temp . * @ param fileUrl the file url * @ param ext the ext * @ return the file * @ throws IOException Signals that an I / O exception has occurred . */ public static File downloadFileToTemp ( final String fileUrl , final String ext ) throws IOException { } }
final File file = File . createTempFile ( "jk-" , ext ) ; JKHttpUtil . downloadFile ( fileUrl , file . getAbsolutePath ( ) ) ; return file ;
public class RaftContext { /** * Unregisters server handlers on the configured protocol . */ private void unregisterHandlers ( RaftServerProtocol protocol ) { } }
protocol . unregisterOpenSessionHandler ( ) ; protocol . unregisterCloseSessionHandler ( ) ; protocol . unregisterKeepAliveHandler ( ) ; protocol . unregisterMetadataHandler ( ) ; protocol . unregisterConfigureHandler ( ) ; protocol . unregisterInstallHandler ( ) ; protocol . unregisterJoinHandler ( ) ; protocol . unre...
public class DeleteDomainNameRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteDomainNameRequest deleteDomainNameRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteDomainNameRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteDomainNameRequest . getDomainName ( ) , DOMAINNAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON...
public class UrlSyntaxProviderImpl { /** * Tries to determine the encoded from the request , if not available falls back to configured * default . * @ param request The current request . * @ return The encoding to use . */ protected String getEncoding ( HttpServletRequest request ) { } }
final String encoding = request . getCharacterEncoding ( ) ; if ( encoding != null ) { return encoding ; } return this . defaultEncoding ;
public class StringUtils { /** * Parse the given { @ code localeString } value into a { @ link Locale } . * < p > This is the inverse operation of { @ link Locale # toString Locale ' s toString } . * @ param localeString the locale { @ code String } , following { @ code Locale ' s } * { @ code toString ( ) } form...
String [ ] parts = tokenize ( localeString , "_ " , false ) ; String language = ( parts . length > 0 ? parts [ 0 ] : EMPTY ) ; String country = ( parts . length > 1 ? parts [ 1 ] : EMPTY ) ; validateLocalePart ( language ) ; validateLocalePart ( country ) ; String variant = EMPTY ; if ( parts . length > 2 ) { // There ...
public class CommerceCountryPersistenceImpl { /** * Removes all the commerce countries where groupId = & # 63 ; and billingAllowed = & # 63 ; and active = & # 63 ; from the database . * @ param groupId the group ID * @ param billingAllowed the billing allowed * @ param active the active */ @ Override public void ...
for ( CommerceCountry commerceCountry : findByG_B_A ( groupId , billingAllowed , active , QueryUtil . ALL_POS , QueryUtil . ALL_POS , null ) ) { remove ( commerceCountry ) ; }