signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class AbstractPainter { /** * Sets the antialiasing setting . This is a bound property . * @ param value the new antialiasing setting */ public void setAntialiasing ( boolean value ) { } }
boolean old = isAntialiasing ( ) ; antialiasing = value ; if ( old != value ) setDirty ( true ) ; firePropertyChange ( "antialiasing" , old , isAntialiasing ( ) ) ;
public class BaseProfile { /** * generate multi mcf class code * @ param def Definition * @ param className class name * @ param num number of order */ void generateMultiMcfClassCode ( Definition def , String className , int num ) { } }
if ( className == null || className . equals ( "" ) ) return ; if ( num < 0 || num + 1 > def . getMcfDefs ( ) . size ( ) ) return ; try { String clazzName = this . getClass ( ) . getPackage ( ) . getName ( ) + ".code." + className + "CodeGen" ; String javaFile = McfDef . class . getMethod ( "get" + className + "Class" ...
public class BooleanOperation { /** * < div color = ' red ' style = " font - size : 24px ; color : red " > < b > < i > < u > JCYPHER < / u > < / i > < / b > < / div > * < div color = ' red ' style = " font - size : 18px ; color : red " > < i > less than or equal < / i > < / div > * < div color = ' red ' style = " f...
getBooleanOp ( ) . setOperator ( Operator . LTE ) ; return this . operateOn ( value ) ;
public class StringUtils { /** * Trim < i > all < / i > whitespace from the given { @ code String } : leading , trailing , and in between * characters . * @ param str the { @ code String } to check * @ return the trimmed { @ code String } * @ see java . lang . Character # isWhitespace */ public static String tr...
if ( ! StringUtils . hasLength ( str ) ) { return str ; } final int len = str . length ( ) ; final StringBuilder sb = new StringBuilder ( str . length ( ) ) ; for ( int i = 0 ; i < len ; i ++ ) { final char c = str . charAt ( i ) ; if ( ! Character . isWhitespace ( c ) ) { sb . append ( c ) ; } } return sb . toString (...
public class ProxyIterator { /** * Returns the current batch iterator or lazily fetches the next batch from the cluster . * @ return the next batch iterator */ private CompletableFuture < Iterator < T > > batch ( ) { } }
return batch . thenCompose ( iterator -> { if ( iterator != null && ! iterator . hasNext ( ) ) { batch = fetch ( iterator . position ( ) ) ; return batch . thenApply ( Function . identity ( ) ) ; } return CompletableFuture . completedFuture ( iterator ) ; } ) ;
public class DefaultPathMappingContext { /** * Returns a summary string of the given { @ link PathMappingContext } . */ static List < Object > generateSummary ( PathMappingContext mappingCtx ) { } }
requireNonNull ( mappingCtx , "mappingCtx" ) ; // 0 : VirtualHost // 1 : HttpMethod // 2 : Path // 3 : Content - Type // 4 ~ : Accept final List < Object > summary = new ArrayList < > ( 8 ) ; summary . add ( mappingCtx . virtualHost ( ) ) ; summary . add ( mappingCtx . method ( ) ) ; summary . add ( mappingCtx . path (...
public class RaftContext { /** * Sets the state leader . * @ param leader The state leader . */ public void setLeader ( MemberId leader ) { } }
if ( ! Objects . equals ( this . leader , leader ) ) { if ( leader == null ) { this . leader = null ; } else { // If a valid leader ID was specified , it must be a member that ' s currently a member of the // ACTIVE members configuration . Note that we don ' t throw exceptions for unknown members . It ' s // possible t...
public class CmsCmisTypeManager { /** * Creates the base types . * @ throws CmsException if something goes wrong */ void setup ( ) throws CmsException { } }
m_types = new HashMap < String , TypeDefinitionContainerImpl > ( ) ; m_typeList = new ArrayList < TypeDefinitionContainer > ( ) ; m_cmsPropertyDefinitions = m_adminCms . readAllPropertyDefinitions ( ) ; // folder type FolderTypeDefinitionImpl folderType = new FolderTypeDefinitionImpl ( ) ; folderType . setBaseTypeId ( ...
public class ClassGenerator { /** * FieldDescr */ public ClassGenerator addField ( int access , String name , Class < ? > type ) { } }
return addField ( access , name , type , null , null ) ;
public class ExtensionManager { /** * Register a new plugin If < code > extension < / code > is null then a * < code > NullPointerException < / code > is thrown . * @ param extension The extension object to be registered * @ throws RemoteException * @ throws RuntimeFault either because of the web service itself...
if ( extension == null ) { throw new NullPointerException ( ) ; } encodeUrl ( extension ) ; getVimService ( ) . registerExtension ( getMOR ( ) , extension ) ;
public class TodoItem { /** * Returns if a MongoDB document is a todo item . */ public static boolean isTodoItem ( final Document todoItemDoc ) { } }
return todoItemDoc . containsKey ( ID_KEY ) && todoItemDoc . containsKey ( TASK_KEY ) && todoItemDoc . containsKey ( CHECKED_KEY ) ;
public class Promises { /** * Execute promises step by step * @ param queue queue of promises * @ param < T > type of promises * @ return promise */ public static < T > Promise traverse ( List < Supplier < Promise < T > > > queue ) { } }
if ( queue . size ( ) == 0 ) { return Promise . success ( null ) ; } return queue . remove ( 0 ) . get ( ) . flatMap ( v -> traverse ( queue ) ) ;
public class ClassReloadingStrategy { /** * Resets all classes to their original definition while using the first type ' s class loader as a class file locator . * @ param type The types to reset . * @ return This class reloading strategy . * @ throws IOException If a class file locator causes an IO exception . *...
return type . length == 0 ? this : reset ( ClassFileLocator . ForClassLoader . of ( type [ 0 ] . getClassLoader ( ) ) , type ) ;
public class DeepLearning { /** * Cross - Validate a DeepLearning model by building new models on N train / test holdout splits * @ param splits Frames containing train / test splits * @ param cv _ preds Array of Frames to store the predictions for each cross - validation run * @ param offsets Array to store the ...
// Train a clone with slightly modified parameters ( to account for cross - validation ) final DeepLearning cv = ( DeepLearning ) this . clone ( ) ; cv . genericCrossValidation ( splits , offsets , i ) ; cv_preds [ i ] = ( ( DeepLearningModel ) UKV . get ( cv . dest ( ) ) ) . score ( cv . validation ) ; new TAtomic < D...
public class Table { /** * Reports a cell whose positioning has been decided back to the table * so that column bookkeeping can be done . ( Called from * < code > RowGroup < / code > - - not < code > TableChecker < / code > . ) * @ param cell a cell whose position has been calculated */ void cell ( Cell cell ) { ...
int left = cell . getLeft ( ) ; int right = cell . getRight ( ) ; // first see if we ' ve got a cell past the last col if ( right > realColumnCount ) { // are we past last col entirely ? if ( left == realColumnCount ) { // single col ? if ( left + 1 != right ) { appendColumnRange ( new ColumnRange ( cell . elementName ...
public class SliceUtf8 { /** * Tries to get the UTF - 8 encoded code point at the { @ code position } . A positive * return value means the UTF - 8 sequence at the position is valid , and the result * is the code point . A negative return value means the UTF - 8 sequence at the * position is invalid , and the len...
// Process first byte byte firstByte = utf8 . getByte ( position ) ; int length = lengthOfCodePointFromStartByteSafe ( firstByte ) ; if ( length < 0 ) { return length ; } if ( length == 1 ) { // normal ASCII // 0xxx _ xxxx return firstByte ; } // Process second byte if ( position + 1 >= utf8 . length ( ) ) { return - 1...
public class OctetUtil { /** * Convert integer ( 4 octets ) value to bytes . * @ param value as 4 bytes representing integer in bytes . * @ return */ public static byte [ ] intToBytes ( int value ) { } }
byte [ ] result = new byte [ 4 ] ; result [ 0 ] = ( byte ) ( value >> 24 & 0xff ) ; result [ 1 ] = ( byte ) ( value >> 16 & 0xff ) ; result [ 2 ] = ( byte ) ( value >> 8 & 0xff ) ; result [ 3 ] = ( byte ) ( value & 0xff ) ; return result ;
public class Promise { /** * Called after success or failure * @ param afterHandler after handler * @ return this */ public Promise < T > after ( final ConsumerDouble < T , Exception > afterHandler ) { } }
then ( t -> afterHandler . apply ( t , null ) ) ; failure ( e -> afterHandler . apply ( null , e ) ) ; return this ;
public class StochasticGradientBoosting { /** * Sets the learning rate of the algorithm . The GB version uses a learning * rate of 1 . SGB uses a learning rate in ( 0,1 ) to avoid overfitting . The * learning rate is multiplied by the output of each weak learner to reduce * its contribution . * @ param learning...
// + - Inf case captured in > 1 < = 0 case if ( learningRate > 1 || learningRate <= 0 || Double . isNaN ( learningRate ) ) throw new ArithmeticException ( "Invalid learning rate" ) ; this . learningRate = learningRate ;
public class Date { /** * Attempts to interpret the string < tt > s < / tt > as a representation * of a date and time . If the attempt is successful , the time * indicated is returned represented as the distance , measured in * milliseconds , of that time from the epoch ( 00:00:00 GMT on * January 1 , 1970 ) . ...
int year = Integer . MIN_VALUE ; int mon = - 1 ; int mday = - 1 ; int hour = - 1 ; int min = - 1 ; int sec = - 1 ; int millis = - 1 ; int c = - 1 ; int i = 0 ; int n = - 1 ; int wst = - 1 ; int tzoffset = - 1 ; int prevc = 0 ; syntax : { if ( s == null ) break syntax ; int limit = s . length ( ) ; while ( i < limit ) {...
public class PackageManagerHelper { /** * Set up http client with credentials * @ return Http client */ public CloseableHttpClient getHttpClient ( ) { } }
try { URI crxUri = new URI ( props . getPackageManagerUrl ( ) ) ; final AuthScope authScope = new AuthScope ( crxUri . getHost ( ) , crxUri . getPort ( ) ) ; final Credentials credentials = new UsernamePasswordCredentials ( props . getUserId ( ) , props . getPassword ( ) ) ; final CredentialsProvider credsProvider = ne...
public class AbstractStructuredRenderer { /** * Renders information about the components . * @ return a string builder ( never null ) * @ throws IOException */ private StringBuilder renderComponents ( ) throws IOException { } }
StringBuilder sb = new StringBuilder ( ) ; sb . append ( renderTitle1 ( this . messages . get ( "components" ) ) ) ; // $ NON - NLS - 1 $ sb . append ( renderParagraph ( this . messages . get ( "components.intro" ) ) ) ; // $ NON - NLS - 1 $ List < String > sectionNames = new ArrayList < > ( ) ; List < Component > allC...
public class IosApplicationBundle { /** * The list of device types on which this application can run . */ public List < String > deviceTypes ( ) { } }
Integer count = json ( ) . size ( DEVICE_FAMILIES ) ; List < String > deviceTypes = new ArrayList < String > ( count ) ; for ( int i = 0 ; i < count ; i ++ ) { String familyNumber = json ( ) . stringValue ( DEVICE_FAMILIES , i ) ; if ( familyNumber . equals ( "1" ) ) deviceTypes . add ( "iPhone" ) ; if ( familyNumber ....
public class MultiplePermissionListenerThreadDecorator { /** * Decorates de permission listener execution with a given thread * @ param permissions The permissions that has been requested . Collections of values found in * { @ link android . Manifest . permission } * @ param token Token used to continue or cancel...
thread . execute ( new Runnable ( ) { @ Override public void run ( ) { listener . onPermissionRationaleShouldBeShown ( permissions , token ) ; } } ) ;
public class CacheEventDispatcherImpl { /** * { @ inheritDoc } */ @ Override @ SuppressWarnings ( "unchecked" ) public List < CacheConfigurationChangeListener > getConfigurationChangeListeners ( ) { } }
List < CacheConfigurationChangeListener > configurationChangeListenerList = new ArrayList < > ( ) ; configurationChangeListenerList . add ( event -> { if ( event . getProperty ( ) . equals ( CacheConfigurationProperty . ADD_LISTENER ) ) { registerCacheEventListener ( ( EventListenerWrapper < K , V > ) event . getNewVal...
public class SimulatorSettings { /** * Set the Accessibility preferences . Overrides the values in ' com . apple . Accessibility . plist ' file . */ public void setAccessibilityOptions ( ) { } }
// Not enabling ApplicationAccessibility may cause intruments to fail with the error // ScriptAgent [ 1170:2f07 ] Failed to enable accessiblity , kAXErrorServerNotFound // The above error is more prominent in Xcode5.1.1 when tested under OSX 10.9.5 // Setting ApplicationAccessibilityEnabled for Xcode6.0 File folder = n...
public class Precision { /** * Returns true if both arguments are equal or within the range of allowed * error ( inclusive ) . * Two float numbers are considered equal if there are { @ code ( maxUlps - 1 ) } * ( or fewer ) floating point numbers between them , i . e . two adjacent * floating point numbers are c...
final long xInt = Double . doubleToRawLongBits ( x ) ; final long yInt = Double . doubleToRawLongBits ( y ) ; final boolean isEqual ; if ( ( ( xInt ^ yInt ) & SGN_MASK ) == 0L ) { // number have same sign , there is no risk of overflow isEqual = Math . abs ( xInt - yInt ) <= maxUlps ; } else { // number have opposite s...
public class VersionSet { /** * Get the max range , the min range , and then return a range based on those * values . * UNLESS * there are only a limited number of ranges here , in which case * return them all . * @ see net . ossindex . version . IVersionRange # getSimplifiedRange ( ) */ @ Override public IVersio...
if ( set . size ( ) < 5 ) { return this ; } IVersion max = null ; IVersion min = null ; for ( IVersion v : set ) { if ( max == null ) { max = v ; } else { if ( v . compareTo ( max ) > 0 ) { max = v ; } } if ( min == null ) { min = v ; } else { if ( v . compareTo ( min ) < 0 ) { min = v ; } } } return new BoundedVersion...
public class LoganSquare { /** * Serialize a parameterized object to an OutputStream . * @ param object The object to serialize . * @ param parameterizedType The ParameterizedType describing the object . Ex : LoganSquare . serialize ( object , new ParameterizedType & lt ; MyModel & lt ; OtherModel & gt ; & gt ; ( )...
mapperFor ( parameterizedType ) . serialize ( object , os ) ;
public class DeprecatedListWriter { /** * Generate the deprecated API list . * @ param deprapi list of deprecated API built already . * @ throws DocFileIOException if there is a problem writing the deprecated list */ protected void generateDeprecatedListFile ( DeprecatedAPIListBuilder deprapi ) throws DocFileIOExce...
HtmlTree body = getHeader ( ) ; HtmlTree htmlTree = ( configuration . allowTag ( HtmlTag . MAIN ) ) ? HtmlTree . MAIN ( ) : body ; htmlTree . addContent ( getContentsList ( deprapi ) ) ; String memberTableSummary ; HtmlTree div = new HtmlTree ( HtmlTag . DIV ) ; div . addStyle ( HtmlStyle . contentContainer ) ; for ( D...
public class TypeSafeMatcher { /** * Method made final to prevent accidental override . * If you need to override this , there ' s no point on extending TypeSafeMatcher . * Instead , extend the { @ link BaseMatcher } . */ @ SuppressWarnings ( { } }
"unchecked" } ) public final boolean matches ( Object item ) { return item != null && expectedType . isInstance ( item ) && matchesSafely ( ( T ) item ) ;
public class Geometry { /** * Returns the NESW quadrant the point is in . The delta from the center * NE x > 0 , y < 0 * SE x > 0 , y > = 0 * SW x < = 0 , y > = 0 * NW x < = 0 , y < 0 * @ param cx * @ param cy * * @ param x0 * @ param y0 * @ return */ public static final Direction getQuadrant ( final ...
if ( ( x0 > cx ) && ( y0 < cy ) ) { return Direction . NORTH_EAST ; } if ( ( x0 > cx ) && ( y0 >= cy ) ) { return Direction . SOUTH_EAST ; } if ( ( x0 <= cx ) && ( y0 >= cy ) ) { return Direction . SOUTH_WEST ; } // if ( x0 < = c . getX ( ) & & y0 < c . getY ( ) ) return Direction . NORTH_WEST ;
public class ModifyRawHelper { /** * ( non - Javadoc ) * @ see com . abubusoft . kripton . processor . sqlite . SqlModifyBuilder . * ModifyCodeGenerator # generate ( com . squareup . javapoet . TypeSpec . Builder , * com . squareup . javapoet . MethodSpec . Builder , boolean , * com . abubusoft . kripton . proc...
SQLiteDaoDefinition daoDefinition = method . getParent ( ) ; SQLiteEntity entity = method . getEntity ( ) ; // separate params used for update bean and params used in // whereCondition // analyze whereCondition String whereCondition = extractWhereConditions ( updateMode , method ) ; // this method is invoked to check i...
public class Base64 { /** * Decode the byte array . * @ param aEncodedBytes * The encoded byte array . * @ param nOfs * The offset of where to begin decoding * @ param nLen * The number of characters to decode * @ return < code > null < / code > if decoding failed . */ @ Nullable @ ReturnsMutableCopy publ...
return safeDecode ( aEncodedBytes , nOfs , nLen , DONT_GUNZIP ) ;
public class FastMathCalc { /** * Multiply two numbers in split form . * @ param a first term of multiplication * @ param b second term of multiplication * @ param ans placeholder where to put the result */ private static void splitMult ( double a [ ] , double b [ ] , double ans [ ] ) { } }
ans [ 0 ] = a [ 0 ] * b [ 0 ] ; ans [ 1 ] = a [ 0 ] * b [ 1 ] + a [ 1 ] * b [ 0 ] + a [ 1 ] * b [ 1 ] ; /* Resplit */ resplit ( ans ) ;
public class FreeMarkerRequestHandler { /** * Creates the configuration for freemarker template processing . * @ return the configuration */ protected Configuration freemarkerConfig ( ) { } }
if ( fmConfig == null ) { fmConfig = new Configuration ( Configuration . VERSION_2_3_26 ) ; fmConfig . setClassLoaderForTemplateLoading ( contentLoader , contentPath ) ; fmConfig . setDefaultEncoding ( "utf-8" ) ; fmConfig . setTemplateExceptionHandler ( TemplateExceptionHandler . RETHROW_HANDLER ) ; fmConfig . setLogT...
public class JVnTextPro { /** * Do sentence segmentation . * @ param text text to have sentences segmented * @ return the string */ public String senSegment ( String text ) { } }
String ret = text ; // Segment sentences if ( vnSenSegmenter != null ) { ret = vnSenSegmenter . senSegment ( text ) ; } return ret . trim ( ) ;
public class AliasDestinationHandler { /** * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . impl . interfaces . DestinationHandler # getDefaultForwardRoutingPath ( ) */ @ Override public SIDestinationAddress [ ] getDefaultForwardRoutingPath ( ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getDefaultForwardRoutingPath" ) ; SibTr . exit ( tc , "getDefaultForwardRoutingPath" , _defaultFrp ) ; } return _defaultFrp ;
public class TrimWhiteSpaceTag { /** * Truncates whitespace from the given string . * @ todo Candidate for StringUtil ? */ private static String truncateWS ( String pStr ) { } }
char [ ] chars = pStr . toCharArray ( ) ; int count = 0 ; boolean lastWasWS = true ; // Avoids leading WS for ( int i = 0 ; i < chars . length ; i ++ ) { if ( ! Character . isWhitespace ( chars [ i ] ) ) { // if char is not WS , just store chars [ count ++ ] = chars [ i ] ; lastWasWS = false ; } else { // else , if cha...
public class PluginManager { /** * Returns in iterator over all available implementations of the given service interface ( SPI ) in all the plugins * known to this plugin manager instance . * @ param service the service interface ( SPI ) for which implementations are requested . * @ param < P > Type of the reques...
ArrayList < Iterator < P > > combinedIterators = new ArrayList < > ( pluginDescriptors . size ( ) ) ; for ( PluginDescriptor pluginDescriptor : pluginDescriptors ) { PluginLoader pluginLoader = new PluginLoader ( pluginDescriptor , parentClassLoader ) ; combinedIterators . add ( pluginLoader . load ( service ) ) ; } re...
public class FactoryMultiView { /** * Used to refine three projective views . This is the same as refining a trifocal tensor . * @ return RefineThreeViewProjective */ public static RefineThreeViewProjective threeViewRefine ( @ Nullable ConfigThreeViewRefine config ) { } }
if ( config == null ) config = new ConfigThreeViewRefine ( ) ; switch ( config . which ) { case GEOMETRIC : RefineThreeViewProjectiveGeometric alg = new RefineThreeViewProjectiveGeometric ( ) ; alg . getConverge ( ) . set ( config . convergence ) ; alg . setScale ( config . normalizePixels ) ; return new WrapRefineThre...
public class QueryCriteriaUtil { /** * This method is contains the setup steps for creating and assembling { @ link Predicate } instances * from the information in a { @ link List } of { @ link QueryCriteria } instances . * The steps taken when assembling a { @ link Predicate } are the following : * < ol > * < ...
Predicate queryPredicate = null ; if ( inputCriteriaList . size ( ) > 1 ) { List < Predicate > predicateList = new LinkedList < Predicate > ( ) ; QueryCriteria previousCriteria = null ; QueryCriteria firstCriteria = null ; List < QueryCriteria > currentIntersectingCriteriaList = new LinkedList < QueryCriteria > ( ) ; i...
public class CaseRule { private boolean isPrevProbablyRelativePronoun ( AnalyzedTokenReadings [ ] tokens , int i ) { } }
return i >= 3 && tokens [ i - 1 ] . getToken ( ) . equals ( "das" ) && tokens [ i - 2 ] . getToken ( ) . equals ( "," ) && tokens [ i - 3 ] . matchesPosTagRegex ( "SUB:...:SIN:NEU" ) ;
public class WebSocketClientEndpointConfiguration { /** * Creates new client web socket handler by opening a new socket connection to server . * @ param url * @ return */ private CitrusWebSocketHandler getWebSocketClientHandler ( String url ) { } }
CitrusWebSocketHandler handler = new CitrusWebSocketHandler ( ) ; if ( webSocketHttpHeaders == null ) { webSocketHttpHeaders = new WebSocketHttpHeaders ( ) ; webSocketHttpHeaders . setSecWebSocketExtensions ( Collections . singletonList ( new StandardToWebSocketExtensionAdapter ( new JsrExtension ( new PerMessageDeflat...
public class Validate { /** * Checks if the given boolean expression evaluates to < code > false < / code > . * @ param expression The expression to evaluate . * @ throws ParameterException if the given expression does not evaluate to < code > false < / code > . */ public static void isFalse ( Boolean expression ) ...
if ( ! validation ) return ; notNull ( expression ) ; if ( expression ) throw new ParameterException ( ErrorCode . CONSTRAINT ) ;
public class ValidationMatcherLibrary { /** * Does this library know a validationMatcher with the given name . * @ param validationMatcherName name to search for . * @ return boolean flag to mark existence . */ public boolean knowsValidationMatcher ( String validationMatcherName ) { } }
// custom libraries : if ( validationMatcherName . contains ( ":" ) ) { String validationMatcherPrefix = validationMatcherName . substring ( 0 , validationMatcherName . indexOf ( ':' ) + 1 ) ; if ( ! validationMatcherPrefix . equals ( prefix ) ) { return false ; } return members . containsKey ( validationMatcherName . ...
public class ClassReplicaCreator { /** * Create a class that is a replica of type { @ code T } . To allow for * partial mocking all calls to non - mocked methods will be delegated to the * { @ code delegator } . * @ param < T > The type of the replica class to be created . * @ param delegator The delegator obje...
if ( delegator == null ) { throw new IllegalArgumentException ( "delegator cannot be null" ) ; } final Class < T > clazz = ( Class < T > ) delegator . getClass ( ) ; ClassPool classpool = ClassPool . getDefault ( ) ; final String originalClassName = clazz . getName ( ) ; CtClass originalClassAsCtClass ; final CtClass n...
public class SalesforceRestWriter { /** * Retrieve access token , if needed , retrieve instance url , and set server host URL * { @ inheritDoc } * @ see org . apache . gobblin . writer . http . HttpWriter # onConnect ( org . apache . http . HttpHost ) */ @ Override public void onConnect ( URI serverHost ) throws IO...
if ( ! StringUtils . isEmpty ( accessToken ) ) { return ; // No need to be called if accessToken is active . } try { getLog ( ) . info ( "Getting Oauth2 access token." ) ; OAuthClientRequest request = OAuthClientRequest . tokenLocation ( serverHost . toString ( ) ) . setGrantType ( GrantType . PASSWORD ) . setClientId ...
public class NodeWriteTrx { /** * { @ inheritDoc } */ @ Override public long insertTextAsRightSibling ( final String pValue ) throws TTException { } }
checkState ( ! mDelegate . isClosed ( ) , "Transaction is already closed." ) ; checkNotNull ( pValue ) ; checkState ( mDelegate . getCurrentNode ( ) instanceof ElementNode , "Insert is not allowed if current node is not an ElementNode, but was %s" , mDelegate . getCurrentNode ( ) ) ; final byte [ ] value = TypedValue ....
public class MapView { /** * Deferred setting of the expected next map center computed by the Projection ' s constructor , * with no guarantee it will be 100 % respected . * < a href = " https : / / github . com / osmdroid / osmdroid / issues / 868 " > see issue 868 < / a > * @ since 6.0.3 */ public void setExpec...
final GeoPoint before = getProjection ( ) . getCurrentCenter ( ) ; mCenter = ( GeoPoint ) pGeoPoint ; setMapScroll ( - pOffsetX , - pOffsetY ) ; resetProjection ( ) ; final GeoPoint after = getProjection ( ) . getCurrentCenter ( ) ; if ( ! after . equals ( before ) ) { ScrollEvent event = null ; for ( MapListener mapLi...
public class DescribeAddressesRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DescribeAddressesRequest describeAddressesRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( describeAddressesRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( describeAddressesRequest . getMaxResults ( ) , MAXRESULTS_BINDING ) ; protocolMarshaller . marshall ( describeAddressesRequest . getNextToken ( ) , NEXTTOKEN_BI...
public class DrizzleStatement { /** * Executes an update . * @ param query the update query . * @ return update count * @ throws SQLException if the query could not be sent to server . */ public int executeUpdate ( final String query ) throws SQLException { } }
startTimer ( ) ; try { if ( queryResult != null ) { queryResult . close ( ) ; } warningsCleared = false ; if ( inputStream == null ) queryResult = protocol . executeQuery ( queryFactory . createQuery ( query ) ) ; else queryResult = protocol . executeQuery ( queryFactory . createQuery ( query ) , inputStream ) ; return...
public class QueryBuilder { /** * Create a less than expression * @ param propertyName The propery name * @ param value The value * @ return The query expression */ public QueryExpression lt ( String propertyName , String value ) { } }
return new SimpleQueryExpression ( propertyName , ComparisonOperator . LESS_THAN , wrap ( value ) ) ;
public class YoloUtils { /** * Returns overlap between lines [ x1 , x2 ] and [ x3 . x4 ] . */ public static double overlap ( double x1 , double x2 , double x3 , double x4 ) { } }
if ( x3 < x1 ) { if ( x4 < x1 ) { return 0 ; } else { return Math . min ( x2 , x4 ) - x1 ; } } else { if ( x2 < x3 ) { return 0 ; } else { return Math . min ( x2 , x4 ) - x3 ; } }
public class Encoder { /** * get the value of that named property */ @ Override public Object getMember ( String name ) { } }
switch ( name ) { case "schema" : return F_schema ; case "clsTag" : return F_clsTag ; } return super . getMember ( name ) ;
public class NotificationEntry { /** * Set a action to be fired when this notification gets canceled . * @ param listener * @ param extra */ public void setCancelAction ( Action . OnActionListener listener , Bundle extra ) { } }
setCancelAction ( listener , null , null , null , extra ) ;
public class Rectangle { /** * Sets the rectangle to be an exact copy of the provided one . * @ param rectangle The rectangle to copy */ public void set ( Rectangle rectangle ) { } }
set ( rectangle . getX ( ) , rectangle . getY ( ) , rectangle . getWidth ( ) , rectangle . getHeight ( ) ) ;
public class SQLUtils { /** * 生成insert into ( . . . ) select ? , ? , ? from where not exists ( select 1 from where ) 语句 * @ param t * @ param values * @ param whereSql * @ return */ public static < T > String getInsertWhereNotExistSQL ( T t , List < Object > values , boolean isWithNullValue , String whereSql ) ...
StringBuilder sql = new StringBuilder ( "INSERT INTO " ) ; Table table = DOInfoReader . getTable ( t . getClass ( ) ) ; List < Field > fields = DOInfoReader . getColumns ( t . getClass ( ) ) ; sql . append ( getTableName ( table ) ) . append ( " (" ) ; sql . append ( joinAndGetValue ( fields , "," , values , t , isWith...
public class ConicalGradientPaint { /** * Recalculates the fractions in the FRACTION _ LIST and their associated colors in the COLOR _ LIST with a given OFFSET . * Because the conical gradients always starts with 0 at the top and clockwise direction * you could rotate the defined conical gradient from - 180 to 180 ...
// Recalculate the fractions and colors with the given offset final int MAX_FRACTIONS = fractionList . size ( ) ; final HashMap < Float , Color > fractionColors = new HashMap < Float , Color > ( MAX_FRACTIONS ) ; for ( int i = 0 ; i < MAX_FRACTIONS ; i ++ ) { // Add offset to fraction final float TMP_FRACTION = fractio...
public class IndexActionRepositoryDecorator { /** * Register index actions for the given entity for entity types with bidirectional attribute * values . * @ param entity entity to add or delete */ private void registerRefEntityIndexActions ( Entity entity ) { } }
// bidirectional attribute : register indexing actions for other side getEntityType ( ) . getMappedByAttributes ( ) . forEach ( mappedByAttr -> { EntityType mappedByAttrRefEntity = mappedByAttr . getRefEntity ( ) ; entity . getEntities ( mappedByAttr . getName ( ) ) . forEach ( refEntity -> indexActionRegisterService ....
public class Strings { /** * Capitalize the given { @ link String } : " input " - > " Input " */ public static String capitalize ( final String input ) { } }
if ( ( input == null ) || ( input . length ( ) == 0 ) ) { return input ; } return input . substring ( 0 , 1 ) . toUpperCase ( ) + input . substring ( 1 ) ;
public class PodLocalImpl { /** * void addPod ( PodBartenderImpl pod ) * String name = pod . getId ( ) + ' . ' + pod . getClusterId ( ) ; * PodBartenderImpl oldPod = _ podMap . get ( name ) ; * if ( oldPod ! = null & & pod . getSequence ( ) < oldPod . getSequence ( ) ) { * return ; * _ podMap . put ( name , p...
int p = serverId . indexOf ( ':' ) ; String address = serverId . substring ( 0 , p ) ; int port = Integer . parseInt ( serverId . substring ( p + 1 ) ) ; boolean isSSL = false ; return _heartbeatService . createServer ( address , port , isSSL ) ;
public class SignUtil { /** * 将byte数组变为16进制对应的字符串 * @ param byteArray byte数组 * @ return 转换结果 */ private static String byteToStr ( byte [ ] byteArray ) { } }
int len = byteArray . length ; StringBuilder strDigest = new StringBuilder ( len * 2 ) ; for ( byte aByteArray : byteArray ) { strDigest . append ( byteToHexStr ( aByteArray ) ) ; } return strDigest . toString ( ) ;
public class FineUploader5Resume { /** * Sent with the first request of the resume with a value of true . * @ param sParamNameResuming * New value . May neither be < code > null < / code > nor empty . * @ return this for chaining */ @ Nonnull public FineUploader5Resume setParamNameResuming ( @ Nonnull @ Nonempty ...
ValueEnforcer . notEmpty ( sParamNameResuming , "ParamNameResuming" ) ; m_sResumeParamNamesResuming = sParamNameResuming ; return this ;
public class ClusterSyncManager { /** * Called from ClusterSyncManagerLeaderListener * @ throws Exception */ public String initializedGroupStatus ( ) throws Exception { } }
String status = null ; if ( clusteringEnabled ) { initClusterNodeStatus ( ) ; status = updateNodeStatus ( ) ; } return status ;
public class ReactionSetManipulator { /** * Get all Reactions object containing a Molecule as a Reactant from a set * of Reactions . * @ param reactSet The set of reaction to inspect * @ param molecule The molecule to find as a reactant * @ return The IReactionSet */ public static IReactionSet getRelevantReacti...
IReactionSet newReactSet = reactSet . getBuilder ( ) . newInstance ( IReactionSet . class ) ; for ( IReaction reaction : reactSet . reactions ( ) ) { for ( IAtomContainer atomContainer : reaction . getReactants ( ) . atomContainers ( ) ) if ( atomContainer . equals ( molecule ) ) newReactSet . addReaction ( reaction ) ...
public class AuditUtils { /** * Creates an audit entry for the ' plan version updated ' event . * @ param bean the bean * @ param data the updated data * @ param securityContext the security context * @ return the audit entry */ public static AuditEntryBean planVersionUpdated ( PlanVersionBean bean , EntityUpda...
if ( data . getChanges ( ) . isEmpty ( ) ) { return null ; } AuditEntryBean entry = newEntry ( bean . getPlan ( ) . getOrganization ( ) . getId ( ) , AuditEntityType . Plan , securityContext ) ; entry . setEntityId ( bean . getPlan ( ) . getId ( ) ) ; entry . setEntityVersion ( bean . getVersion ( ) ) ; entry . setWhat...
public class OverrideConfiguration { /** * Config table ' s schema by TableNamingStrategy . < br > * @ see org . beangle . orm . hibernate . RailsNamingStrategy */ private void configSchema ( ) { } }
TableNamingStrategy namingStrategy = null ; if ( getNamingStrategy ( ) instanceof RailsNamingStrategy ) { namingStrategy = ( ( RailsNamingStrategy ) getNamingStrategy ( ) ) . getTableNamingStrategy ( ) ; } if ( null == namingStrategy ) return ; else { // Update SeqGenerator ' s static variable . // Because generator is...
public class ModelsImpl { /** * Gets information about the hierarchical entity models . * @ param appId The application ID . * @ param versionId The version ID . * @ param listHierarchicalEntitiesOptionalParameter the object representing the optional parameters to be set before calling this API * @ throws Illeg...
if ( this . client . endpoint ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.endpoint() is required and cannot be null." ) ; } if ( appId == null ) { throw new IllegalArgumentException ( "Parameter appId is required and cannot be null." ) ; } if ( versionId == null ) { throw new IllegalArgu...
public class Jar { /** * Writes this JAR to a file . */ public Path write ( Path path ) throws IOException { } }
write ( Files . newOutputStream ( path ) ) ; return path ;
public class Token { /** * How many characters are needed ? */ final int getMinLength ( ) { } }
switch ( this . type ) { case CONCAT : int sum = 0 ; for ( int i = 0 ; i < this . size ( ) ; i ++ ) sum += this . getChild ( i ) . getMinLength ( ) ; return sum ; case CONDITION : case UNION : if ( this . size ( ) == 0 ) return 0 ; int ret = this . getChild ( 0 ) . getMinLength ( ) ; for ( int i = 1 ; i < this . size (...
public class AWSCognitoIdentityProviderClient { /** * Gets the user pool multi - factor authentication ( MFA ) configuration . * @ param getUserPoolMfaConfigRequest * @ return Result of the GetUserPoolMfaConfig operation returned by the service . * @ throws InvalidParameterException * This exception is thrown w...
request = beforeClientExecution ( request ) ; return executeGetUserPoolMfaConfig ( request ) ;
public class AnnualDate { /** * / * [ deutsch ] * < p > Konvertiert das angegebene gregorianische Datum zu einem Jahrestag . < / p > * @ param date gregorian calendar date ( for example { @ code PlainDate } * @ return AnnualDate * @ throws IllegalArgumentException if given date is invalid * @ since 3.28/4.24 ...
PlainDate iso = PlainDate . from ( date ) ; // includes validation return new AnnualDate ( iso . getMonth ( ) , iso . getDayOfMonth ( ) ) ;
public class GrammarConverter { /** * This method converts the token definitions to the token definition set . * @ throws GrammarException * @ throws TreeException */ private void convertTokenDefinitions ( ) throws GrammarException , TreeException { } }
tokenVisibility . clear ( ) ; Map < String , ParseTreeNode > helpers = getHelperTokens ( ) ; Map < String , ParseTreeNode > tokens = getTokens ( ) ; convertTokenDefinitions ( helpers , tokens ) ;
public class Eureka { /** * This is the entry point method . */ public void onModuleLoad ( ) { } }
DockPanel dock = new DockPanel ( ) ; dock . addStyleName ( "mainBackground" ) ; dock . setWidth ( "700px" ) ; dock . setHeight ( "300px" ) ; dock . setHorizontalAlignment ( HasHorizontalAlignment . ALIGN_CENTER ) ; dock . setVerticalAlignment ( HasVerticalAlignment . ALIGN_TOP ) ; dock . add ( createHeader ( ) , DockPa...
public class CmsDriverManager { /** * Creates a new sibling of the source resource . < p > * @ param dbc the current database context * @ param source the resource to create a sibling for * @ param destination the name of the sibling to create with complete path * @ param properties the individual properties fo...
if ( source . isFolder ( ) ) { throw new CmsVfsException ( Messages . get ( ) . container ( Messages . ERR_VFS_FOLDERS_DONT_SUPPORT_SIBLINGS_0 ) ) ; } // determine destination folder and resource name String destinationFoldername = CmsResource . getParentFolder ( destination ) ; // read the destination folder ( will al...
public class ClientBlobStore { /** * Client facing API to set the metadata for a blob . * @ param key blob key name . * @ param meta contains ACL information . * @ throws AuthorizationException * @ throws KeyNotFoundException */ public final void setBlobMeta ( String key , SettableBlobMeta meta ) throws Authori...
setBlobMetaToExtend ( key , meta ) ;
public class ManagementXml_5 { /** * The users element defines users within the domain model , it is a simple authentication for some out of the box users . */ private void parseUsersAuthentication ( final XMLExtendedStreamReader reader , final ModelNode realmAddress , final List < ModelNode > list ) throws XMLStreamEx...
final ModelNode usersAddress = realmAddress . clone ( ) . add ( AUTHENTICATION , USERS ) ; list . add ( Util . getEmptyOperation ( ADD , usersAddress ) ) ; while ( reader . hasNext ( ) && reader . nextTag ( ) != END_ELEMENT ) { requireNamespace ( reader , namespace ) ; final Element element = Element . forName ( reader...
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getIfcReinforcementBarProperties ( ) { } }
if ( ifcReinforcementBarPropertiesEClass == null ) { ifcReinforcementBarPropertiesEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 432 ) ; } return ifcReinforcementBarPropertiesEClass ;
public class ExtensionSessionManagement { /** * Gets the session management method type for a given identifier . * @ param id the id * @ return the session management method type for identifier */ public SessionManagementMethodType getSessionManagementMethodTypeForIdentifier ( int id ) { } }
for ( SessionManagementMethodType t : getSessionManagementMethodTypes ( ) ) if ( t . getUniqueIdentifier ( ) == id ) return t ; return null ;
public class BM25 { /** * 在构造时初始化自己的所有参数 */ private void init ( ) { } }
int index = 0 ; for ( List < String > sentence : docs ) { Map < String , Integer > tf = new TreeMap < String , Integer > ( ) ; for ( String word : sentence ) { Integer freq = tf . get ( word ) ; freq = ( freq == null ? 0 : freq ) + 1 ; tf . put ( word , freq ) ; } f [ index ] = tf ; for ( Map . Entry < String , Integer...
public class DeleteAliasRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteAliasRequest deleteAliasRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteAliasRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteAliasRequest . getAliasName ( ) , ALIASNAME_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . ge...
public class JPEGLosslessDecoderWrapper { /** * Converts the decoded buffer into a BufferedImage . * precision : 16 bit , componentCount = 1 * @ param decoded data buffer * @ param precision * @ param width of the image * @ param height of the image @ return a BufferedImage . TYPE _ USHORT _ GRAY */ private B...
BufferedImage image ; if ( precision == 16 ) { image = new BufferedImage ( width , height , BufferedImage . TYPE_USHORT_GRAY ) ; } else { ColorModel colorModel = new ComponentColorModel ( ColorSpace . getInstance ( ColorSpace . CS_GRAY ) , new int [ ] { precision } , false , false , Transparency . OPAQUE , DataBuffer ....
public class OWLTransitiveObjectPropertyAxiomImpl_CustomFieldSerializer { /** * Deserializes the content of the object from the * { @ link com . google . gwt . user . client . rpc . SerializationStreamReader } . * @ param streamReader the { @ link com . google . gwt . user . client . rpc . SerializationStreamReader...
deserialize ( streamReader , instance ) ;
public class AmazonDynamoDBClient { /** * Adds or removes replicas in the specified global table . The global table must already exist to be able to use * this operation . Any replica to be added must be empty , must have the same name as the global table , must have the * same key schema , and must have DynamoDB S...
request = beforeClientExecution ( request ) ; return executeUpdateGlobalTable ( request ) ;
public class AlertPolicyServiceClient { /** * Creates a new alerting policy . * < p > Sample code : * < pre > < code > * try ( AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient . create ( ) ) { * ProjectName name = ProjectName . of ( " [ PROJECT ] " ) ; * AlertPolicy alertPolicy = A...
CreateAlertPolicyRequest request = CreateAlertPolicyRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . setAlertPolicy ( alertPolicy ) . build ( ) ; return createAlertPolicy ( request ) ;
public class AppsImpl { /** * Gets the application info . * @ param appId The application ID . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to the ApplicationInfoResponse object */ public Observable < ApplicationInfoResponse > getAsync ( UUID appId ) { } }
return getWithServiceResponseAsync ( appId ) . map ( new Func1 < ServiceResponse < ApplicationInfoResponse > , ApplicationInfoResponse > ( ) { @ Override public ApplicationInfoResponse call ( ServiceResponse < ApplicationInfoResponse > response ) { return response . body ( ) ; } } ) ;
public class HostResource { /** * Returns a { @ link Resource } that describes a k8s container . * @ param hostname the hostname of the host . * @ param name the name of the host . * @ param id the unique host id ( instance id in Cloud ) . * @ param type the type of the host ( machine type ) . * @ return a { ...
Map < String , String > labels = new LinkedHashMap < String , String > ( ) ; labels . put ( HOSTNAME_KEY , checkNotNull ( hostname , "hostname" ) ) ; labels . put ( NAME_KEY , checkNotNull ( name , "name" ) ) ; labels . put ( ID_KEY , checkNotNull ( id , "id" ) ) ; labels . put ( TYPE_KEY , checkNotNull ( type , "type"...
public class JesqueUtils { /** * Materializes a job by assuming the { @ link Job # getClassName ( ) } is a * fully - qualified Java type . * @ param job * the job to materialize * @ return the materialized job * @ throws ClassNotFoundException * if the class could not be found * @ throws Exception * if ...
final Class < ? > clazz = ReflectionUtils . forName ( job . getClassName ( ) ) ; // A bit redundant since we check when the job type is added . . . if ( ! Runnable . class . isAssignableFrom ( clazz ) && ! Callable . class . isAssignableFrom ( clazz ) ) { throw new ClassCastException ( "jobs must be a Runnable or a Cal...
public class AbstractFetcher { /** * Shortcut variant of { @ link # createPartitionStateHolders ( Map , int , SerializedValue , SerializedValue , ClassLoader ) } * that uses the same offset for all partitions when creating their state holders . */ private List < KafkaTopicPartitionState < KPH > > createPartitionState...
Map < KafkaTopicPartition , Long > partitionsToInitialOffset = new HashMap < > ( partitions . size ( ) ) ; for ( KafkaTopicPartition partition : partitions ) { partitionsToInitialOffset . put ( partition , initialOffset ) ; } return createPartitionStateHolders ( partitionsToInitialOffset , timestampWatermarkMode , wate...
public class DbUtil { /** * Runs a SQL query that returns a single byte array value . * @ param stmt The < code > PreparedStatement < / code > to run . * @ param def The default value to return if the query returns no results . * @ return The value returned by the query , or < code > def < / code > if the * que...
ResultSet rs = null ; try { rs = stmt . executeQuery ( ) ; return rs . next ( ) ? rs . getBytes ( 1 ) : def ; } finally { close ( rs ) ; }
public class AbstractAggarwalYuOutlier { /** * Method to calculate the sparsity coefficient of . * @ param setsize Size of subset * @ param dbsize Size of database * @ param k Dimensionality * @ param phi Phi parameter * @ return sparsity coefficient */ protected static double sparsity ( final int setsize , f...
// calculate sparsity c final double fK = MathUtil . powi ( 1. / phi , k ) ; return ( setsize - ( dbsize * fK ) ) / FastMath . sqrt ( dbsize * fK * ( 1 - fK ) ) ;
public class NodeManager { /** * Update the runnable status of a node based on resources available . * This checks both resources and slot availability . * @ param node The node */ private void updateRunnability ( ClusterNode node ) { } }
synchronized ( node ) { for ( Map . Entry < ResourceType , RunnableIndices > entry : typeToIndices . entrySet ( ) ) { ResourceType type = entry . getKey ( ) ; RunnableIndices r = entry . getValue ( ) ; ResourceRequest unitReq = Utilities . getUnitResourceRequest ( type ) ; boolean currentlyRunnable = r . hasRunnable ( ...
public class ListResolverEndpointsResult { /** * The resolver endpoints that were created by using the current AWS account , and that match the specified filters , * if any . * @ param resolverEndpoints * The resolver endpoints that were created by using the current AWS account , and that match the specified * ...
if ( resolverEndpoints == null ) { this . resolverEndpoints = null ; return ; } this . resolverEndpoints = new java . util . ArrayList < ResolverEndpoint > ( resolverEndpoints ) ;
public class Differential { /** * { @ inheritDoc } */ @ Override public DataBucket combineBuckets ( final DataBucket [ ] pBuckets ) { } }
// check to have only the newer version and the related fulldump to read on checkArgument ( pBuckets . length > 0 , "At least one Databucket must be provided" ) ; // create entire buckets . . final DataBucket returnVal = new DataBucket ( pBuckets [ 0 ] . getBucketKey ( ) , pBuckets [ 0 ] . getLastBucketPointer ( ) ) ; ...
public class UTCTimeBoxImplHtml4 { /** * styling */ @ Override public void validate ( ) { } }
boolean valid = true ; if ( hasValue ( ) ) { Long value = getValue ( ) ; if ( value != null ) { // scrub the value to format properly setText ( value2text ( value ) ) ; } else { // empty is ok and value ! = null ok , this is invalid valid = false ; } } setStyleName ( CLASSNAME_INVALID , ! valid ) ;
public class CompensationUtil { /** * Collect all compensate event subscriptions for scope of given execution . */ public static List < EventSubscriptionEntity > collectCompensateEventSubscriptionsForScope ( ActivityExecution execution ) { } }
final Map < ScopeImpl , PvmExecutionImpl > scopeExecutionMapping = execution . createActivityExecutionMapping ( ) ; ScopeImpl activity = ( ScopeImpl ) execution . getActivity ( ) ; // < LEGACY > : different flow scopes may have the same scope execution = > // collect subscriptions in a set final Set < EventSubscription...
public class URLParser { /** * Scan the data for various markers , including the provided session id * target . * @ param url * @ param target */ private void findMarkers ( String url , String target ) { } }
final char [ ] data = url . toCharArray ( ) ; // we only care about the last path segment so find that first int i = 0 ; int lastSlash = 0 ; for ( ; i < data . length ; i ++ ) { if ( '/' == data [ i ] ) { lastSlash = i ; } else if ( '?' == data [ i ] ) { this . queryMarker = i ; break ; // out of loop since query data ...
public class Modal { /** * Get the transparent modal panel * @ return { @ link ModalPanel } */ private ModalPanel getModalPanel ( ) { } }
if ( modalPanel == null ) { modalPanel = new ModalPanel ( ) ; modalPanel . setLayout ( new ModalLayout ( ) ) ; } return modalPanel ;
public class CassandraSchemaManager { /** * Update table . * @ param ksDef * the ks def * @ param tableInfo * the table info * @ throws Exception * the exception */ private void updateTable ( KsDef ksDef , TableInfo tableInfo ) throws Exception { } }
for ( CfDef cfDef : ksDef . getCf_defs ( ) ) { if ( cfDef . getName ( ) . equals ( tableInfo . getTableName ( ) ) && cfDef . getColumn_type ( ) . equals ( ColumnFamilyType . getInstanceOf ( tableInfo . getType ( ) ) . name ( ) ) ) { boolean toUpdate = false ; if ( cfDef . getColumn_type ( ) . equals ( STANDARDCOLUMNFAM...