signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class TimeoutException { /** * Constructs a < tt > TimeoutException < / tt > with the specified detail * message . * @ param message the detail message * @ param cause the original { @ code TimeoutException } */ public static TimeoutException newTimeoutException ( String message , java . util . concurrent ...
return new TimeoutException ( message , cause ) ;
public class CommerceSubscriptionEntryPersistenceImpl { /** * Clears the cache for all commerce subscription entries . * The { @ link EntityCache } and { @ link FinderCache } are both cleared by this method . */ @ Override public void clearCache ( ) { } }
entityCache . clearCache ( CommerceSubscriptionEntryImpl . class ) ; finderCache . clearCache ( FINDER_CLASS_NAME_ENTITY ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITH_PAGINATION ) ; finderCache . clearCache ( FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION ) ;
public class DefaultRegisteredServiceUserInterfaceInfo { /** * Gets description . * @ return the description */ public String getDescription ( ) { } }
val items = getDescriptions ( ) ; if ( items . isEmpty ( ) ) { return this . registeredService . getDescription ( ) ; } return StringUtils . collectionToDelimitedString ( items , "." ) ;
public class NetworkVehicleInterface { /** * Add the prefix required to parse with URI if it ' s not already there . */ private static String massageUri ( String uriString ) { } }
if ( ! uriString . startsWith ( SCHEMA_SPECIFIC_PREFIX ) ) { uriString = SCHEMA_SPECIFIC_PREFIX + uriString ; } return uriString ;
public class StrTokenizer { /** * Gets a new tokenizer instance which parses Tab Separated Value strings . * The default for CSV processing will be trim whitespace from both ends * ( which can be overridden with the setTrimmer method ) . * @ param input the string to parse * @ return a new tokenizer instance wh...
final StrTokenizer tok = getTSVClone ( ) ; tok . reset ( input ) ; return tok ;
public class BoxWebHook { /** * Returns iterator over all { @ link BoxWebHook } - s . * @ param api * the API connection to be used by the resource * @ param fields * the fields to retrieve . * @ return existing { @ link BoxWebHook . Info } - s */ public static Iterable < BoxWebHook . Info > all ( final BoxAP...
QueryStringBuilder builder = new QueryStringBuilder ( ) ; if ( fields . length > 0 ) { builder . appendParam ( "fields" , fields ) ; } return new BoxResourceIterable < BoxWebHook . Info > ( api , WEBHOOKS_URL_TEMPLATE . buildWithQuery ( api . getBaseURL ( ) , builder . toString ( ) ) , 64 ) { @ Override protected BoxWe...
public class DrizzleConnection { /** * Attempts to change the transaction isolation level for this < code > Connection < / code > object to the one given . The * constants defined in the interface < code > Connection < / code > are the possible transaction isolation levels . * < B > Note : < / B > If this method is...
String query = "SET SESSION TRANSACTION ISOLATION LEVEL" ; switch ( level ) { case Connection . TRANSACTION_READ_UNCOMMITTED : query += " READ UNCOMMITTED" ; break ; case Connection . TRANSACTION_READ_COMMITTED : query += " READ COMMITTED" ; break ; case Connection . TRANSACTION_REPEATABLE_READ : query += " REPEATABLE ...
public class TileTOCRGImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public Object eGet ( int featureID , boolean resolve , boolean coreType ) { } }
switch ( featureID ) { case AfplibPackage . TILE_TOCRG__XOFFSET : return getXOFFSET ( ) ; case AfplibPackage . TILE_TOCRG__YOFFSET : return getYOFFSET ( ) ; case AfplibPackage . TILE_TOCRG__THSIZE : return getTHSIZE ( ) ; case AfplibPackage . TILE_TOCRG__TVSIZE : return getTVSIZE ( ) ; case AfplibPackage . TILE_TOCRG__...
public class QueryRecord { /** * Is one of the sub - queries a multi - table . * @ return true if this is a query on top of an object query . */ public boolean isComplexQuery ( ) { } }
for ( int i = 0 ; i < this . getRecordlistCount ( ) ; i ++ ) { if ( this . getRecordlistAt ( i ) . getTable ( ) instanceof org . jbundle . base . db . shared . MultiTable ) return true ; } return false ;
public class MenuDrawer { /** * Sets the drawable used as the drawer indicator . * @ param drawable The drawable used as the drawer indicator . */ public void setSlideDrawable ( Drawable drawable ) { } }
mSlideDrawable = new SlideDrawable ( drawable ) ; mSlideDrawable . setIsRtl ( ViewHelper . getLayoutDirection ( this ) == LAYOUT_DIRECTION_RTL ) ; if ( mActionBarHelper != null ) { mActionBarHelper . setDisplayShowHomeAsUpEnabled ( true ) ; if ( mDrawerIndicatorEnabled ) { mActionBarHelper . setActionBarUpIndicator ( m...
public class EsIndex { /** * Appends specified value for the given column and related pseudo columns * into list of properties . * @ param doc list of properties in json format * @ param column colum definition * @ param value column ' s value . */ private void putValue ( EsRequest doc , EsIndexColumn column , ...
Object columnValue = column . columnValue ( value ) ; String stringValue = column . stringValue ( value ) ; doc . put ( column . getName ( ) , columnValue ) ; if ( ! ( value instanceof ModeShapeDateTime || value instanceof Long || value instanceof Boolean ) ) { doc . put ( column . getLowerCaseFieldName ( ) , stringVal...
public class LogConditionalObjectiveFunction { /** * This function is used to comme up with an estimate of the value / gradient based on only a small * portion of the data ( refered to as the batchSize for lack of a better term . In this case batch does * not mean All ! ! It should be thought of in the sense of " a...
if ( method . calculatesHessianVectorProduct ( ) && v != null ) { // This is used for Stochastic Methods that involve second order information ( SMD for example ) if ( method . equals ( StochasticCalculateMethods . AlgorithmicDifferentiation ) ) { calculateStochasticAlgorithmicDifferentiation ( x , v , batch ) ; } else...
public class QueryRpc { /** * Parse the " percentile " section of the query string and returns an list of * float that contains the percentile calculation paramters * the format of the section : percentile [ xx , yy , zz ] * xx , yy , zz are the floats * @ param spec * @ return */ public static final List < F...
List < Float > rs = new ArrayList < Float > ( ) ; int start_pos = spec . indexOf ( '[' ) ; int end_pos = spec . indexOf ( ']' ) ; if ( start_pos == - 1 || end_pos == - 1 ) { throw new BadRequestException ( "Malformated percentile query paramater: " + spec ) ; } String [ ] floats = Tags . splitString ( spec . substring ...
public class LogRepositoryComponent { /** * 16890.20771 */ private static synchronized LogRecordHandler getBinaryHandler ( ) { } }
if ( binaryHandler == null ) { binaryHandler = new LogRecordHandler ( TRACE_THRESHOLD , LogRepositoryManagerImpl . KNOWN_FORMATTERS [ 0 ] ) ; } return binaryHandler ;
public class ZonalOffset { /** * / * [ deutsch ] * < p > Konstruiert eine Verschiebung der lokalen Zeit relativ zur * UTC - Zeitzone in integralen oder fraktionalen Sekunden . < / p > * < p > Hinweis : Fraktionale Verschiebungen werden im Zeitzonenkontext * nicht verwendet , sondern nur dann , wenn ein { @ code...
if ( fraction != 0 ) { return new ZonalOffset ( total , fraction ) ; } else if ( total == 0 ) { return UTC ; } else if ( ( total % ( 15 * 60 ) ) == 0 ) { // Viertelstundenintervall Integer value = Integer . valueOf ( total ) ; ZonalOffset result = OFFSET_CACHE . get ( value ) ; if ( result == null ) { result = new Zona...
public class DropTargetHelper { /** * Remove a DropPasteWorker from the helper . * @ param worker the worker that should be removed */ public void removeDropPasteWorker ( DropPasteWorkerInterface worker ) { } }
this . dropPasteWorkerSet . remove ( worker ) ; java . util . Iterator it = this . dropPasteWorkerSet . iterator ( ) ; int newDefaultActions = 0 ; while ( it . hasNext ( ) ) newDefaultActions |= ( ( DropPasteWorkerInterface ) it . next ( ) ) . getAcceptableActions ( defaultDropTarget . getComponent ( ) ) ; defaultDropT...
public class Statement { /** * Creates a code chunk that assigns value to a preexisting variable with the given name . */ public static Statement assign ( Expression lhs , Expression rhs ) { } }
return Assignment . create ( lhs , rhs , null ) ;
public class MessageStoreImpl { /** * ( non - Javadoc ) * @ see com . ibm . ws . sib . msgstore . MessageStore # xmlWriteRawOn ( com . ibm . ws . sib . msgstore . FormattedWriter , boolean ) */ private final void _xmlWriteRawOn ( FormattedWriter writer , boolean callBackToItem ) throws IOException { } }
new RawDataDumper ( _persistentMessageStore , writer , callBackToItem ) . dump ( ) ;
public class Utils { /** * Replies the default value of the given parameter . * @ param member the member * @ param param the parameter . * @ param configuration the configuration . * @ return the default value or { @ code null } . */ @ SuppressWarnings ( "checkstyle:nestedifdepth" ) public static String getPar...
final AnnotationDesc annotation = Utils . findFirst ( param . annotations ( ) , it -> qualifiedNameEquals ( it . annotationType ( ) . qualifiedTypeName ( ) , getKeywords ( ) . getDefaultValueAnnnotationName ( ) ) ) ; if ( annotation != null ) { final ElementValuePair [ ] pairs = annotation . elementValues ( ) ; if ( pa...
public class FilterTypeImpl { /** * Returns all < code > init - param < / code > elements * @ return list of < code > init - param < / code > */ public List < ParamValueType < FilterType < T > > > getAllInitParam ( ) { } }
List < ParamValueType < FilterType < T > > > list = new ArrayList < ParamValueType < FilterType < T > > > ( ) ; List < Node > nodeList = childNode . get ( "init-param" ) ; for ( Node node : nodeList ) { ParamValueType < FilterType < T > > type = new ParamValueTypeImpl < FilterType < T > > ( this , "init-param" , childN...
public class AssociationBuilder { /** * Populates entities related via join table for < code > entity < / code > * @ param entity * @ param entityMetadata * @ param delegator * @ param relation */ void populateRelationForM2M ( Object entity , EntityMetadata entityMetadata , PersistenceDelegator delegator , Rela...
// For M - M relationship of Collection type , relationship entities are // always fetched from Join Table . if ( relation . getPropertyType ( ) . isAssignableFrom ( List . class ) || relation . getPropertyType ( ) . isAssignableFrom ( Set . class ) ) { if ( relation . isRelatedViaJoinTable ( ) && ( relObject == null |...
public class JspCompilationContext { /** * = = = = = Compile and reload = = = = = */ public void compile ( ) throws JasperException , FileNotFoundException { } }
createCompiler ( ) ; if ( jspCompiler . isOutDated ( ) ) { if ( isRemoved ( ) ) { throw new FileNotFoundException ( jspUri ) ; } try { jspCompiler . removeGeneratedFiles ( ) ; jspLoader = null ; jspCompiler . compile ( ) ; jsw . setReload ( true ) ; jsw . setCompilationException ( null ) ; } catch ( JasperException ex ...
public class Status { /** * Return a { @ link Status } given a canonical error { @ link Code } value . */ public static Status fromCodeValue ( int codeValue ) { } }
if ( codeValue < 0 || codeValue > STATUS_LIST . size ( ) ) { return UNKNOWN . withDescription ( "Unknown code " + codeValue ) ; } else { return STATUS_LIST . get ( codeValue ) ; }
public class TypeEnter { /** * Mark sym deprecated if annotations contain @ Deprecated annotation . */ public void markDeprecated ( Symbol sym , List < JCAnnotation > annotations , Env < AttrContext > env ) { } }
// In general , we cannot fully process annotations yet , but we // can attribute the annotation types and then check to see if the // @ Deprecated annotation is present . attr . attribAnnotationTypes ( annotations , env ) ; handleDeprecatedAnnotations ( annotations , sym ) ;
public class UIComponentBase { /** * < p class = " changed _ added _ 2_1 " > Install the listener instance * referenced by argument < code > componentListener < / code > as a * listener for events of type < code > eventClass < / code > originating * from this specific instance of < code > UIComponent < / code > ....
if ( eventClass == null ) { throw new NullPointerException ( ) ; } if ( componentListener == null ) { throw new NullPointerException ( ) ; } if ( initialStateMarked ( ) ) { initialState = false ; } if ( null == listenersByEventClass ) { listenersByEventClass = new HashMap < Class < ? extends SystemEvent > , List < Syst...
public class Http { /** * Sends a POST request and returns the response . * @ param endpoint The endpoint to send the request to . * @ param requestMessage A message to send in the request body . Can be null . * @ param responseClass The class to deserialise the Json response to . Can be null if no response messa...
// Create the request HttpPut put = new HttpPut ( endpoint . url ( ) ) ; put . setHeaders ( combineHeaders ( headers ) ) ; // Add the request message if there is one put . setEntity ( serialiseRequestMessage ( requestMessage ) ) ; // Send the request and process the response try ( CloseableHttpResponse response = httpC...
public class StandardBullhornData { /** * { @ inheritDoc } */ @ Override public < C extends CrudResponse , T extends UpdateEntity > C updateEntity ( T entity ) { } }
return this . handleUpdateEntity ( entity ) ;
public class PropFindResponseEntity { /** * { @ inheritDoc } */ public void write ( OutputStream stream ) throws IOException { } }
this . outputStream = stream ; try { this . xmlStreamWriter = XMLOutputFactory . newInstance ( ) . createXMLStreamWriter ( outputStream , Constants . DEFAULT_ENCODING ) ; xmlStreamWriter . setNamespaceContext ( namespaceContext ) ; xmlStreamWriter . writeStartDocument ( ) ; xmlStreamWriter . writeStartElement ( "D" , "...
public class StringStream { /** * XXX : encoding issues */ public int read ( byte [ ] buf , int offset , int length ) throws IOException { } }
int strlen = _length ; int start = offset ; int end = offset + length ; int index = _index ; for ( ; index < strlen && offset < end ; index ++ ) { int ch = _string . charAt ( index ) ; if ( ch < 0x80 ) buf [ offset ++ ] = ( byte ) ch ; else if ( ch < 0x800 && offset + 1 < end ) { buf [ offset ++ ] = ( byte ) ( 0xc0 | (...
public class StreamUtil { /** * a convenience method to reduce all the casting of HttpEntity . getContentLength ( ) to int */ public static InputStream cloneContent ( InputStream source , long readbackSize , ByteArrayOutputStream target ) throws IOException { } }
return cloneContent ( source , ( int ) Math . min ( ( long ) Integer . MAX_VALUE , readbackSize ) , target ) ;
public class TimeUtil { /** * Gets the next execution instant for a { @ link Schedule } , relative to a given instant . * < p > e . g . an hourly schedule has a next execution instant at 14:00 relative to 13:22. * @ param instant The instant to calculate the next execution instant relative to * @ param schedule T...
final ExecutionTime executionTime = ExecutionTime . forCron ( cron ( schedule ) ) ; final ZonedDateTime utcDateTime = instant . atZone ( UTC ) ; return executionTime . nextExecution ( utcDateTime ) . orElseThrow ( IllegalArgumentException :: new ) // with unix cron , this should not happen . toInstant ( ) ;
public class AccountingDate { /** * Obtains the current { @ code AccountingDate } from the system clock in the specified time - zone , * translated with the given AccountingChronology . * This will query the { @ link Clock # system ( ZoneId ) system clock } to obtain the current date . * Specifying the time - zon...
return now ( chronology , Clock . system ( zone ) ) ;
public class MatrixResponse { /** * Returns the distance for the specific entry ( from - & gt ; to ) in meter . */ public double getDistance ( int from , int to ) { } }
if ( hasErrors ( ) ) { throw new IllegalStateException ( "Cannot return distance (" + from + "," + to + ") if errors occured " + getErrors ( ) ) ; } if ( from >= distances . length ) { throw new IllegalStateException ( "Cannot get 'from' " + from + " from distances with size " + distances . length ) ; } else if ( to >=...
public class EnvelopeSchemaConverter { /** * Deserialize payload using payload schema */ public GenericRecord deserializePayload ( byte [ ] payload , Schema payloadSchema ) throws IOException , ExecutionException { } }
Decoder decoder = this . decoderFactory . binaryDecoder ( payload , null ) ; GenericDatumReader < GenericRecord > reader = this . readers . get ( payloadSchema ) ; return reader . read ( null , decoder ) ;
public class CharEscapeUtil { /** * / * Internal methods , low - level writing ; text , default */ public void _writeString ( String text ) throws IOException { } }
int len = text . length ( ) ; if ( len > _outputEnd ) { // Let ' s reserve space for entity at begin / end _writeLongString ( text ) ; return ; } // Ok : we know String will fit in buffer ok // But do we need to flush first ? if ( ( _outputTail + len ) > _outputEnd ) { _flushBuffer ( ) ; } text . getChars ( 0 , len , _...
public class SelectionPageGenerator { /** * Generates the sign in page to allow a user to select from the configured social login services . If no services are * configured , the user is redirected to an error page . * @ param request * @ param response * @ param socialTaiRequest * @ throws IOException */ pub...
setRequestAndConfigInformation ( request , response , socialTaiRequest ) ; if ( selectableConfigs == null || selectableConfigs . isEmpty ( ) ) { sendDisplayError ( response , "SIGN_IN_NO_CONFIGS" , new Object [ 0 ] ) ; return ; } generateOrSendToAppropriateSelectionPage ( response ) ;
public class DnsCache { /** * Adds DnsResponse to this cache * @ param response response to add */ public void add ( DnsQuery query , DnsResponse response ) { } }
assert eventloop . inEventloopThread ( ) : "Concurrent cache adds are not allowed" ; long expirationTime = now . currentTimeMillis ( ) ; if ( response . isSuccessful ( ) ) { assert response . getRecord ( ) != null ; // where are my advanced contracts so that Intellj would know it ' s true here without an assert ? long ...
public class HostStorageDeviceInfoEx { /** * Collects Runtime names for all ScsiLuns on a Host where the ScsiLun type is " disk " . */ private void collectScsiRuntimeNames ( ) { } }
// To hold all the Scsi Luns that are disks ArrayList < ScsiLun > sortedScsiLuns = new ArrayList < ScsiLun > ( ) ; // Check to see that this device has luns if ( storageDeviceInfo . getScsiLun ( ) . length == 0 ) { log . trace ( "There are no Scsi LUNS on this storage device." ) ; return ; } // Collect all the scsi lun...
public class TimePickerDialog { /** * For keyboard mode , processes key events . * @ param keyCode the pressed key . * @ return true if the key was successfully processed , false otherwise . */ private boolean processKeyUp ( int keyCode ) { } }
if ( keyCode == KeyEvent . KEYCODE_TAB ) { if ( mInKbMode ) { if ( isTypedTimeFullyLegal ( ) ) { finishKbMode ( true ) ; } return true ; } } else if ( keyCode == KeyEvent . KEYCODE_ENTER ) { if ( mInKbMode ) { if ( ! isTypedTimeFullyLegal ( ) ) { return true ; } finishKbMode ( false ) ; } if ( mCallback != null ) { mCa...
public class VirtualMediaPanel { /** * We overload this to translate mouse events into the proper coordinates before they are * dispatched to any of the mouse listeners . */ @ Override protected void processMouseEvent ( MouseEvent event ) { } }
event . translatePoint ( _vbounds . x , _vbounds . y ) ; super . processMouseEvent ( event ) ;
public class AnnotationManager { /** * Find first { @ link ru . yandex . qatools . allure . annotations . Severity } annotation * @ return { @ link ru . yandex . qatools . allure . model . SeverityLevel } or null if * annotation doesn ' t present */ public SeverityLevel getSeverity ( ) { } }
Severity severity = getAnnotation ( Severity . class ) ; return severity == null ? null : severity . value ( ) ;
public class Parser { /** * ImportSpecifierSet : : = ' { ' ( ImportSpecifier ( ' , ' ImportSpecifier ) * ( , ) ? ) ? ' } ' */ private ImmutableList < ParseTree > parseImportSpecifierSet ( ) { } }
ImmutableList . Builder < ParseTree > elements ; elements = ImmutableList . builder ( ) ; eat ( TokenType . OPEN_CURLY ) ; while ( peekIdOrKeyword ( ) ) { elements . add ( parseImportSpecifier ( ) ) ; if ( ! peek ( TokenType . CLOSE_CURLY ) ) { eat ( TokenType . COMMA ) ; } } eat ( TokenType . CLOSE_CURLY ) ; return el...
public class GeomorphUtilities { public void orizzonte5 ( double delta , int quadrata , double beta , double alfa , RandomIter elevImageIterator , WritableRaster curvatureImage , int [ ] [ ] shadow ) { } }
int rows = curvatureImage . getHeight ( ) ; int cols = curvatureImage . getWidth ( ) ; int y , I , J ; double zenith ; for ( int j = quadrata ; j >= 0 ; j -- ) { I = - 1 ; J = - 1 ; y = 0 ; for ( int jj = j ; jj < quadrata ; jj ++ ) { for ( int i = rows - ( int ) floor ( 1 / tan ( beta ) * ( jj - j ) ) - 1 ; i >= rows ...
public class NetworkInterfacesInner { /** * Creates or updates a network interface . * @ param resourceGroupName The name of the resource group . * @ param networkInterfaceName The name of the network interface . * @ param parameters Parameters supplied to the create or update network interface operation . * @ ...
return createOrUpdateWithServiceResponseAsync ( resourceGroupName , networkInterfaceName , parameters ) . map ( new Func1 < ServiceResponse < NetworkInterfaceInner > , NetworkInterfaceInner > ( ) { @ Override public NetworkInterfaceInner call ( ServiceResponse < NetworkInterfaceInner > response ) { return response . bo...
public class AdaptTo { /** * Try to adapt the adaptable to the given type and ensures that it succeeds . * @ param adaptable Adaptable * @ param type Type * @ param < T > Type * @ return Adaption result ( not null ) * @ throws UnableToAdaptException if the adaption was not successful */ @ SuppressWarnings ( "...
T object = adaptable . adaptTo ( type ) ; if ( object == null ) { throw new UnableToAdaptException ( adaptable , type ) ; } return object ;
public class WriteFileExtensions { /** * Writes the given byte array to a file . * @ param filename * The filename from the file . * @ param byteArray * The byte array . * @ throws IOException * Signals that an I / O exception has occurred . */ public static void writeByteArrayToFile ( final String filename...
final File file = new File ( filename ) ; writeByteArrayToFile ( file , byteArray ) ;
public class I18nUtils { /** * Convert a string based locale into a Locale Object . * Assumes the string has form " { language } _ { country } _ { variant } " . * Examples : " en " , " de _ DE " , " _ GB " , " en _ US _ WIN " , " de _ _ POSIX " , " fr _ MAC " * @ param localeString The String * @ return the Loc...
if ( localeString == null ) { return null ; } localeString = localeString . trim ( ) ; if ( localeString . toLowerCase ( ) . equals ( "default" ) ) { return Locale . getDefault ( ) ; } // Extract language int languageIndex = localeString . indexOf ( '_' ) ; String language = null ; if ( languageIndex == - 1 ) { // No f...
public class JBBPNamedNumericFieldMap { /** * Ask the registered external value provider for a field value . * @ param externalFieldName the name of a field , it must not be null * @ param compiledBlock the compiled block , it must not be null * @ param evaluator an evaluator which is calling the method , it can ...
final String normalizedName = JBBPUtils . normalizeFieldNameOrPath ( externalFieldName ) ; if ( this . externalValueProvider == null ) { throw new JBBPEvalException ( "Request for '" + externalFieldName + "' but there is not any value provider" , evaluator ) ; } else { return this . externalValueProvider . provideArray...
public class ByteBufUtil { /** * Encode a { @ link CharSequence } in < a href = " http : / / en . wikipedia . org / wiki / ASCII " > ASCII < / a > and write * it to a { @ link ByteBuf } allocated with { @ code alloc } . * @ param alloc The allocator used to allocate a new { @ link ByteBuf } . * @ param seq The ch...
// ASCII uses 1 byte per char ByteBuf buf = alloc . buffer ( seq . length ( ) ) ; writeAscii ( buf , seq ) ; return buf ;
public class FragmentedMp4Builder { /** * Creates a ' moof ' box for a given sequence of samples . * @ param startSample low endpoint ( inclusive ) of the sample sequence * @ param endSample high endpoint ( exclusive ) of the sample sequence * @ param track source of the samples * @ param sequenceNumber the fra...
MovieFragmentBox moof = new MovieFragmentBox ( ) ; createMfhd ( startSample , endSample , track , sequenceNumber , moof ) ; createTraf ( startSample , endSample , track , sequenceNumber , moof ) ; TrackRunBox firstTrun = moof . getTrackRunBoxes ( ) . get ( 0 ) ; firstTrun . setDataOffset ( 1 ) ; // dummy to make size c...
public class DialogRootView { /** * Adapts the left and right margin of a specific divider . * @ param divider * The divider , whose left and right margin should be adapted , as an instance of the * class { @ link Divider } */ private void adaptDividerMargin ( @ Nullable final Divider divider ) { } }
if ( divider != null ) { ViewGroup . LayoutParams layoutParams = divider . getLayoutParams ( ) ; if ( layoutParams instanceof LayoutParams ) { ( ( LayoutParams ) layoutParams ) . leftMargin = dividerMargin ; ( ( LayoutParams ) layoutParams ) . rightMargin = dividerMargin ; } }
public class Year { /** * Returns a copy of this { @ code Year } with the specified number of years subtracted . * This instance is immutable and unaffected by this method call . * @ param yearsToSubtract the years to subtract , may be negative * @ return a { @ code Year } based on this year with the year subtrac...
return ( yearsToSubtract == Long . MIN_VALUE ? plusYears ( Long . MAX_VALUE ) . plusYears ( 1 ) : plusYears ( - yearsToSubtract ) ) ;
public class HadoopSparkJob { /** * Add additional namenodes specified in the Spark Configuration * ( { @ link # SPARK _ CONF _ ADDITIONAL _ NAMENODES } ) to the Props provided . * @ param props Props to add additional namenodes to . * @ see HadoopJobUtils # addAdditionalNamenodesToProps ( Props , String ) */ pri...
final String sparkConfDir = getSparkLibConf ( ) [ 1 ] ; final File sparkConfFile = new File ( sparkConfDir , "spark-defaults.conf" ) ; try { final InputStreamReader inReader = new InputStreamReader ( new FileInputStream ( sparkConfFile ) , StandardCharsets . UTF_8 ) ; // Use Properties to avoid needing Spark on our cla...
public class TokenCompleteTextView { /** * Initialise the variables and various listeners */ private void init ( ) { } }
if ( initialized ) return ; // Initialise variables setTokenizer ( new CharacterTokenizer ( Arrays . asList ( ',' , ';' ) , "," ) ) ; Editable text = getText ( ) ; assert null != text ; spanWatcher = new TokenSpanWatcher ( ) ; textWatcher = new TokenTextWatcher ( ) ; hiddenContent = null ; countSpan = new CountSpan ( )...
public class JcrAccessControlList { /** * Lists all privileges defined by this access list for the given user . * @ param context the security context of the user ; never null * @ return list of privilege objects . */ public Privilege [ ] getPrivileges ( SecurityContext context ) { } }
ArrayList < Privilege > privs = new ArrayList < Privilege > ( ) ; for ( AccessControlEntryImpl ace : principals . values ( ) ) { // add privileges granted for everyone if ( ace . getPrincipal ( ) . equals ( SimplePrincipal . EVERYONE ) ) { privs . addAll ( Arrays . asList ( ace . getPrivileges ( ) ) ) ; } // add privil...
public class Frame { /** * Pop a value off of the Java operand stack . * @ return the value that was popped * @ throws DataflowAnalysisException * if the Java operand stack is empty */ public ValueType popValue ( ) throws DataflowAnalysisException { } }
if ( ! isValid ( ) ) { throw new DataflowAnalysisException ( "accessing top or bottom frame" ) ; } if ( slotList . size ( ) == numLocals ) { throw new DataflowAnalysisException ( "operand stack empty" ) ; } return slotList . remove ( slotList . size ( ) - 1 ) ;
public class DatabaseProviderVertx { /** * Use an externally configured DataSource , Flavor , and optionally a shutdown hook . * The shutdown hook may be null if you don ' t want calls to Builder . close ( ) to attempt * any shutdown . The DataSource and Flavor are mandatory . */ @ CheckReturnValue public static Bu...
WorkerExecutor executor = vertx . createSharedWorkerExecutor ( "DbWorker-" + poolNameCounter . getAndAdd ( 1 ) , pool . size ) ; return new BuilderImpl ( executor , ( ) -> { try { executor . close ( ) ; } catch ( Exception e ) { log . warn ( "Problem closing database worker executor" , e ) ; } if ( pool . poolShutdown ...
public class HiveJdbcConnector { /** * Helper method that executes a series of " set ? = ? " queries for the Hive connection in { @ link HiveJdbcConnector # conn } . * @ param props specifies which set methods to run . For example , if the config contains " hive . mapred . min . split . size = 100" * then " set map...
Preconditions . checkNotNull ( this . conn , "The Hive connection must be set before any queries can be run" ) ; try ( PreparedStatement preparedStatement = this . conn . prepareStatement ( "set ?=?" ) ) { Enumeration < ? > enumeration = props . propertyNames ( ) ; while ( enumeration . hasMoreElements ( ) ) { String p...
public class sent_mails { /** * Use this API to fetch filtered set of sent _ mails resources . * filter string should be in JSON format . eg : " vm _ state : DOWN , name : [ a - z ] + " */ public static sent_mails [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } }
sent_mails obj = new sent_mails ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; sent_mails [ ] response = ( sent_mails [ ] ) obj . getfiltered ( service , option ) ; return response ;
public class HeaderDefinition { /** * Checks this header definition consistency , in other words if all the mandatory properties of the definition have * been set . * @ throws IllegalStateException If a mandatory property has not been set . */ public void validate ( ) { } }
check ( "firstLine" , this . firstLine ) ; check ( "beforeEachLine" , this . beforeEachLine ) ; check ( "endLine" , this . endLine ) ; check ( "firstLineDetectionPattern" , this . firstLineDetectionPattern ) ; check ( "lastLineDetectionPattern" , this . lastLineDetectionPattern ) ; check ( "isMultiline" , this . isMult...
public class RSA { /** * 从文件加载公钥 * @ param file 公钥文件 */ public static PublicKey loadPublicKey ( File file ) { } }
FileInputStream inputStream = null ; try { inputStream = new FileInputStream ( file ) ; return loadPublicKey ( inputStream ) ; } catch ( FileNotFoundException e ) { throw new RuntimeException ( "文件不存在" ) ; } finally { try { inputStream . close ( ) ; } catch ( Exception e2 ) { } }
public class QrCodeEncoder { /** * Creates a QR - Code which encodes data in the alphanumeric format * @ param alphaNumeric String containing only alphanumeric values . * @ return The QR - Code */ public QrCodeEncoder addAlphanumeric ( String alphaNumeric ) { } }
byte values [ ] = alphanumericToValues ( alphaNumeric ) ; MessageSegment segment = new MessageSegment ( ) ; segment . message = alphaNumeric ; segment . data = values ; segment . length = values . length ; segment . mode = QrCode . Mode . ALPHANUMERIC ; segment . encodedSizeBits += 4 ; segment . encodedSizeBits += 11 *...
public class MultiLayerNetwork { /** * Perform layerwise unsupervised training on a single pre - trainable layer in the network ( VAEs , Autoencoders , etc ) * for the specified number of epochs < br > * If the specified layer index ( 0 to numLayers - 1 ) is not a pretrainable layer , this is a no - op . * @ para...
Preconditions . checkState ( numEpochs > 0 , "Number of epochs (%s) must be a positive number" , numEpochs ) ; if ( flattenedGradients == null ) { initGradientsView ( ) ; } if ( layerIdx >= layers . length ) { throw new IllegalArgumentException ( "Cannot pretrain layer: layerIdx (" + layerIdx + ") >= numLayers (" + lay...
public class Doc { /** * Gets the text value of the first tag in doc that matches tagName */ public String getTagValue ( String tagName ) { } }
Tag [ ] tags = getTagMap ( ) . get ( tagName ) ; if ( tags == null || tags . length == 0 ) { return null ; } return tags [ tags . length - 1 ] . getText ( ) ;
public class SingletonStoreConfigurationBuilder { /** * If pushStateWhenCoordinator is true , this property sets the maximum number of milliseconds * that the process of pushing the in - memory state to the underlying cache loader should take . */ public SingletonStoreConfigurationBuilder < S > pushStateTimeout ( lon...
return pushStateTimeout ( unit . toMillis ( l ) ) ;
public class RdbAdapter { /** * 初始化方法 * @ param configuration 外部适配器配置信息 */ @ Override public void init ( OuterAdapterConfig configuration , Properties envProperties ) { } }
this . envProperties = envProperties ; Map < String , MappingConfig > rdbMappingTmp = ConfigLoader . load ( envProperties ) ; // 过滤不匹配的key的配置 rdbMappingTmp . forEach ( ( key , mappingConfig ) -> { if ( ( mappingConfig . getOuterAdapterKey ( ) == null && configuration . getKey ( ) == null ) || ( mappingConfig . getOuter...
public class DeviceProxyDAODefaultImpl { private void poll_object ( final DeviceProxy deviceProxy , final String objectName , final String objectType , final int period ) throws DevFailed { } }
final DevVarLongStringArray lsa = new DevVarLongStringArray ( ) ; lsa . lvalue = new int [ 1 ] ; lsa . svalue = new String [ 3 ] ; lsa . svalue [ 0 ] = deviceProxy . devname ; lsa . svalue [ 1 ] = objectType ; lsa . svalue [ 2 ] = objectName . toLowerCase ( ) ; lsa . lvalue [ 0 ] = period ; // Send command on administr...
public class TransfVec { /** * Compose given origVector with given transformation . Always returns a new vector . * Original vector is kept if keepOrig is true . * @ param origVec * @ param transfMap * @ param keepOrig * @ return a new instance of { @ link TransfVec } composing transformation of origVector an...
// Do a mapping from INT - > ENUM - > this vector ENUM int [ ] [ ] domMap = Utils . compose ( new int [ ] [ ] { origVec . _values , origVec . _indexes } , transfMap ) ; Vec result = origVec . masterVec ( ) . makeTransf ( domMap [ 0 ] , domMap [ 1 ] , domain ) ; ; if ( ! keepOrig ) DKV . remove ( origVec . _key ) ; retu...
public class JOptionPanes { /** * Create a new input dialog that performs validation . * @ param parent The optional parent * @ param title The title * @ param mainComponent The main component that is shown in the * dialog . This must be a component that contains the text component . * @ param textComponent T...
JButton okButton = new JButton ( "Ok" ) ; String text = textComponent . getText ( ) ; boolean valid = validInputPredicate . test ( text ) ; okButton . setEnabled ( valid ) ; JButton cancelButton = new JButton ( "Cancel" ) ; Object [ ] options = new Object [ ] { okButton , cancelButton } ; JOptionPane optionPane = new J...
public class IOUtils { /** * A JavaNLP specific convenience routine for obtaining the current * scratch directory for the machine you ' re currently running on . */ public static File getJNLPLocalScratch ( ) { } }
try { String machineName = InetAddress . getLocalHost ( ) . getHostName ( ) . split ( "\\." ) [ 0 ] ; String username = System . getProperty ( "user.name" ) ; return new File ( "/" + machineName + "/scr1/" + username ) ; } catch ( Exception e ) { return new File ( "./scr/" ) ; // default scratch }
public class BaseConnectionSource { /** * Save this connection as our special connection to be returned by the { @ link # getSavedConnection ( ) } method . * @ return True if the connection was saved or false if it was already saved . */ protected boolean saveSpecial ( DatabaseConnection connection ) throws SQLExcept...
// check for a connection already saved NestedConnection currentSaved = specialConnection . get ( ) ; if ( currentSaved == null ) { specialConnection . set ( new NestedConnection ( connection ) ) ; return true ; } else { if ( currentSaved . connection != connection ) { throw new SQLException ( "trying to save connectio...
public class TableColumnCache { /** * < p > Return an Iterator over the < code > UIColumn < / code > children of the * specified < code > UIData < / code > that have a < code > rendered < / code > property * of < code > true < / code > . < / p > * @ param table the table from which to extract children * @ retur...
if ( table instanceof UIData ) { final int childCount = table . getChildCount ( ) ; if ( childCount > 0 ) { final List < HtmlColumn > results = new ArrayList < > ( childCount ) ; for ( UIComponent kid : table . getChildren ( ) ) { if ( ( kid instanceof UIColumn ) && kid . isRendered ( ) ) { results . add ( ( HtmlColumn...
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 503:1 : modifier : ( annotation | ' public ' | ' protected ' | ' private ' | ' static ' | ' abstract ' | ' final ' | ' native ' | ' synchronized ' | ' transient ' | ' volatile ' | ' strictfp ' ) ; *...
int modifier_StartIndex = input . index ( ) ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 46 ) ) { return ; } // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 504:5 : ( annotation | ' public ' | ' protected ' | ' private ' | ' static ' | ' abstract ' | ...
public class CronTabList { /** * Checks if this crontab entry looks reasonable , * and if not , return an warning message . * The point of this method is to catch syntactically correct * but semantically suspicious combinations , like */ public String checkSanity ( ) { } }
for ( CronTab tab : tabs ) { String s = tab . checkSanity ( ) ; if ( s != null ) return s ; } return null ;
public class BufferedWriter { /** * Writes a portion of an array of characters . * < p > Ordinarily this method stores characters from the given array into * this stream ' s buffer , flushing the buffer to the underlying stream as * needed . If the requested length is at least as large as the buffer , * however...
synchronized ( lock ) { ensureOpen ( ) ; if ( ( off < 0 ) || ( off > cbuf . length ) || ( len < 0 ) || ( ( off + len ) > cbuf . length ) || ( ( off + len ) < 0 ) ) { throw new IndexOutOfBoundsException ( ) ; } else if ( len == 0 ) { return ; } if ( len >= nChars ) { /* If the request length exceeds the size of the outp...
public class DeleteClusterRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DeleteClusterRequest deleteClusterRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( deleteClusterRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( deleteClusterRequest . getClusterId ( ) , CLUSTERID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e ...
public class JTMConfigurationProvider { /** * Called by DS to inject location service ref */ protected synchronized void setLocationService ( WsLocationAdmin locSvc ) { } }
this . locationService = locSvc ; if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "setLocationService, locSvc " + locSvc ) ;
public class DomConfigurationFactory { /** * Fill codes of scopes . * @ param scopeNodeList node list with scopes definitions * @ param scopes scopes * @ param codes codes * @ throws TextProcessorFactoryException any problem */ private void fillScopeCodes ( NodeList scopeNodeList , Map < String , Scope > scopes...
for ( int i = 0 ; i < scopeNodeList . getLength ( ) ; i ++ ) { Element scopeElement = ( Element ) scopeNodeList . item ( i ) ; Scope scope = scopes . get ( scopeElement . getAttribute ( TAG_SCOPE_ATTR_NAME ) ) ; // Add codes to scope Set < Code > scopeCodes = new HashSet < Code > ( ) ; // bind exists codes NodeList cod...
public class InfoPropertiesInfoContributor { /** * Replace the { @ code value } for the specified key if the value is not { @ code null } . * @ param content the content to expose * @ param key the property to replace * @ param value the new value */ protected void replaceValue ( Map < String , Object > content ,...
if ( content . containsKey ( key ) && value != null ) { content . put ( key , value ) ; }
public class ChartLongValue { /** * { @ inheritDoc } */ public int compareTo ( Object o ) { } }
if ( o instanceof ChartLongValue ) { return ( ( ChartLongValue ) o ) . value . compareTo ( value ) ; } else if ( o instanceof String ) { return ( ( String ) o ) . compareTo ( value ) ; } return 1 ;
public class AvailablePhoneNumberCountryReader { /** * Retrieve the target page from the Twilio API . * @ param targetUrl API - generated URL for the requested results page * @ param client TwilioRestClient with which to make the request * @ return AvailablePhoneNumberCountry ResourceSet */ @ Override @ SuppressW...
this . pathAccountSid = this . pathAccountSid == null ? client . getAccountSid ( ) : this . pathAccountSid ; Request request = new Request ( HttpMethod . GET , targetUrl ) ; return pageForRequest ( client , request ) ;
public class DOInfoReader { /** * 获得所有有 @ RelatedColumn注解的列 , 包括继承的父类中的 , 顺序父类先 * @ param clazz * @ return 不会返回null */ public static List < Field > getRelatedColumns ( Class < ? > clazz ) { } }
if ( clazz == null ) { return new ArrayList < Field > ( ) ; } List < Class < ? > > classLink = new ArrayList < Class < ? > > ( ) ; Class < ? > curClass = clazz ; while ( curClass != null ) { classLink . add ( curClass ) ; curClass = curClass . getSuperclass ( ) ; } // 父类优先 List < Field > result = new ArrayList < Field ...
public class MapModel { /** * Return the selected feature if there is 1 selected feature . * @ return the selected feature or null if none or multiple features are selected */ public String getSelectedFeature ( ) { } }
if ( getNrSelectedFeatures ( ) == 1 ) { for ( VectorLayer layer : getVectorLayers ( ) ) { if ( layer . getSelectedFeatures ( ) . size ( ) > 0 ) { return layer . getSelectedFeatures ( ) . iterator ( ) . next ( ) ; } } } return null ;
public class CursorList { /** * Helper for keeping { @ link # mPosition } in bounds . * @ return false if mPosition was modified , true otherwise */ private boolean clampPosition ( ) { } }
if ( mPosition < 0 ) { mPosition = - 1 ; return false ; } else if ( mPosition > mList . size ( ) ) { // TODO should this be > = instead of > mPosition = mList . size ( ) ; return false ; } return true ;
public class BeanUtils { /** * 构建指定字段的说明 * @ param field 字段 * @ param clazz 该字段所属的class * @ return 该字段的说明 , 构建异常时返回null */ public static CustomPropertyDescriptor buildDescriptor ( Field field , Class < ? > clazz ) { } }
FieldCache fieldCache = new FieldCache ( field , clazz ) ; // 首先检查缓存 if ( FIELD_DESC_CACHE . containsKey ( fieldCache ) ) { return FIELD_DESC_CACHE . get ( fieldCache ) ; } String name = field . getName ( ) ; CustomPropertyDescriptor customPropertyDescriptor = null ; try { if ( isFinal ( field ) ) { log . debug ( "字段{}...
public class BoxFactory { /** * Checks the child boxes of the specified root box wheter they require creating an anonymous * parent box . * @ param root the box whose child boxes are checked * @ param type the required display type of the child boxes . The remaining child boxes are skipped . * @ param reqtype1 ...
if ( root . getDisplay ( ) != reqtype1 && root . getDisplay ( ) != reqtype2 && root . getDisplay ( ) != reqtype3 ) { Vector < Box > nest = new Vector < Box > ( ) ; ElementBox adiv = null ; for ( int i = 0 ; i < root . getSubBoxNumber ( ) ; i ++ ) { Box sub = root . getSubBox ( i ) ; if ( sub instanceof BlockBox && ( ( ...
public class CPOptionWrapper { /** * Returns the localized description of this cp option in the language , optionally using the default language if no localization exists for the requested language . * @ param languageId the ID of the language * @ param useDefault whether to use the default language if no localizat...
return _cpOption . getDescription ( languageId , useDefault ) ;
public class RecoverableUnitImpl { /** * Writes to the underlying recovery log information from the recoverable unit * sections . The amount of information written depends on the input argument * ' rewriteRequired ' . If this flag is false then only information that has not * not previously been written will be p...
if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "writeSections" , new java . lang . Object [ ] { this , new Boolean ( rewriteRequired ) } ) ; // If the parent recovery log instance has experienced a serious internal error then prevent // this operation from executing . if ( _recLog . failed ( ) ) { if ( tc . isEntryEn...
public class ExceptionUtils { /** * Helper method that will check if argument is an { @ link IOException } , * and if so , ( re ) throw it ; otherwise just return . * @ param t the Throwable to possibly propagate * @ return the Throwable * @ throws IOException rethrow the IOException */ public static Throwable ...
if ( t instanceof IOException ) { throw ( IOException ) t ; } return t ;
public class InternalXbaseParser { /** * InternalXbase . g : 692:1 : ruleXLiteral : ( ( rule _ _ XLiteral _ _ Alternatives ) ) ; */ public final void ruleXLiteral ( ) throws RecognitionException { } }
int stackSize = keepStackSize ( ) ; try { // InternalXbase . g : 696:2 : ( ( ( rule _ _ XLiteral _ _ Alternatives ) ) ) // InternalXbase . g : 697:2 : ( ( rule _ _ XLiteral _ _ Alternatives ) ) { // InternalXbase . g : 697:2 : ( ( rule _ _ XLiteral _ _ Alternatives ) ) // InternalXbase . g : 698:3 : ( rule _ _ XLiteral...
public class Assert { /** * Asserts that an object is < code > null < / code > */ public static void assertNull ( Object object , String format , Object ... args ) { } }
if ( imp != null && object != null ) { imp . assertFailed ( String . format ( format , args ) ) ; }
public class UIComponentBase { /** * < p class = " changed _ added _ 2_0 " > For each of the attached objects on * this instance that implement { @ link PartialStateHolder } , call * { @ link PartialStateHolder # markInitialState } on the attached object . < / p > * @ since 2.0 */ @ Override public void markIniti...
super . markInitialState ( ) ; if ( listeners != null ) { listeners . markInitialState ( ) ; } if ( listenersByEventClass != null ) { for ( List < SystemEventListener > listener : listenersByEventClass . values ( ) ) { if ( listener instanceof PartialStateHolder ) { ( ( PartialStateHolder ) listener ) . markInitialStat...
public class AbstractFeatureAggregator { /** * Returns the index of the centroid which is closer to the given descriptor . * @ param descriptor * @ return */ protected int computeNearestCentroid ( double [ ] descriptor ) { } }
int centroidIndex = - 1 ; double minDistance = Double . MAX_VALUE ; for ( int i = 0 ; i < numCentroids ; i ++ ) { double distance = 0 ; for ( int j = 0 ; j < descriptorLength ; j ++ ) { distance += ( codebook [ i ] [ j ] - descriptor [ j ] ) * ( codebook [ i ] [ j ] - descriptor [ j ] ) ; // when distance becomes great...
public class MethodParameter { /** * Return the generic type of the method / constructor parameter . * @ return the parameter type ( never { @ code null } ) */ public Type getGenericParameterType ( ) { } }
if ( this . genericParameterType == null ) { if ( this . parameterIndex < 0 ) { this . genericParameterType = ( this . method != null ? this . method . getGenericReturnType ( ) : null ) ; } else { this . genericParameterType = ( this . method != null ? this . method . getGenericParameterTypes ( ) [ this . parameterInde...
public class MessageProcessor { /** * setConfig is implemented from the interface JsEngineComponent and is used * to set properties on the MP * @ param config * the JsEObject config of the messaging engine * @ see com . ibm . ws . sib . admin . JsEngineComponent . setConfig */ @ Override public void setConfig (...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "setConfig" , new Object [ ] { meConfig } ) ; _highMessageThreshold = ( ( JsMessagingEngine ) meConfig ) . getMEThreshold ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "...
public class MappingUtils { /** * カラム名 ( 小文字 ) をキーとしたMapにカラムマッピング情報を取得 * @ param entityType エンティティ型 * @ param kind SQL種別 * @ return カラムマッピング情報 */ public static Map < String , MappingColumn > getMappingColumnMap ( final Class < ? > entityType , final SqlKind kind ) { } }
return Arrays . stream ( MappingUtils . getMappingColumns ( entityType , kind ) ) . collect ( Collectors . toMap ( MappingColumn :: getCamelName , c -> c ) ) ;
public class Matrix3x2f { /** * Set the values within this matrix to the supplied float values . The result looks like this : * m00 , m10 , m20 < br > * m01 , m11 , m21 < br > * @ param m00 * the new value of m00 * @ param m01 * the new value of m01 * @ param m10 * the new value of m10 * @ param m11 ...
this . m00 = m00 ; this . m01 = m01 ; this . m10 = m10 ; this . m11 = m11 ; this . m20 = m20 ; this . m21 = m21 ; return this ;
public class UpdateIntegrationResult { /** * A key - value map specifying request parameters that are passed from the method request to the backend . The key is * an integration request parameter name and the associated value is a method request parameter value or static * value that must be enclosed within single ...
setRequestParameters ( requestParameters ) ; return this ;
public class AbstractAggregatorImpl { /** * Sets response status and headers for an error response based on the information in the * specified exception . If development mode is enabled , then returns a 200 status with a * console . error ( ) message specifying the exception message * @ param req * the request ...
final String sourceMethod = "exceptionResponse" ; // $ NON - NLS - 1 $ resp . addHeader ( "Cache-control" , "no-store" ) ; // $ NON - NLS - 1 $ / / $ NON - NLS - 2 $ Level logLevel = ( t instanceof BadRequestException || t instanceof NotFoundException ) ? Level . WARNING : Level . SEVERE ; logException ( req , logLevel...
public class TarArchive { /** * Extract an entry from the archive . This method assumes that the tarIn stream has been properly set with a call to * getNextEntry ( ) . * @ param destDir * The destination directory into which to extract . * @ param entry * The TarEntry returned by tarIn . getNextEntry ( ) . */...
if ( this . verbose ) { if ( this . progressDisplay != null ) { this . progressDisplay . showTarProgressMessage ( entry . getName ( ) ) ; } } String name = entry . getName ( ) ; name = name . replace ( '/' , File . separatorChar ) ; File destFile = new File ( destDir , name ) ; if ( entry . isDirectory ( ) ) { if ( ! d...