signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class JoinExamples { /** * Join two collections , using country code as the key . */
static PCollection < String > joinEvents ( PCollection < TableRow > eventsTable , PCollection < TableRow > countryCodes ) throws Exception { } } | final TupleTag < String > eventInfoTag = new TupleTag < > ( ) ; final TupleTag < String > countryInfoTag = new TupleTag < > ( ) ; // transform both input collections to tuple collections , where the keys are country
// codes in both cases .
PCollection < KV < String , String > > eventInfo = eventsTable . apply ( ParDo ... |
public class ProtoLexer { /** * $ ANTLR start " FIXED64" */
public final void mFIXED64 ( ) throws RecognitionException { } } | try { int _type = FIXED64 ; int _channel = DEFAULT_TOKEN_CHANNEL ; // com / dyuproject / protostuff / parser / ProtoLexer . g : 183:5 : ( ' fixed64 ' )
// com / dyuproject / protostuff / parser / ProtoLexer . g : 183:9 : ' fixed64'
{ match ( "fixed64" ) ; } state . type = _type ; state . channel = _channel ; } finally ... |
public class CheckpointStatsTracker { /** * Register the exposed metrics .
* @ param metricGroup Metric group to use for the metrics . */
private void registerMetrics ( MetricGroup metricGroup ) { } } | metricGroup . gauge ( NUMBER_OF_CHECKPOINTS_METRIC , new CheckpointsCounter ( ) ) ; metricGroup . gauge ( NUMBER_OF_IN_PROGRESS_CHECKPOINTS_METRIC , new InProgressCheckpointsCounter ( ) ) ; metricGroup . gauge ( NUMBER_OF_COMPLETED_CHECKPOINTS_METRIC , new CompletedCheckpointsCounter ( ) ) ; metricGroup . gauge ( NUMBE... |
public class ViewFetcher { /** * Compares if the specified views are identical . This is used instead of View . compare
* as it always returns false in cases where the View tree is refreshed .
* @ param firstView the first view
* @ param secondView the second view
* @ return true if views are equal */
private b... | if ( firstView . getId ( ) != secondView . getId ( ) || ! firstView . getClass ( ) . isAssignableFrom ( secondView . getClass ( ) ) ) { return false ; } if ( firstView . getParent ( ) != null && firstView . getParent ( ) instanceof View && secondView . getParent ( ) != null && secondView . getParent ( ) instanceof View... |
public class NioClientManager { /** * Handle a SelectionKey which was selected */
private void handleKey ( SelectionKey key ) throws IOException { } } | // We could have a ! isValid ( ) key here if the connection is already closed at this point
if ( key . isValid ( ) && key . isConnectable ( ) ) { // ie a client connection which has finished the initial connect process
// Create a ConnectionHandler and hook everything together
PendingConnect data = ( PendingConnect ) k... |
public class ArgumentProcessor { /** * Processes command line arguments .
* @ param args The command line arguments to process .
* @ param state The application state object . */
public void process ( String [ ] args , T state ) { } } | process ( new ArrayQueue < String > ( args ) , state ) ; |
public class TimeZoneUtil { /** * translate timezone string format to a timezone
* @ param strTimezoneTrimmed
* @ return */
public static TimeZone toTimeZone ( String strTimezone , TimeZone defaultValue ) { } } | if ( strTimezone == null ) return defaultValue ; String strTimezoneTrimmed = StringUtil . replace ( strTimezone . trim ( ) . toLowerCase ( ) , " " , "" , false ) ; TimeZone tz = getTimeZoneFromIDS ( strTimezoneTrimmed ) ; if ( tz != null ) return tz ; // parse GMT followd by a number
float gmtOffset = Float . NaN ; if ... |
public class TurfMeta { /** * Private helper method to be used with other methods in this class .
* @ param pointList the { @ code List } of { @ link Point } s .
* @ param feature the { @ link Feature } that you ' d like
* to extract the Points from .
* @ param excludeWrapCoord whether or not to include the fin... | return coordAllFromSingleGeometry ( pointList , feature . geometry ( ) , excludeWrapCoord ) ; |
public class DefaultSchemaManager { /** * Only one schema for a table should contain an OCCVersion field mapping .
* This method will compare two schemas and return true if only one has an
* OCC _ VERSION field .
* @ param entitySchema1
* The first schema to compare
* @ param entitySchema2
* The second sche... | boolean foundOccMapping = false ; for ( FieldMapping fieldMapping : entitySchema1 . getColumnMappingDescriptor ( ) . getFieldMappings ( ) ) { if ( fieldMapping . getMappingType ( ) == MappingType . OCC_VERSION ) { foundOccMapping = true ; break ; } } if ( foundOccMapping ) { for ( FieldMapping fieldMapping : entitySche... |
public class VpcPeeringConnectionVpcInfo { /** * The IPv6 CIDR block for the VPC .
* @ param ipv6CidrBlockSet
* The IPv6 CIDR block for the VPC . */
public void setIpv6CidrBlockSet ( java . util . Collection < Ipv6CidrBlock > ipv6CidrBlockSet ) { } } | if ( ipv6CidrBlockSet == null ) { this . ipv6CidrBlockSet = null ; return ; } this . ipv6CidrBlockSet = new com . amazonaws . internal . SdkInternalList < Ipv6CidrBlock > ( ipv6CidrBlockSet ) ; |
public class BackupManager { /** * Return a stream for the specified backup
* @ param metaData the backup to get
* @ return the stream or null if the stream doesn ' t exist
* @ throws Exception errors */
public BackupStream getBackupStream ( BackupMetaData metaData ) throws Exception { } } | return backupProvider . get ( ) . getBackupStream ( exhibitor , metaData , getBackupConfig ( ) ) ; |
public class UnionQueryAnalyzer { /** * Returns a list of all primary and alternate keys , stripped of ordering . */
private List < Set < ChainedProperty < S > > > getKeys ( ) throws SupportException , RepositoryException { } } | StorableInfo < S > info = StorableIntrospector . examine ( mIndexAnalyzer . getStorableType ( ) ) ; List < Set < ChainedProperty < S > > > keys = new ArrayList < Set < ChainedProperty < S > > > ( ) ; keys . add ( stripOrdering ( info . getPrimaryKey ( ) . getProperties ( ) ) ) ; for ( StorableKey < S > altKey : info . ... |
public class AbstractMemberWriter { /** * Get the inherited summary header for the given class .
* @ param classDoc the class the inherited member belongs to
* @ return a content tree for the inherited summary header */
public Content getInheritedSummaryHeader ( ClassDoc classDoc ) { } } | Content inheritedTree = writer . getMemberTreeHeader ( ) ; writer . addInheritedSummaryHeader ( this , classDoc , inheritedTree ) ; return inheritedTree ; |
public class CLI { /** * Create the available parameters for NER tagging . */
private void loadServerParameters ( ) { } } | serverParser . addArgument ( "-p" , "--port" ) . required ( true ) . help ( "Port to be assigned to the server.\n" ) ; serverParser . addArgument ( "-m" , "--model" ) . required ( true ) . help ( "Pass the model to do the tagging as a parameter.\n" ) ; serverParser . addArgument ( "--clearFeatures" ) . required ( false... |
public class AbstractSerializer { /** * * * * InputStream * * * */
@ SuppressWarnings ( "resource" ) protected ISynchronizationPoint < ? extends Exception > serializeInputStreamValue ( SerializationContext context , InputStream in , String path , List < SerializationRule > rules ) { } } | return serializeIOReadableValue ( context , new IOFromInputStream ( in , in . toString ( ) , Threading . getUnmanagedTaskManager ( ) , priority ) , path , rules ) ; |
public class MicroServiceTemplateSupport { /** * 页面获取指定节点数据 ( data ) */
public String getNodeData ( String nodePath , String formId , String tableName , String dataColName , String idColName ) { } } | MicroMetaDao microDao = getInnerDao ( ) ; String select = dataColName + "->>'$." + dianNode ( nodePath ) + "' as dyna_data" ; String sql = "select " + select + " from " + tableName + " where " + idColName + "=?" ; Object [ ] paramArray = new Object [ 1 ] ; paramArray [ 0 ] = formId ; Map retMap = microDao . querySingle... |
public class KmeansCalculator { /** * ベース中心点配列とマージ対象中心点配列の各々のユークリッド距離を算出する 。
* @ param baseCentroids ベース中心点配列
* @ param targetCentroids マージ対象中心点配列
* @ param centroidNum 中心点数
* @ return ユークリッド距離リスト */
protected static List < CentroidMapping > calculateDistances ( double [ ] [ ] baseCentroids , double [ ] [... | // ベース中心点配列とマージ対象中心点配列の各々のユークリッド距離を算出
List < CentroidMapping > allDistance = new ArrayList < > ( ) ; for ( int baseIndex = 0 ; baseIndex < centroidNum ; baseIndex ++ ) { for ( int targetIndex = 0 ; targetIndex < centroidNum ; targetIndex ++ ) { CentroidMapping centroidMapping = new CentroidMapping ( ) ; centroidMapp... |
public class AOContainerItemStream { /** * Prints the Message Details to the xml output . */
public void xmlWriteOn ( FormattedWriter writer ) throws IOException { } } | if ( durablePseudoDestID != null ) { writer . newLine ( ) ; writer . taggedValue ( "durablePseudoDestID" , durablePseudoDestID ) ; } if ( durableSubName != null ) { writer . newLine ( ) ; writer . taggedValue ( "durableSubName" , durableSubName ) ; } |
public class AmazonNeptuneClient { /** * Forces a failover for a DB cluster .
* A failover for a DB cluster promotes one of the Read Replicas ( read - only instances ) in the DB cluster to be the
* primary instance ( the cluster writer ) .
* Amazon Neptune will automatically fail over to a Read Replica , if one e... | request = beforeClientExecution ( request ) ; return executeFailoverDBCluster ( request ) ; |
public class GraphHopper { /** * Reads the configuration from a CmdArgs object which can be manually filled , or via
* CmdArgs . read ( String [ ] args ) */
public GraphHopper init ( CmdArgs args ) { } } | args . merge ( CmdArgs . readFromSystemProperties ( ) ) ; if ( args . has ( "osmreader.osm" ) ) throw new IllegalArgumentException ( "Instead osmreader.osm use datareader.file, for other changes see core/files/changelog.txt" ) ; String tmpOsmFile = args . get ( "datareader.file" , "" ) ; if ( ! isEmpty ( tmpOsmFile ) )... |
public class ReflectionUtil { /** * find and all non abstract classes that implement / extend
* baseClassOrInterface in the package packageName
* @ param packageName
* @ param baseClassOrInterface
* @ return */
@ SuppressWarnings ( "unchecked" ) public static < T > Set < Class < T > > loadClasses ( String packa... | Set < Class < T > > result = new HashSet < > ( ) ; try { Set < String > classNames = getClassNamesFromPackage ( packageName ) ; ClassLoader classLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; for ( String className : classNames ) { try { Class < ? > clazz = classLoader . loadClass ( packageName + "."... |
public class TfIdf { /** * 平滑处理后的一系列文档的倒排词频
* @ param documentVocabularies 词表
* @ param < TERM > 词语类型
* @ return 一个词语 - > 倒排文档的Map */
public static < TERM > Map < TERM , Double > idf ( Iterable < Iterable < TERM > > documentVocabularies ) { } } | return idf ( documentVocabularies , true , true ) ; |
public class DefaultMetaDataChecker { /** * 检查指定schema下是否包含指定的table
* @ throws IllegalMetaDataException */
@ Override public void check ( Connection conn , String scName , Collection < String > tbNames ) throws IllegalMetaDataException { } } | if ( scName == null ) { throw new IllegalArgumentException ( "[Check MetaData Failed] parameter 'scName' can't be null" ) ; } if ( tbNames == null || tbNames . isEmpty ( ) ) { throw new IllegalArgumentException ( "[Check MetaData Failed] parameter 'tbNames' can't be empty" ) ; } try { Set < String > set = getAllTables ... |
public class DefaultTypeCache { /** * / * ( non - Javadoc )
* @ see org . apache . atlas . typesystem . types . cache . TypeCache # remove ( org .
* apache . atlas . typesystem . types . DataTypes . TypeCategory , java . lang . String ) */
@ Override public void remove ( TypeCategory typeCategory , String typeName ... | assertValidTypeCategory ( typeCategory ) ; remove ( typeName ) ; |
public class CancelCertificateTransferRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( CancelCertificateTransferRequest cancelCertificateTransferRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( cancelCertificateTransferRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( cancelCertificateTransferRequest . getCertificateId ( ) , CERTIFICATEID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to ... |
public class CRFppTxtModel { /** * 解析crf + + 生成的可可视txt文件
* @ return */
@ Override public CRFppTxtModel loadModel ( String modelPath ) throws Exception { } } | try ( InputStream is = new FileInputStream ( modelPath ) ) { loadModel ( new FileInputStream ( modelPath ) ) ; return this ; } |
public class RoundedMoney { /** * ( non - Javadoc )
* @ see javax . money . MonetaryAmount # multiply ( Number ) */
@ Override public RoundedMoney multiply ( Number multiplicand ) { } } | BigDecimal bd = MoneyUtils . getBigDecimal ( multiplicand ) ; if ( isOne ( bd ) ) { return this ; } BigDecimal dec = number . multiply ( bd , Optional . ofNullable ( monetaryContext . get ( MathContext . class ) ) . orElse ( MathContext . DECIMAL64 ) ) ; return new RoundedMoney ( dec , currency , rounding ) . with ( ro... |
public class WriterReaderPhaser { /** * Flip a phase in the { @ link WriterReaderPhaser } instance , { @ link WriterReaderPhaser # flipPhase ( ) }
* can only be called while holding the readerLock ( ) .
* { @ link WriterReaderPhaser # flipPhase ( ) } will return only after all writer critical sections ( protected b... | if ( ! readerLock . isHeldByCurrentThread ( ) ) { throw new IllegalStateException ( "flipPhase() can only be called while holding the readerLock()" ) ; } boolean nextPhaseIsEven = ( startEpoch < 0 ) ; // Current phase is odd . . .
long initialStartValue ; // First , clear currently unused [ next ] phase end epoch ( to ... |
public class RangeVariable { /** * Only multiple EQUAL conditions are used
* @ param exprList list of expressions
* @ param index Index to use
* @ param isJoin whether a join or not */
void addIndexCondition ( Expression [ ] exprList , Index index , int colCount , boolean isJoin ) { } } | // VoltDB extension
if ( rangeIndex == index && isJoinIndex && ( ! isJoin ) && ( multiColumnCount > 0 ) && ( colCount == 0 ) ) { // This is one particular set of conditions which broke the classification of
// ON and WHERE clauses .
return ; } // End of VoltDB extension
rangeIndex = index ; isJoinIndex = isJoin ; for (... |
public class Languages { /** * Returns the Java Locale for the Request & Response cycle . If the language
* specified in the Request / Response cycle can not be mapped to a Java
* Locale , the default language Locale is returned .
* @ param routeContext
* @ return a Java Locale */
public Locale getLocaleOrDefau... | String language = getLanguageOrDefault ( routeContext ) ; return Locale . forLanguageTag ( language ) ; |
public class RouteGuideClient { /** * Async client - streaming example . Sends { @ code numPoints } randomly chosen points from { @ code
* features } with a variable delay in between . Prints the statistics when they are sent from the
* server . */
public void recordRoute ( List < Feature > features , int numPoints... | info ( "*** RecordRoute" ) ; final CountDownLatch finishLatch = new CountDownLatch ( 1 ) ; StreamObserver < RouteSummary > responseObserver = new StreamObserver < RouteSummary > ( ) { @ Override public void onNext ( RouteSummary summary ) { info ( "Finished trip with {0} points. Passed {1} features. " + "Travelled {2} ... |
public class NameOpValue { /** * Adds an array of values to the list of values .
* Each element in the array is converted into a
* Value object and inserted as a separate value
* into the list of values .
* @ param strValues the array of values to add . */
public void add ( String [ ] strValues ) { } } | if ( strValues == null ) return ; if ( values == null ) values = new LinkedList ( ) ; for ( int i = 0 ; i < strValues . length ; i ++ ) { values . add ( new Value ( strValues [ i ] ) ) ; } |
public class Slice { /** * Returns a copy of this buffer ' s sub - region . Modifying the content of
* the returned buffer or this buffer does not affect each other at all . */
public Slice copySlice ( int index , int length ) { } } | checkPositionIndexes ( index , index + length , this . length ) ; index += offset ; byte [ ] copiedArray = new byte [ length ] ; System . arraycopy ( data , index , copiedArray , 0 , length ) ; return new Slice ( copiedArray ) ; |
public class WicketImageExtensions { /** * Gets a non caching image from the given wicketId , contentType and the byte array data .
* @ param wicketId
* the id from the image for the html template .
* @ param contentType
* the content type of the image .
* @ param data
* the data for the image as an byte ar... | return new NonCachingImage ( wicketId , new DatabaseImageResource ( contentType , data ) ) ; |
public class MariaDbDatabaseMetaData { /** * Retrieves a description of the stored procedures available in the given catalog . Only procedure
* descriptions matching the schema and procedure name criteria are returned . They are ordered
* by
* < code > PROCEDURE _ CAT < / code > ,
* < code > PROCEDURE _ SCHEM <... | String sql = "SELECT ROUTINE_SCHEMA PROCEDURE_CAT,NULL PROCEDURE_SCHEM, ROUTINE_NAME PROCEDURE_NAME," + " NULL RESERVED1, NULL RESERVED2, NULL RESERVED3," + " CASE ROUTINE_TYPE " + " WHEN 'FUNCTION' THEN " + procedureReturnsResult + " WHEN 'PROCEDURE' THEN " + procedureNoResult + " ELSE " + procedureResultUnknown + ... |
public class CharEscaperBuilder { /** * Add a new mapping from an index to an object to the escaping . */
@ CanIgnoreReturnValue public CharEscaperBuilder addEscape ( char c , String r ) { } } | map . put ( c , checkNotNull ( r ) ) ; if ( c > max ) { max = c ; } return this ; |
public class SequenceLabelFactory { /** * Constructs a { @ link SequenceLabel } as a String with corresponding offsets
* and length from which to calculate start and end position of the Name .
* @ param seqString
* string to be added to a Sequence object
* @ param seqType
* the type of the Sequence
* @ para... | final SequenceLabel sequence = new SequenceLabel ( ) ; sequence . setValue ( seqString ) ; sequence . setType ( seqType ) ; sequence . setStartOffset ( offset ) ; sequence . setSequenceLength ( length ) ; return sequence ; |
public class GVRIndexBuffer { /** * Updates the indices in the index buffer from a Java IntBuffer .
* All of the entries of the input int buffer are copied into
* the storage for the index buffer . The new indices must be the
* same size as the old indices - the index buffer size cannot be changed .
* @ param d... | if ( data == null ) { throw new IllegalArgumentException ( "Input buffer for indices cannot be null" ) ; } if ( getIndexSize ( ) != 4 ) { throw new UnsupportedOperationException ( "Cannot update integer indices with short array" ) ; } if ( data . isDirect ( ) ) { if ( ! NativeIndexBuffer . setIntVec ( getNative ( ) , d... |
public class WhiteboxImpl { /** * Check if all arguments are of the same type .
* @ param arguments the arguments
* @ return true , if successful */
static boolean areAllArgumentsOfSameType ( Object [ ] arguments ) { } } | if ( arguments == null || arguments . length <= 1 ) { return true ; } // Handle null values
int index = 0 ; Object object = null ; while ( object == null && index < arguments . length ) { object = arguments [ index ++ ] ; } if ( object == null ) { return true ; } // End of handling null values
final Class < ? > firstAr... |
public class MessageInfo { /** * Parse a subset of the type comment ; valid matches are simple types , compound types ,
* union types and custom types . */
MessageType parseAlternative ( String text ) { } } | // try with custom types
if ( text . charAt ( 0 ) == '\'' ) { int end = text . indexOf ( '\'' , 1 ) ; return new MessageType . CustomType ( text . substring ( 1 , end ) ) ; } // try with simple types
for ( SimpleType st : SimpleType . values ( ) ) { if ( text . equals ( st . kindName ( ) ) ) { return st ; } } // try wi... |
public class WriterOutputStream { public void write ( byte [ ] b ) throws IOException { } } | if ( _encoding == null ) _writer . write ( new String ( b ) ) ; else _writer . write ( new String ( b , _encoding ) ) ; |
public class SimplifierExtractor { /** * Add a single extractor
* @ param pName name of the extractor
* @ param pExtractor the extractor itself */
protected final void addExtractor ( String pName , AttributeExtractor < T > pExtractor ) { } } | extractorMap . put ( pName , pExtractor ) ; |
public class TAudioFileReader { /** * Get an AudioFileFormat object for a URL . This method calls
* getAudioFileFormat ( InputStream , long ) . Subclasses should not override
* this method unless there are really severe reasons . Normally , it is
* sufficient to implement getAudioFileFormat ( InputStream , long )... | LOG . log ( Level . FINE , "TAudioFileReader.getAudioFileFormat(URL): begin (class: {0})" , getClass ( ) . getSimpleName ( ) ) ; long lFileLengthInBytes = getDataLength ( url ) ; AudioFileFormat audioFileFormat ; try ( InputStream inputStream = url . openStream ( ) ) { audioFileFormat = getAudioFileFormat ( inputStream... |
public class FaceletCompositionContextImpl { /** * Mark a component to be deleted from the tree . The component to be deleted is addded on the
* current level . This is done from ComponentSupport . markForDeletion
* @ param id
* @ param component the component marked for deletion . */
private void markComponentFo... | _componentsMarkedForDeletion . get ( _deletionLevel ) . put ( id , component ) ; |
public class VmwareIaasHandler { /** * ( non - Javadoc )
* @ see net . roboconf . target . api . TargetHandler
* # terminateMachine ( net . roboconf . target . api . TargetHandlerParameters , java . lang . String ) */
@ Override public void terminateMachine ( TargetHandlerParameters parameters , String machineId ) ... | try { cancelMachineConfigurator ( machineId ) ; final ServiceInstance vmwareServiceInstance = getServiceInstance ( parameters . getTargetProperties ( ) ) ; VirtualMachine vm = getVirtualMachine ( vmwareServiceInstance , machineId ) ; if ( vm == null ) throw new TargetException ( "Error vm: " + machineId + " was not fou... |
public class VisTextArea { /** * Updates the current line , checking the cursor position in the text * */
void updateCurrentLine ( ) { } } | int index = calculateCurrentLineIndex ( cursor ) ; int line = index / 2 ; // Special case when cursor moves to the beginning of the line from the end of another and a word
// wider than the box
if ( index % 2 == 0 || index + 1 >= linesBreak . size || cursor != linesBreak . items [ index ] || linesBreak . items [ index ... |
public class ExpressRoutePortsLocationsInner { /** * Retrieves a single ExpressRoutePort peering location , including the list of available bandwidths available at said peering location .
* @ param locationName Name of the requested ExpressRoutePort peering location .
* @ param serviceCallback the async ServiceCall... | return ServiceFuture . fromResponse ( getWithServiceResponseAsync ( locationName ) , serviceCallback ) ; |
public class DefaultFaceletFactory { /** * Resolves a path based on the passed URL . If the path starts with ' / ' , then resolve the path against
* { @ link javax . faces . context . ExternalContext # getResource ( java . lang . String )
* javax . faces . context . ExternalContext # getResource ( java . lang . Str... | if ( path . startsWith ( "/" ) ) { context . getAttributes ( ) . put ( LAST_RESOURCE_RESOLVED , null ) ; URL url = resolveURL ( context , path ) ; if ( url == null ) { throw new FileNotFoundException ( path + " Not Found in ExternalContext as a Resource" ) ; } return url ; } else { return new URL ( source , path ) ; } |
public class AWSSecurityHubClient { /** * Lists all findings - generating solutions ( products ) whose findings you ' ve subscribed to receive in Security Hub .
* @ param listEnabledProductsForImportRequest
* @ return Result of the ListEnabledProductsForImport operation returned by the service .
* @ throws Intern... | request = beforeClientExecution ( request ) ; return executeListEnabledProductsForImport ( request ) ; |
public class TypeBindings { /** * / * Accessors */
public ResolvedType findBoundType ( String name ) { } } | for ( int i = 0 , len = _names . length ; i < len ; ++ i ) { if ( name . equals ( _names [ i ] ) ) { return _types [ i ] ; } } return null ; |
public class RestfulApiClient { /** * function to dispatch the request and pass back the response . */
protected T sendAndReturn ( final HttpUriRequest request ) throws IOException { } } | try ( CloseableHttpClient client = HttpClients . createDefault ( ) ) { return this . parseResponse ( client . execute ( request ) ) ; } |
public class AptUtil { /** * Test if the given type is an internal type .
* @ param typeUtils
* @ param type
* @ return True if the type is an internal type , false otherwise .
* @ author vvakame */
public static boolean isInternalType ( Types typeUtils , TypeMirror type ) { } } | Element element = ( ( TypeElement ) typeUtils . asElement ( type ) ) . getEnclosingElement ( ) ; return element . getKind ( ) != ElementKind . PACKAGE ; |
public class AnimaQuery { /** * Build a insert statement .
* @ param model model instance
* @ param < S >
* @ return insert sql */
private < S extends Model > String buildInsertSQL ( S model , List < Object > columnValues ) { } } | SQLParams sqlParams = SQLParams . builder ( ) . model ( model ) . columnValues ( columnValues ) . modelClass ( this . modelClass ) . tableName ( this . tableName ) . pkName ( this . primaryKeyColumn ) . build ( ) ; return Anima . of ( ) . dialect ( ) . insert ( sqlParams ) ; |
public class AtomicMarkableReference { /** * Returns the current values of both the reference and the mark .
* Typical usage is { @ code boolean [ 1 ] holder ; ref = v . get ( holder ) ; } .
* @ param markHolder an array of size of at least one . On return ,
* { @ code markHolder [ 0 ] } will hold the value of th... | Pair < V > pair = this . pair ; markHolder [ 0 ] = pair . mark ; return pair . reference ; |
public class RestClientUtil { /** * 发送es restful sql请求下一页数据 , 获取返回值 , 返回值类型由beanType决定
* https : / / www . elastic . co / guide / en / elasticsearch / reference / current / sql - rest . html
* @ param beanType
* @ param cursor
* @ param metas
* @ param < T >
* @ return
* @ throws ElasticSearchException */... | if ( cursor == null ) { return null ; } SQLRestResponse result = this . client . executeRequest ( "/_xpack/sql" , new StringBuilder ( ) . append ( "{\"cursor\": \"" ) . append ( cursor ) . append ( "\"}" ) . toString ( ) , new SQLRestResponseHandler ( ) ) ; SQLResult < T > datas = ResultUtil . buildFetchSQLResult ( res... |
public class StorableIndex { /** * Parses an index descriptor and returns an index object .
* @ param desc name descriptor , as created by { @ link # getNameDescriptor }
* @ param info info on storable type
* @ return index represented by descriptor
* @ throws IllegalArgumentException if error in descriptor syn... | String name = info . getStorableType ( ) . getName ( ) ; if ( ! desc . startsWith ( name ) ) { throw new IllegalArgumentException ( "Descriptor starts with wrong type name: \"" + desc + "\", \"" + name + '"' ) ; } Map < String , ? extends StorableProperty < S > > allProperties = info . getAllProperties ( ) ; List < Sto... |
public class EmptyIterator { /** * Gets a singleton instance of the empty iterator .
* @ param < E > The type of the objects ( not ) returned by the iterator .
* @ return An instance of the iterator . */
public static < E > EmptyIterator < E > get ( ) { } } | @ SuppressWarnings ( "unchecked" ) EmptyIterator < E > iter = ( EmptyIterator < E > ) INSTANCE ; return iter ; |
public class Scs_counts { /** * Column counts of LL ' = A or LL ' = A ' A , given parent & postordering
* @ param A
* column - compressed matrix
* @ param parent
* elimination tree of A
* @ param post
* postordering of parent
* @ param ata
* analyze A if false , A ' A otherwise
* @ return column count... | int i , j , k , n , m , J , s , p , q , ATp [ ] , ATi [ ] , maxfirst [ ] , prevleaf [ ] , ancestor [ ] , colcount [ ] , w [ ] , first [ ] , delta [ ] ; int [ ] head = null , next = null ; int [ ] jleaf = new int [ 1 ] ; int head_offset = 0 , next_offset = 0 ; Scs AT ; if ( ! Scs_util . CS_CSC ( A ) || parent == null ||... |
public class DOMDiffHandler { /** * Start the diff .
* This writes out the start of a & lt ; diff & gt ; node .
* @ param oldJar ignored
* @ param newJar ignored
* @ throws DiffException when there is an underlying exception , e . g .
* writing to a file caused an IOException */
public void startDiff ( String... | Element tmp = doc . createElementNS ( XML_URI , "diff" ) ; tmp . setAttribute ( "old" , oldJar ) ; tmp . setAttribute ( "new" , newJar ) ; doc . appendChild ( tmp ) ; currentNode = tmp ; |
public class Hash { /** * Method getHashText .
* @ param plainText
* @ param algorithm The algorithm to use like MD2 , MD5 , SHA - 1 , etc .
* @ return String
* @ throws NoSuchAlgorithmException */
public static String getHashText ( String plainText , String algorithm ) throws NoSuchAlgorithmException { } } | MessageDigest mdAlgorithm = MessageDigest . getInstance ( algorithm ) ; mdAlgorithm . update ( plainText . getBytes ( ) ) ; byte [ ] digest = mdAlgorithm . digest ( ) ; StringBuffer hexString = new StringBuffer ( ) ; for ( int i = 0 ; i < digest . length ; i ++ ) { plainText = Integer . toHexString ( 0xFF & digest [ i ... |
public class ServletContextLogger { /** * from interface LogChute */
public void init ( RuntimeServices rsvc ) { } } | // if we weren ' t constructed with a servlet context , try to obtain
// one via the application context
if ( _sctx == null ) { // first look for the servlet context directly
_sctx = ( ServletContext ) rsvc . getApplicationAttribute ( "ServletContext" ) ; } // if that didn ' t work , look for an application
if ( _sctx ... |
public class OrderBook { /** * Replace the amount for limitOrder ' s price in the provided list . */
private void update ( List < LimitOrder > asks , LimitOrder limitOrder ) { } } | int idx = Collections . binarySearch ( asks , limitOrder ) ; if ( idx >= 0 ) { asks . remove ( idx ) ; asks . add ( idx , limitOrder ) ; } else { asks . add ( - idx - 1 , limitOrder ) ; } |
public class JoltUtils { /** * Navigate a JSON tree ( made up of Maps and Lists ) to " lookup " the value
* at a particular path .
* Example : given Json
* Object json =
* " b " : [ " x " , " y " , " z " ]
* navigate ( json , " a " , " b " , 0 ) will return " x " .
* It will traverse down the nested " a " a... | Object destination = source ; for ( Object path : paths ) { if ( path == null || destination == null ) { return null ; } if ( destination instanceof Map ) { destination = ( ( Map ) destination ) . get ( path ) ; } else if ( destination instanceof List ) { if ( ! ( path instanceof Integer ) ) { return null ; } List dest... |
public class CaseRuntimeDataServiceImpl { /** * Case instance queries */
@ Override public Collection < org . jbpm . services . api . model . NodeInstanceDesc > getActiveNodesForCase ( String caseId , QueryContext queryContext ) { } } | Map < String , Object > params = new HashMap < String , Object > ( ) ; params . put ( "caseId" , caseId + "%" ) ; applyQueryContext ( params , queryContext ) ; applyDeploymentFilter ( params ) ; List < org . jbpm . services . api . model . NodeInstanceDesc > nodeInstances = commandService . execute ( new QueryNameComma... |
public class LocalDateUtil { /** * 指定时间的当月第一天
* @ param localDate 时间
* @ return localDate */
public static LocalDate firstDay ( LocalDate localDate ) { } } | return LocalDate . of ( localDate . getYear ( ) , localDate . getMonth ( ) , 1 ) ; |
public class StandaloneProcessRunnerProcess { /** * This is a special method that runs some code when this screen is opened as a task . */
public void run ( ) { } } | Map < String , Object > properties = this . getProperties ( ) ; String process = this . getProperty ( STANDALONE_PROCESS ) ; properties . put ( DBParams . PROCESS , process ) ; Environment env = new Environment ( properties ) ; MainApplication app = new MainApplication ( env , properties , null ) ; ProcessRunnerTask ta... |
public class TransformProcess { /** * Transforms a sequence
* of strings in to a sequence of writables
* ( very similar to { @ link # transformRawStringsToInput ( String . . . ) }
* for sequences
* @ param sequence the sequence to transform
* @ return the transformed input */
public List < List < Writable > >... | List < List < Writable > > ret = new ArrayList < > ( ) ; for ( List < String > input : sequence ) ret . add ( transformRawStringsToInputList ( input ) ) ; return ret ; |
public class ArchivalUrlContextResultURIConverterFactory { /** * / * ( non - Javadoc )
* @ see org . archive . wayback . replay . html . ContextResultURIConverterFactory # getContextConverter ( java . lang . String ) */
@ Override public ResultURIConverter getContextConverter ( String flags ) { } } | if ( flags == null ) { return converter ; } return new ArchivalUrlSpecialContextResultURIConverter ( flags ) ; |
public class AbstractSurfaceDataType { /** * Gets the value of the genericApplicationPropertyOfSurfaceData property .
* This accessor method returns a reference to the live list ,
* not a snapshot . Therefore any modification you make to the
* returned list will be present inside the JAXB object .
* This is why... | if ( _GenericApplicationPropertyOfSurfaceData == null ) { _GenericApplicationPropertyOfSurfaceData = new ArrayList < JAXBElement < Object > > ( ) ; } return this . _GenericApplicationPropertyOfSurfaceData ; |
public class ESTemplate { /** * 通过主键删除数据
* @ param mapping 配置对象
* @ param pkVal 主键值
* @ param esFieldData 数据Map */
public void delete ( ESMapping mapping , Object pkVal , Map < String , Object > esFieldData ) { } } | if ( mapping . get_id ( ) != null ) { getBulk ( ) . add ( transportClient . prepareDelete ( mapping . get_index ( ) , mapping . get_type ( ) , pkVal . toString ( ) ) ) ; commitBulk ( ) ; } else { SearchResponse response = transportClient . prepareSearch ( mapping . get_index ( ) ) . setTypes ( mapping . get_type ( ) ) ... |
public class Duration { /** * Converts the duration value to milliseconds .
* @ return the duration value in milliseconds ( will be negative if
* { @ link # isPrior } is true ) */
public long toMillis ( ) { } } | long totalSeconds = 0 ; if ( weeks != null ) { totalSeconds += 60L * 60 * 24 * 7 * weeks ; } if ( days != null ) { totalSeconds += 60L * 60 * 24 * days ; } if ( hours != null ) { totalSeconds += 60L * 60 * hours ; } if ( minutes != null ) { totalSeconds += 60L * minutes ; } if ( seconds != null ) { totalSeconds += seco... |
public class CertUtil { /** * 将签名私钥证书文件读取为证书存储对象
* @ param pfxkeyfile
* 证书文件名
* @ param keypwd
* 证书密码
* @ param type
* 证书类型
* @ return 证书对象
* @ throws IOException */
private static KeyStore getKeyInfo ( String pfxkeyfile , String keypwd , String type ) throws IOException { } } | LogUtil . writeLog ( "加载签名证书==>" + pfxkeyfile ) ; FileInputStream fis = null ; try { KeyStore ks = KeyStore . getInstance ( type , "BC" ) ; LogUtil . writeLog ( "Load RSA CertPath=[" + pfxkeyfile + "],Pwd=[" + keypwd + "],type=[" + type + "]" ) ; fis = new FileInputStream ( pfxkeyfile ) ; char [ ] nPassword = null ; nP... |
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link IdType } { @ code > } */
@ XmlElementDecl ( namespace = "http://www.w3.org/2005/Atom" , name = "id" , scope = FeedType . class ) public JAXBElement < IdType > createFeedTypeId ( IdType value ) { } } | return new JAXBElement < IdType > ( ENTRY_TYPE_ID_QNAME , IdType . class , FeedType . class , value ) ; |
public class CreateEventSubscriptionRequest { /** * The list of identifiers of the event sources for which events will be returned . If not specified , then all
* sources are included in the response . An identifier must begin with a letter and must contain only ASCII letters ,
* digits , and hyphens ; it cannot en... | if ( this . sourceIds == null ) { setSourceIds ( new java . util . ArrayList < String > ( sourceIds . length ) ) ; } for ( String ele : sourceIds ) { this . sourceIds . add ( ele ) ; } return this ; |
public class XeGoogleLink { /** * Ctor .
* @ param req Request
* @ param app Google application ID
* @ param rel Related
* @ param redir Redirect URI
* @ return Source
* @ throws IOException If fails
* @ since 0.14
* @ checkstyle ParameterNumberCheck ( 4 lines ) */
private static XeSource make ( final R... | return new XeLink ( rel , new Href ( "https://accounts.google.com/o/oauth2/auth" ) . with ( "client_id" , app ) . with ( "redirect_uri" , redir ) . with ( "response_type" , "code" ) . with ( "state" , new RqHref . Base ( req ) . href ( ) ) . with ( "scope" , "https://www.googleapis.com/auth/userinfo.profile" ) ) ; |
public class ThreeViewEstimateMetricScene { /** * Tries a bunch of stuff to ensure that it can find the best solution which is physically possible */
private void findBestValidSolution ( BundleAdjustment < SceneStructureMetric > bundleAdjustment ) { } } | // prints out useful debugging information that lets you know how well it ' s converging
if ( verbose != null && verboseLevel > 0 ) bundleAdjustment . setVerbose ( verbose , 0 ) ; // Specifies convergence criteria
bundleAdjustment . configure ( convergeSBA . ftol , convergeSBA . gtol , convergeSBA . maxIterations ) ; b... |
public class FieldScopeImpl { private static FieldScope create ( FieldScopeLogic logic , Function < ? super Optional < Descriptor > , String > usingCorrespondenceStringFunction ) { } } | return new AutoValue_FieldScopeImpl ( logic , usingCorrespondenceStringFunction ) ; |
public class ApplicationGatewaysInner { /** * Stops the specified application gateway in a resource group .
* @ param resourceGroupName The name of the resource group .
* @ param applicationGatewayName The name of the application gateway .
* @ throws IllegalArgumentException thrown if parameters fail the validati... | stopWithServiceResponseAsync ( resourceGroupName , applicationGatewayName ) . toBlocking ( ) . last ( ) . body ( ) ; |
public class AccountUsageMarshaller { /** * Marshall the given parameter object . */
public void marshall ( AccountUsage accountUsage , ProtocolMarshaller protocolMarshaller ) { } } | if ( accountUsage == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( accountUsage . getTotalCodeSize ( ) , TOTALCODESIZE_BINDING ) ; protocolMarshaller . marshall ( accountUsage . getFunctionCount ( ) , FUNCTIONCOUNT_BINDING ) ; } catch ( Ex... |
public class AmazonLexModelBuildingClient { /** * Gets information about all of the versions of a bot .
* The < code > GetBotVersions < / code > operation returns a < code > BotMetadata < / code > object for each version of a bot .
* For example , if a bot has three numbered versions , the < code > GetBotVersions <... | request = beforeClientExecution ( request ) ; return executeGetBotVersions ( request ) ; |
public class DJXYAreaChartBuilder { /** * Adds the specified serie column to the dataset with custom label .
* @ param column the serie column
* @ param label column the custom label */
public DJXYAreaChartBuilder addSerie ( AbstractColumn column , String label ) { } } | getDataset ( ) . addSerie ( column , label ) ; return this ; |
public class NpmPackage { /** * get a stream that contains the contents of one of the files in a folder
* @ param folder
* @ param file
* @ return
* @ throws IOException */
public InputStream load ( String folder , String file ) throws IOException { } } | if ( content . containsKey ( folder + "/" + file ) ) return new ByteArrayInputStream ( content . get ( folder + "/" + file ) ) ; else { File f = new File ( Utilities . path ( path , folder , file ) ) ; if ( f . exists ( ) ) return new FileInputStream ( f ) ; throw new IOException ( "Unable to find the file " + folder +... |
public class EnvironmentSettingsInner { /** * Modify properties of environment setting .
* @ param resourceGroupName The name of the resource group .
* @ param labAccountName The name of the lab Account .
* @ param labName The name of the lab .
* @ param environmentSettingName The name of the environment Settin... | return updateWithServiceResponseAsync ( resourceGroupName , labAccountName , labName , environmentSettingName , environmentSetting ) . toBlocking ( ) . single ( ) . body ( ) ; |
public class AuditCollectorUtil { /** * Get all audit results */
@ SuppressWarnings ( "PMD" ) public static Map < AuditType , Audit > getAudit ( Dashboard dashboard , AuditSettings settings , long begin , long end ) { } } | Map < AuditType , Audit > audits = new HashMap < > ( ) ; String url = getAuditAPIUrl ( dashboard , settings , begin , end ) ; JSONObject auditResponseObj = parseObject ( url , settings ) ; if ( auditResponseObj == null ) { return audits ; } JSONArray globalStatus = ( JSONArray ) auditResponseObj . get ( STR_AUDITSTATUS... |
public class ExtendedPseudoRandomGenerator { /** * Use the polar form of the Box - Muller transformation to obtain
* a pseudo random number from a Gaussian distribution
* Code taken from Maurice Clerc ' s implementation
* @ param mean
* @ param standardDeviation
* @ return A pseudo random number */
public dou... | double x1 , x2 , w , y1 ; do { x1 = 2.0 * randomGenerator . nextDouble ( ) - 1.0 ; x2 = 2.0 * randomGenerator . nextDouble ( ) - 1.0 ; w = x1 * x1 + x2 * x2 ; } while ( w >= 1.0 ) ; w = Math . sqrt ( ( - 2.0 * Math . log ( w ) ) / w ) ; y1 = x1 * w ; y1 = y1 * standardDeviation + mean ; return y1 ; |
public class RadixSort { /** * Specialization of getCounts ( ) for key - prefix arrays . We could probably combine this with
* getCounts with some added parameters but that seems to hurt in benchmarks . */
private static long [ ] [ ] getKeyPrefixArrayCounts ( LongArray array , long startIndex , long numRecords , int ... | long [ ] [ ] counts = new long [ 8 ] [ ] ; long bitwiseMax = 0 ; long bitwiseMin = - 1L ; long baseOffset = array . getBaseOffset ( ) + startIndex * 8L ; long limit = baseOffset + numRecords * 16L ; Object baseObject = array . getBaseObject ( ) ; for ( long offset = baseOffset ; offset < limit ; offset += 16 ) { long v... |
public class BaasDocument { /** * Asynchronously deletes the document with { @ code id } from { @ code collection }
* @ param collection the collection of the document
* @ param id the id of the document
* @ param flags { @ link RequestOptions }
* @ param handler a callback to be invoked with the result of the ... | BaasBox box = BaasBox . getDefaultChecked ( ) ; if ( collection == null ) throw new IllegalArgumentException ( "collection cannot be null" ) ; if ( id == null ) throw new IllegalArgumentException ( "id cannot be null" ) ; Delete delete = new Delete ( box , collection , id , flags , handler ) ; return box . submitAsync ... |
public class ServerSocketService { /** * Returns a { @ link SettableFuture } from the map of connections .
* < p > This method has the following properties :
* < ul >
* < li > If the id is present in { @ link # connectionState } , this will throw an
* { @ link IllegalStateException } .
* < li > The id and sou... | lock . lock ( ) ; try { checkState ( connectionState . put ( source , id ) , "Connection for %s has already been %s" , id , source ) ; SettableFuture < OpenedSocket > future = halfFinishedConnections . get ( id ) ; if ( future == null ) { future = SettableFuture . create ( ) ; halfFinishedConnections . put ( id , futur... |
public class Post4 { /** * # inject */
@ Override public Behavior initialBehavior ( Optional < BlogState > snapshotState ) { } } | if ( snapshotState . isPresent ( ) && ! snapshotState . get ( ) . isEmpty ( ) ) { // behavior after snapshot must be restored by initialBehavior
return becomePostAdded ( snapshotState . get ( ) ) ; } else { // Behavior consist of a State and defined event handlers and command handlers .
BehaviorBuilder b = newBehaviorB... |
public class SoapFault { /** * Sets the locale used in SOAP fault .
* @ param locale */
public SoapFault locale ( String locale ) { } } | LocaleEditor localeEditor = new LocaleEditor ( ) ; localeEditor . setAsText ( locale ) ; this . locale = ( Locale ) localeEditor . getValue ( ) ; return this ; |
public class MergePolicyValidator { /** * Checks if a { @ link SplitBrainMergeTypeProvider } provides all required types of a given merge policy instance .
* @ param mergeTypeProvider the { @ link SplitBrainMergeTypeProvider } to retrieve the provided merge types
* @ param mergePolicyInstance the merge policy insta... | if ( mergePolicyInstance instanceof SplitBrainMergePolicy ) { return checkSplitBrainMergePolicy ( mergeTypeProvider , ( SplitBrainMergePolicy ) mergePolicyInstance ) ; } return null ; |
public class MetadataHook { /** * Builds a new { @ link Token } from a partition key , according to the partitioner reported by the Cassandra nodes .
* @ param metadata the original driver ' s metadata .
* @ param routingKey the routing key of the bound partition key
* @ return the token .
* @ throws IllegalSta... | return metadata . tokenFactory ( ) . hash ( routingKey ) ; |
public class SmbSessionImpl { /** * Establish a tree connection with the configured logon share
* @ throws SmbException */
@ Override public void treeConnectLogon ( ) throws SmbException { } } | String logonShare = getContext ( ) . getConfig ( ) . getLogonShare ( ) ; if ( logonShare == null || logonShare . isEmpty ( ) ) { throw new SmbException ( "Logon share is not defined" ) ; } try ( SmbTreeImpl t = getSmbTree ( logonShare , null ) ) { t . treeConnect ( null , null ) ; } catch ( CIFSException e ) { throw Sm... |
public class CSSStyleSheetImpl { /** * delete the rule at the given pos .
* @ param index the pos
* @ throws DOMException in case of error */
public void deleteRule ( final int index ) throws DOMException { } } | try { getCssRules ( ) . delete ( index ) ; } catch ( final IndexOutOfBoundsException e ) { throw new DOMExceptionImpl ( DOMException . INDEX_SIZE_ERR , DOMExceptionImpl . INDEX_OUT_OF_BOUNDS , e . getMessage ( ) ) ; } |
public class ProbabilitySampler { /** * Returns a new { @ link ProbabilitySampler } . The probability of sampling a trace is equal to that
* of the specified probability .
* @ param probability The desired probability of sampling . Must be within [ 0.0 , 1.0 ] .
* @ return a new { @ link ProbabilitySampler } .
... | Utils . checkArgument ( probability >= 0.0 && probability <= 1.0 , "probability must be in range [0.0, 1.0]" ) ; long idUpperBound ; // Special case the limits , to avoid any possible issues with lack of precision across
// double / long boundaries . For probability = = 0.0 , we use Long . MIN _ VALUE as this guarantee... |
public class EnvironmentCheck { /** * Report version info from SAX interfaces .
* Currently distinguishes between SAX 2 , SAX 2.0beta2,
* SAX1 , and not found .
* @ param h Hashtable to put information in */
protected void checkSAXVersion ( Hashtable h ) { } } | if ( null == h ) h = new Hashtable ( ) ; final String SAX_VERSION1_CLASS = "org.xml.sax.Parser" ; final String SAX_VERSION1_METHOD = "parse" ; // String
final String SAX_VERSION2_CLASS = "org.xml.sax.XMLReader" ; final String SAX_VERSION2_METHOD = "parse" ; // String
final String SAX_VERSION2BETA_CLASSNF = "org.xml.sax... |
public class RangeUtils { /** * Returns the token ranges that will be mapped to Spark partitions .
* @ param config the Deep configuration object .
* @ return the list of computed token ranges . */
public static List < DeepTokenRange > getSplits ( CassandraDeepJobConfig config ) { } } | Map < String , Iterable < Comparable > > tokens = new HashMap < > ( ) ; IPartitioner p = getPartitioner ( config ) ; Pair < Session , String > sessionWithHost = CassandraClientProvider . getSession ( config . getHost ( ) , config , false ) ; String queryLocal = "select tokens from system.local" ; tokens . putAll ( fetc... |
public class ManagementModule { /** * { @ inheritDoc } */
@ Override public boolean addRelationship ( Context context , String pid , String relationship , String object , boolean isLiteral , String datatype ) throws ServerException { } } | return mgmt . addRelationship ( context , pid , relationship , object , isLiteral , datatype ) ; |
public class CommerceWishListItemLocalServiceWrapper { /** * Adds the commerce wish list item to the database . Also notifies the appropriate model listeners .
* @ param commerceWishListItem the commerce wish list item
* @ return the commerce wish list item that was added */
@ Override public com . liferay . commer... | return _commerceWishListItemLocalService . addCommerceWishListItem ( commerceWishListItem ) ; |
public class CmsContentEditorHandler { /** * Cancels opening the editor . < p > */
void cancelEdit ( ) { } } | m_handler . enableToolbarButtons ( ) ; m_handler . activateSelection ( ) ; m_handler . m_controller . setContentEditing ( false ) ; m_handler . m_controller . reInitInlineEditing ( ) ; m_replaceElement = null ; m_dependingElementId = null ; m_currentElementId = null ; m_editorOpened = false ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.