signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class TranslatorTypes { /** * Creates a DPT translator for the given datapoint type main / sub number . * @ param mainNumber datapoint type main number , 0 & lt ; mainNumber * @ param subNumber datapoint type sub number selecting a particular kind of value translation ; use 0 to request any * type ID of th...
final MainType type = map . get ( mainNumber ) ; if ( type == null ) throw new KNXException ( "no DPT translator available for main number " + mainNumber ) ; final boolean withSub = subNumber != 0 ; final String id = withSub ? String . format ( "%d.%03d" , mainNumber , subNumber ) : type . getSubTypes ( ) . keySet ( ) ...
public class CompletionKey { /** * Sets the address and length of a buffer with a specified index . * @ param address of the buffer * @ param length of the buffer in bytes * @ param index of the buffer to set , where 0 is the first buffer * @ throws IllegalArgumentException if the index value is < 0 or > = buff...
if ( ( index < 0 ) || ( index >= this . bufferCount ) ) { throw new IllegalArgumentException ( ) ; } this . stagingByteBuffer . putLong ( ( FIRST_BUFFER_INDEX + ( 2 * index ) ) * 8 , address ) ; this . stagingByteBuffer . putLong ( ( FIRST_BUFFER_INDEX + ( 2 * index ) + 1 ) * 8 , length ) ;
public class PubSubOutputHandler { /** * / * ( non - Javadoc ) * @ see com . ibm . ws . sib . processor . impl . interfaces . MessageEventListener # messageEventOccurred ( int , com . ibm . ws . sib . processor . impl . interfaces . SIMPMessage , com . ibm . ws . sib . msgstore . Transaction ) */ public void messageE...
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "messageEventOccurred" , new Object [ ] { new Integer ( event ) , msg , tran } ) ; InvalidOperationException e = new InvalidOperationException ( nls . getFormattedMessage ( "INTERNAL_MESSAGING_ERROR_CWSIP0001" , new Object [...
public class DecompositionFactory_DDRM { /** * Returns an { @ link EigenDecomposition } that has been optimized for the specified matrix size . * If the input matrix is symmetric within tolerance then the symmetric algorithm will be used , otherwise * a general purpose eigenvalue decomposition is used . * @ param...
return new SwitchingEigenDecomposition_DDRM ( matrixSize , needVectors , UtilEjml . TEST_F64 ) ;
public class ExceptionUtils { /** * formatela la excepcion . * @ param exception excepcion * @ param buffer bufer * @ return StringBuilder */ public static StringBuilder formatException ( Throwable exception , StringBuilder buffer ) { } }
// ByteArrayOutputStream escribe = new ByteArrayOutputStream ( ) ; // PrintStream print = new PrintStream ( escribe ) ; // exception . printStackTrace ( print ) ; // String prpr = escribe . toString ( ) ; StringBuilder ret ; if ( exception == null ) { ret = buffer ; } else { buffer . append ( exception . getClass ( ) ....
public class AbstractElementTransformer { /** * class OR is defined on a supertype or interface of an enclosing class */ protected ICompilableTypeInternal isMemberOnEnclosingType ( IReducedSymbol symbol ) { } }
if ( ! _cc ( ) . isNonStaticInnerClass ( ) ) { return null ; } // If the symbol is on this class , or any ancestors , it ' s not enclosed // noinspection SuspiciousMethodCalls IType symbolClass = maybeUnwrapProxy ( symbol . getGosuClass ( ) ) ; if ( getGosuClass ( ) . getAllTypesInHierarchy ( ) . contains ( symbolClass...
public class Planner { /** * Makes plans starting from the AAM and a String containing the TOSCA of the * offerings available to generate the plans * @ param aam the String representing the AAM * @ param uniqueOfferingsTosca the String containing the Tosca representation of the available offerings * @ return th...
log . info ( "Planning for aam: \n" + aam ) ; // Get offerings log . info ( "Getting Offeing Step: Start" ) ; Map < String , Pair < NodeTemplate , String > > offerings = parseOfferings ( uniqueOfferingsTosca ) ; // getOfferingsFromDiscoverer ( ) ; log . info ( "Getting Offeing Step: Complete" ) ; log . info ( "\nNot de...
public class JTune { /** * Triggers the re computation of all staff lines elements in order to * get the alignment justified . */ private void justify ( ) { } }
if ( m_staffLines . size ( ) > 1 ) { double maxWidth = ( ( JStaffLine ) m_staffLines . elementAt ( 0 ) ) . getWidth ( ) ; for ( int i = 1 ; i < m_staffLines . size ( ) ; i ++ ) { JStaffLine currentStaffLine = ( JStaffLine ) m_staffLines . elementAt ( i ) ; maxWidth = Math . max ( maxWidth , currentStaffLine . getWidth ...
public class FaceletViewDeclarationLanguageStrategy { /** * { @ inheritDoc } */ public boolean handles ( String viewId ) { } }
if ( viewId == null ) { return false ; } // Check extension first as it ' s faster than mappings if ( viewId . endsWith ( _extension ) ) { // If the extension matches , it ' s a Facelet viewId . return true ; } // Otherwise , try to match the view identifier with the facelet mappings return _acceptPatterns != null && _...
public class AptField { /** * Returns the access modifier associated with the field */ public String getAccessModifier ( ) { } }
if ( _fieldDecl == null ) return "" ; Collection < Modifier > modifiers = _fieldDecl . getModifiers ( ) ; if ( modifiers . contains ( Modifier . PRIVATE ) ) return "private" ; if ( modifiers . contains ( Modifier . PROTECTED ) ) return "protected" ; if ( modifiers . contains ( Modifier . PUBLIC ) ) return "public" ; re...
public class InfluxDBResultMapper { /** * Process a { @ link QueryResult } object returned by the InfluxDB client inspecting the internal * data structure and creating the respective object instances based on the Class passed as * parameter . * @ param queryResult the InfluxDB result object * @ param clazz the ...
Objects . requireNonNull ( measurementName , "measurementName" ) ; Objects . requireNonNull ( queryResult , "queryResult" ) ; Objects . requireNonNull ( clazz , "clazz" ) ; throwExceptionIfResultWithError ( queryResult ) ; cacheMeasurementClass ( clazz ) ; List < T > result = new LinkedList < T > ( ) ; queryResult . ge...
public class SecretsManagerSecretResourceData { /** * Optional . The staging labels whose values you want to make available on the core , in addition to ' ' AWSCURRENT ' ' . * @ param additionalStagingLabelsToDownload * Optional . The staging labels whose values you want to make available on the core , in addition ...
if ( additionalStagingLabelsToDownload == null ) { this . additionalStagingLabelsToDownload = null ; return ; } this . additionalStagingLabelsToDownload = new java . util . ArrayList < String > ( additionalStagingLabelsToDownload ) ;
public class MetaMediaManager { /** * Renders the sprites and animations that intersect the supplied dirty region in the specified * layer . */ public void paintMedia ( Graphics2D gfx , int layer , Rectangle dirty ) { } }
if ( layer == FRONT ) { _spritemgr . paint ( gfx , layer , dirty ) ; _animmgr . paint ( gfx , layer , dirty ) ; } else { _animmgr . paint ( gfx , layer , dirty ) ; _spritemgr . paint ( gfx , layer , dirty ) ; }
public class CheckArg { /** * Check that the collection is not empty * @ param argument Collection * @ param name The name of the argument * @ throws IllegalArgumentException If collection is null or empty */ public static void isNotEmpty ( Collection < ? > argument , String name ) { } }
isNotNull ( argument , name ) ; if ( argument . isEmpty ( ) ) { throw new IllegalArgumentException ( CommonI18n . argumentMayNotBeEmpty . text ( name ) ) ; }
public class SliceUtf8 { /** * Gets the substring starting at { @ code codePointStart } and extending for * { @ code codePointLength } code points . * Note : This method does not explicitly check for valid UTF - 8 , and may * return incorrect results or throw an exception for invalid UTF - 8. */ public static Sli...
checkArgument ( codePointStart >= 0 , "codePointStart is negative" ) ; checkArgument ( codePointLength >= 0 , "codePointLength is negative" ) ; int indexStart = offsetOfCodePoint ( utf8 , codePointStart ) ; if ( indexStart < 0 ) { throw new IllegalArgumentException ( "UTF-8 does not contain " + codePointStart + " code ...
public class StaticSemanticSpace { /** * Loads the { @ link SemanticSpace } from the binary formatted file , adding * its words to { @ link # termToIndex } and returning the { @ code Matrix } * containing the space ' s vectors . * @ param sspaceFile a file in { @ link SSpaceFormat # BINARY binary } format */ priv...
DataInputStream dis = new DataInputStream ( fileStream ) ; int rows = dis . readInt ( ) ; int cols = dis . readInt ( ) ; // create a dense matrix Matrix m = new ArrayMatrix ( rows , cols ) ; double [ ] d = new double [ cols ] ; for ( int row = 0 ; row < rows ; ++ row ) { String word = dis . readUTF ( ) ; termToIndex . ...
public class ZeroLeggedOAuthInterceptor { /** * Get the OAuthConsumer . Will initialize it lazily . * @ return the OAuthConsumer object . */ private synchronized RealmOAuthConsumer getConsumer ( ) { } }
// could just inject these , but I kinda prefer pushing this out // to the properties file . . . if ( consumer == null ) { OAuthServiceProvider serviceProvider = new OAuthServiceProvider ( "" , "" , "" ) ; String realm = propertyResolver . getProperty ( "org.jasig.rest.interceptor.oauth." + id + ".realm" ) ; String con...
public class Mutations { /** * Moves positions of mutations by specified offset * @ param offset offset * @ return relocated positions */ public Mutations < S > move ( int offset ) { } }
int [ ] newMutations = new int [ mutations . length ] ; for ( int i = 0 ; i < mutations . length ; ++ i ) newMutations [ i ] = Mutation . move ( mutations [ i ] , offset ) ; return new Mutations < S > ( alphabet , newMutations , true ) ;
public class ObservableListenerHelper { /** * { @ inheritDoc } */ @ Override public void removeListener ( InvalidationListener listener ) { } }
Objects . requireNonNull ( listener ) ; if ( 0 < invalidationSize ) { if ( size == 1 ) { if ( invalidationSize == 1 && this . listener . equals ( listener ) ) { sentinel = false ; this . listener = null ; invalidationSize -- ; size -- ; } } else if ( size == 2 ) { Object [ ] l = ( Object [ ] ) this . listener ; if ( li...
public class ChangeSetAdapter { /** * Handle the addition of a node . * @ param workspaceName the workspace in which the node information should be available ; may not be null * @ param key the unique key for the node ; may not be null * @ param path the path of the node ; may not be null * @ param primaryType ...
public class DMNEvaluatorCompiler { /** * Utility method to have a error message is reported if a DMN Variable is missing typeRef . * @ param model used for reporting errors * @ param variable the variable to extract typeRef * @ return the ` variable . typeRef ` or null in case of errors . Errors are reported wit...
if ( variable . getTypeRef ( ) != null ) { return variable . getTypeRef ( ) ; } else { MsgUtil . reportMessage ( logger , DMNMessage . Severity . ERROR , variable , model , null , null , Msg . MISSING_TYPEREF_FOR_VARIABLE , variable . getName ( ) , variable . getParentDRDElement ( ) . getIdentifierString ( ) ) ; return...
public class ServerMappingController { /** * Updates the src url in the server redirects * @ param model * @ param id * @ param enabled * @ return * @ throws Exception */ @ ExceptionHandler ( Exception . class ) @ RequestMapping ( value = "api/edit/server/{id}" , method = RequestMethod . POST ) public @ Respo...
logger . info ( "updating Server" ) ; if ( enabled != null ) { if ( enabled ) { Client . enableHost ( ServerRedirectService . getInstance ( ) . getRedirect ( id ) . getSrcUrl ( ) ) ; } else { Client . disableHost ( ServerRedirectService . getInstance ( ) . getRedirect ( id ) . getSrcUrl ( ) ) ; } } return ServerRedirec...
public class HttpStatus { /** * Returns the { @ link HttpStatus } having the given status code . * @ param statusCode * An HTTP status code integer . * @ return The { @ link HttpStatus } having the given status code . */ public static HttpStatus fromStatusCode ( final int statusCode ) { } }
if ( statusCode < 100 || statusCode > 999 ) { throw new IllegalArgumentException ( "Illegal status code " + statusCode ) ; } HttpStatus result = STATUS_CODES . get ( statusCode ) ; if ( result == null ) { return new HttpStatus ( statusCode , "Unknown" ) ; } return result ;
public class FlinkKafkaConsumerBase { /** * Specifies the consumer to start reading from the earliest offset for all partitions . * This lets the consumer ignore any committed group offsets in Zookeeper / Kafka brokers . * < p > This method does not affect where partitions are read from when the consumer is restore...
this . startupMode = StartupMode . EARLIEST ; this . startupOffsetsTimestamp = null ; this . specificStartupOffsets = null ; return this ;
public class NlsFormatterChoice { /** * This method parses the { @ link Condition # comparatorArgument comparator argument } . * @ param scanner is the { @ link CharSequenceScanner } . * @ return the parsed comparator argument . */ private Object parseComparatorArgument ( CharSequenceScanner scanner ) { } }
int index = scanner . getCurrentIndex ( ) ; Object comparatorArgument ; char c = scanner . forcePeek ( ) ; if ( ( c == '"' ) || ( c == '\'' ) ) { scanner . next ( ) ; comparatorArgument = scanner . readUntil ( c , false , c ) ; } else { String argument = scanner . readWhile ( FILTER_COMPARATOR_ARGUMENT ) ; if ( argumen...
public class SecurityCenterClient { /** * Creates a finding . The corresponding source must exist for finding creation to succeed . * < p > Sample code : * < pre > < code > * try ( SecurityCenterClient securityCenterClient = SecurityCenterClient . create ( ) ) { * SourceName parent = SourceName . of ( " [ ORGAN...
CreateFindingRequest request = CreateFindingRequest . newBuilder ( ) . setParent ( parent == null ? null : parent . toString ( ) ) . setFindingId ( findingId ) . setFinding ( finding ) . build ( ) ; return createFinding ( request ) ;
public class StreamFunctionExecutor { /** * Execute the function for the given input and output . * @ param input The input * @ param output The output * @ throws IOException If an I / O exception occurs */ public void execute ( InputStream input , OutputStream output ) throws IOException { } }
execute ( input , output , null ) ;
public class WMultiFileWidgetRenderer { /** * Paints the given WMultiFileWidget . * @ param component the WMultiFileWidget to paint . * @ param renderContext the RenderContext to paint to . */ @ Override public void doRender ( final WComponent component , final WebXmlRenderContext renderContext ) { } }
WMultiFileWidget widget = ( WMultiFileWidget ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; // Check if rendering a file upload response String uploadId = widget . getFileUploadRequestId ( ) ; if ( uploadId != null ) { handleFileUploadRequest ( widget , xml , uploadId ) ; return ; } boolean readOn...
public class DrlxParseUtil { /** * Mutates expression * such that , if it contains a < pre > nameRef < / pre > , it is replaced and forcibly casted with < pre > ( type ) nameRef < / pre > . * @ param expression a mutated expression */ public static void forceCastForName ( String nameRef , Type type , Expression exp...
List < NameExpr > allNameExprForName = expression . findAll ( NameExpr . class , n -> n . getNameAsString ( ) . equals ( nameRef ) ) ; for ( NameExpr n : allNameExprForName ) { n . getParentNode ( ) . get ( ) . replace ( n , new EnclosedExpr ( new CastExpr ( type , n ) ) ) ; }
public class GVRWorld { /** * Add a { @ link GVRConstraint } to this physics world . * @ param gvrConstraint The { @ link GVRConstraint } to add . */ public void addConstraint ( final GVRConstraint gvrConstraint ) { } }
mPhysicsContext . runOnPhysicsThread ( new Runnable ( ) { @ Override public void run ( ) { if ( contains ( gvrConstraint ) ) { return ; } if ( ! contains ( gvrConstraint . mBodyA ) || ( gvrConstraint . mBodyB != null && ! contains ( gvrConstraint . mBodyB ) ) ) { throw new UnsupportedOperationException ( "Rigid body no...
public class ModeShapeRestClient { /** * Returns all the node types that are available in the repository from { @ code repoUrl } * @ return a { @ link NodeTypes } instance ; never { @ code null } */ public NodeTypes getNodeTypes ( ) { } }
String url = jsonRestClient . appendToURL ( ITEMS_METHOD , NODE_TYPES_SEGMENT ) ; JSONRestClient . Response response = jsonRestClient . doGet ( url ) ; if ( ! response . isOK ( ) ) { throw new RuntimeException ( JdbcI18n . invalidServerResponse . text ( url , response . asString ( ) ) ) ; } return new NodeTypes ( respo...
public class ConfigException { /** * public static ConfigException createLine ( String loc , String msg ) * if ( " " . equals ( loc ) ) { * return new ConfigException ( msg ) ; * String fileName = getFileName ( loc ) ; * int line = getLine ( loc ) ; * String source = ConfigUtilTemp . getSourceLines ( fileName...
if ( e instanceof ConfigException ) return ( ConfigException ) e ; else return new ConfigException ( e ) ;
public class TrackerMeanShiftComaniciu2003 { /** * Computes the difference between two histograms using SAD . * This is a change from the paper , which uses Bhattacharyya . Bhattacharyya could give poor performance * even with perfect data since two errors can cancel each other out . For example , part of the histo...
double sumP = 0 ; for ( int i = 0 ; i < histogramA . length ; i ++ ) { float q = histogramA [ i ] ; float p = histogramB [ i ] ; sumP += Math . abs ( q - p ) ; } return sumP ;
public class StandardAtomGenerator { /** * Utility to determine if the specified mass is the major isotope for the given atomic number . * @ param number atomic number * @ param mass atomic mass * @ return the mass is the major mass for the atomic number */ private boolean isMajorIsotope ( int number , int mass )...
try { IIsotope isotope = Isotopes . getInstance ( ) . getMajorIsotope ( number ) ; return isotope != null && isotope . getMassNumber ( ) . equals ( mass ) ; } catch ( IOException e ) { return false ; }
public class CreateHapgRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CreateHapgRequest createHapgRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( createHapgRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createHapgRequest . getLabel ( ) , LABEL_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage (...
public class First { /** * Initializes the first map for data input . */ private void initFirstMapForGrammarProductions ( ) { } }
for ( Production production : grammar . getProductions ( ) . getList ( ) ) { if ( ! firstGrammar . containsKey ( production . getName ( ) ) ) { firstGrammar . put ( production . getName ( ) , new LinkedHashSet < Terminal > ( ) ) ; } }
public class JSONReader { /** * Method for reading a JSON Array from input and building a < code > Object [ ] < / code > * out of it . Note that if input does NOT contain a * JSON Array , { @ link JSONObjectException } will be thrown . */ public Object [ ] readArray ( ) throws IOException { } }
if ( _parser . isExpectedStartArrayToken ( ) ) { return AnyReader . std . readArrayFromArray ( this , _parser , _collectionBuilder ) ; } if ( _parser . hasToken ( JsonToken . VALUE_NULL ) ) { return null ; } throw JSONObjectException . from ( _parser , "Can not read an array: expect to see START_ARRAY ('['), instead go...
public class PnPLepetitEPnP { /** * Given the control points it computes the 4 weights for each camera point . This is done by * solving the following linear equation : C * & alpha ; = X . where C is the control point matrix , * & alpha ; is the 4 by n matrix containing the solution , and X is the camera point matr...
alphas . reshape ( worldPts . size ( ) , numControl , false ) ; v_temp . reshape ( 3 , 1 ) ; A_temp . reshape ( 3 , numControl - 1 ) ; for ( int i = 0 ; i < numControl - 1 ; i ++ ) { Point3D_F64 c = controlWorldPts . get ( i ) ; A_temp . set ( 0 , i , c . x - meanWorldPts . x ) ; A_temp . set ( 1 , i , c . y - meanWorl...
public class PersistenceUnitScanner { /** * Finds all specified ORM files , by name , constrained in location by the persistence unit root and jar files . * @ param ormFileName The name of the ORM file to search for * @ return A List of URLs of resources found by the ClassLoader . Will be an empty List if none are ...
final boolean isMetaInfoOrmXML = "META-INF/orm.xml" . equals ( ormFileName ) ; final ArrayList < URL > retArr = new ArrayList < URL > ( ) ; Enumeration < URL > ormEnum = pui . getClassLoader ( ) . getResources ( ormFileName ) ; while ( ormEnum . hasMoreElements ( ) ) { final URL url = ormEnum . nextElement ( ) ; final ...
public class ServerParams { /** * Get the value of the given parameter name belonging to the given module name . If * no such module / parameter name is known , null is returned . Otherwise , the parsed * parameter is returned as an Object . This may be a String , Map , or List depending * on the parameter ' s st...
Map < String , Object > moduleParams = getModuleParams ( moduleName ) ; if ( moduleParams == null ) { return null ; } return moduleParams . get ( paramName ) ;
public class AbstractClassicTag { /** * Returns the closest parent form tag , or null if there is none . */ protected Form getNearestForm ( ) { } }
Tag parentTag = getParent ( ) ; while ( parentTag != null ) { if ( parentTag instanceof Form ) return ( Form ) parentTag ; parentTag = parentTag . getParent ( ) ; } return null ;
public class GenericUrl { /** * Constructs the URL based on { @ link URL # URL ( URL , String ) } with this URL representation from * { @ link # toURL ( ) } and a relative url . * < p > Any { @ link MalformedURLException } is wrapped in an { @ link IllegalArgumentException } . * @ return new URL instance * @ si...
try { URL url = toURL ( ) ; return new URL ( url , relativeUrl ) ; } catch ( MalformedURLException e ) { throw new IllegalArgumentException ( e ) ; }
public class EditableCellFocusAction { /** * Provide the custom behaviour of the Action */ @ Override public void actionPerformed ( ActionEvent e ) { } }
invokeOriginalAction ( e ) ; int row = table . getSelectedRow ( ) ; int column = table . getSelectedColumn ( ) ; if ( table . isCellEditable ( row , column ) ) { table . editCellAt ( row , column , e ) ; }
public class SocketJoiner { /** * Bind to the internal interface if one was specified , * otherwise bind on all interfaces . The leader won ' t invoke this . */ private void doBind ( ) throws Exception { } }
LOG . debug ( "Creating listener socket" ) ; try { m_selector = Selector . open ( ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } ServerSocketChannel listenerSocket = ServerSocketChannel . open ( ) ; InetSocketAddress inetsockaddr ; if ( ( m_internalInterface == null ) || ( m_internalInterface . le...
public class S3StorageProvider { /** * { @ inheritDoc } */ protected Map < String , String > getAllSpaceProperties ( String spaceId ) { } }
log . debug ( "getAllSpaceProperties(" + spaceId + ")" ) ; // Will throw if bucket does not exist String bucketName = getBucketName ( spaceId ) ; // Retrieve space properties from bucket tags Map < String , String > spaceProperties = new HashMap < > ( ) ; BucketTaggingConfiguration tagConfig = s3Client . getBucketTaggi...
public class Bidi { /** * Return the index of the character at the start of the nth logical run in * this line , as an offset from the start of the line . * @ param run the index of the run , between 0 and < code > countRuns ( ) < / code > * @ return the start of the run * @ throws IllegalStateException if this...
verifyValidParaOrLine ( ) ; BidiLine . getRuns ( this ) ; verifyRange ( run , 0 , runCount ) ; getLogicalToVisualRunsMap ( ) ; return runs [ logicalToVisualRunsMap [ run ] ] . start ;
public class MtasSolrSearchComponent { /** * ( non - Javadoc ) * @ see org . apache . solr . handler . component . SearchComponent # handleResponses ( org . * apache . solr . handler . component . ResponseBuilder , * org . apache . solr . handler . component . ShardRequest ) */ @ Override public void handleRespon...
// System . out // . println ( System . nanoTime ( ) + " - " + Thread . currentThread ( ) . getId ( ) // + " - " + rb . req . getParams ( ) . getBool ( ShardParams . IS _ SHARD , false ) // + " HANDLERESPONSES " + rb . stage + " " + rb . req . getParamString ( ) ) ; MtasSolrStatus solrStatus = Objects . requireNonNull ...
public class ConvolveImageBox { /** * Performs a vertical 1D convolution of a box kernel across the image * @ param input The original image . Not modified . * @ param output Where the resulting image is written to . Modified . * @ param radius Kernel size . */ public static void vertical ( GrayS16 input , GrayI1...
InputSanityCheck . checkSameShape ( input , output ) ; Kernel1D_S32 kernel = FactoryKernel . table1D_I32 ( radius ) ; ConvolveJustBorder_General_SB . vertical ( kernel , ImageBorderValue . wrap ( input , 0 ) , output ) ; if ( BoofConcurrency . USE_CONCURRENT ) { ImplConvolveBox_MT . vertical ( input , output , radius ,...
public class NumericUtil { /** * Compare object with a number , the object should be a number , * or it can be converted to a BigDecimal * @ param first might be number or string * @ param second must be number * @ return 0 if first is numerically equal to second ; * a negative int if first is numerically les...
if ( first instanceof Number && first instanceof Comparable && first . getClass ( ) . equals ( second . getClass ( ) ) ) { return ( ( Comparable < Number > ) first ) . compareTo ( second ) ; } Function < Object , BigDecimal > toBig = ( number ) -> { try { return new BigDecimal ( number . toString ( ) ) ;
public class Questionnaire { /** * syntactic sugar */ public Coding addConcept ( ) { } }
Coding t = new Coding ( ) ; if ( this . concept == null ) this . concept = new ArrayList < Coding > ( ) ; this . concept . add ( t ) ; return t ;
public class NavigationView { /** * Used to restore the bottomsheet state and re - center * button visibility . As well as the { @ link MapView } * position prior to rotation . * @ param savedInstanceState to extract state variables */ public void onRestoreInstanceState ( Bundle savedInstanceState ) { } }
String instanceKey = getContext ( ) . getString ( R . string . navigation_view_instance_state ) ; NavigationViewInstanceState navigationViewInstanceState = savedInstanceState . getParcelable ( instanceKey ) ; recenterBtn . setVisibility ( navigationViewInstanceState . getRecenterButtonVisibility ( ) ) ; wayNameView . s...
public class HighResolutionClock { /** * The number of microseconds since the 1 Jan 1970 UTC . * @ return the number of microseconds since the 1 Jan 1970 UTC . */ public static long epochMicros ( ) { } }
final Instant now = Instant . now ( ) ; final long seconds = now . getEpochSecond ( ) ; final long nanosFromSecond = now . getNano ( ) ; return ( seconds * 1_000_000 ) + ( nanosFromSecond / 1_000 ) ;
public class dnsaction { /** * Use this API to delete dnsaction resources of given names . */ public static base_responses delete ( nitro_service client , String actionname [ ] ) throws Exception { } }
base_responses result = null ; if ( actionname != null && actionname . length > 0 ) { dnsaction deleteresources [ ] = new dnsaction [ actionname . length ] ; for ( int i = 0 ; i < actionname . length ; i ++ ) { deleteresources [ i ] = new dnsaction ( ) ; deleteresources [ i ] . actionname = actionname [ i ] ; } result ...
public class TransportNegotiator { /** * Add an offered remote candidate . The transport candidate can be unusable : * we must check if we can use it . * @ param rc the remote candidate to add . */ private void addRemoteCandidates ( List < TransportCandidate > rc ) { } }
if ( rc != null ) { if ( rc . size ( ) > 0 ) { for ( TransportCandidate aRc : rc ) { addRemoteCandidate ( aRc ) ; } } }
public class DashboardService { /** * Returns the list of dashboards owned by the user . * @ return The list of dashboards owned by the user . * @ throws IOException If the server cannot be reached . * @ throws TokenExpiredException If the token sent along with the request has expired */ public List < Dashboard >...
String requestUrl = RESOURCE ; ArgusResponse response = getClient ( ) . executeHttpRequest ( ArgusHttpClient . RequestType . GET , requestUrl , null ) ; assertValidResponse ( response , requestUrl ) ; return fromJson ( response . getResult ( ) , new TypeReference < List < Dashboard > > ( ) { } ) ;
public class DropboxClient { /** * Returns metadata information about specified resource with * checking for its hash with specified max child entries count . * If nothing changes ( hash isn ' t changed ) then 304 will returns . * @ param path to file or directory * @ param fileLimit max child entries count *...
return getMetadata ( path , fileLimit , hash , true ) ;
public class NormOps_DDRM { /** * The condition p = 2 number of a matrix is used to measure the sensitivity of the linear * system < b > Ax = b < / b > . A value near one indicates that it is a well conditioned matrix . < br > * < br > * & kappa ; < sub > 2 < / sub > = | | A | | < sub > 2 < / sub > | | A < sup > ...
SingularValueDecomposition_F64 < DMatrixRMaj > svd = DecompositionFactory_DDRM . svd ( A . numRows , A . numCols , false , false , true ) ; svd . decompose ( A ) ; double [ ] singularValues = svd . getSingularValues ( ) ; int n = SingularOps_DDRM . rank ( svd , UtilEjml . TEST_F64 ) ; if ( n == 0 ) return 0 ; double sm...
public class PhotosUploadApi { /** * Upload a photo or video to Flickr . * < br > * This method requires authentication with ' write ' permission . * < br > * If the title parameter is null , the filename will be used as the title . * @ param photo ( Required ) the photo or video file to upload . * @ param ...
JinxUtils . validateParams ( photo ) ; byte [ ] photoData = new byte [ ( int ) photo . length ( ) ] ; FileInputStream in = null ; try { in = new FileInputStream ( photo ) ; in . read ( photoData ) ; if ( JinxUtils . isNullOrEmpty ( title ) ) { int index = photo . getName ( ) . indexOf ( '.' ) ; if ( index > 0 ) { title...
public class FileSystem { /** * Replies the dirname of the specified file . * @ param filename is the name to parse . * @ return the dirname of the specified file . * @ see # shortBasename ( File ) * @ see # largeBasename ( File ) * @ see # basename ( File ) * @ see # extension ( File ) */ @ Pure public sta...
if ( filename == null ) { return null ; } String parent = fromFileStandardToURLStandard ( filename . getParent ( ) ) ; try { if ( parent == null || "" . equals ( parent ) ) { // $ NON - NLS - 1 $ if ( filename . isAbsolute ( ) ) { return null ; } return new URL ( URISchemeType . FILE . name ( ) , "" , CURRENT_DIRECTORY...
public class URLPathEncoder { /** * Encode a URL path using percent - encoding . ' / ' is not encoded . * @ param path * The path to encode . * @ return The encoded path . */ private static String encodePath ( final String path ) { } }
// Accept ' : ' if it is part of a scheme prefix int validColonPrefixLen = 0 ; for ( final String scheme : SCHEME_PREFIXES ) { if ( path . startsWith ( scheme ) ) { validColonPrefixLen = scheme . length ( ) ; break ; } } final byte [ ] pathBytes = path . getBytes ( StandardCharsets . UTF_8 ) ; final StringBuilder encod...
public class AddressDivisionBase { /** * Gets the value for the lowest address in the range represented by this address division . * If the value fits in the specified array at the specified index , the same array is returned with the value copied at the specified index . * Otherwise , a new array is allocated and ...
byte cached [ ] = lowerBytes ; if ( cached == null ) { lowerBytes = cached = getBytesImpl ( true ) ; } return getBytes ( bytes , index , cached ) ;
public class SimpleDocumentDbRepository { /** * delete one document per entity * @ param entity */ @ Override public void delete ( T entity ) { } }
Assert . notNull ( entity , "entity to be deleted should not be null" ) ; final String partitionKeyValue = information . getPartitionKeyFieldValue ( entity ) ; operation . deleteById ( information . getCollectionName ( ) , information . getId ( entity ) , partitionKeyValue == null ? null : new PartitionKey ( partitionK...
public class TextAnalysis { /** * Split chars list . * @ param source the source * @ param threshold the threshold * @ return the list */ public List < String > splitChars ( final String source , double threshold ) { } }
List < String > output = new ArrayList < > ( ) ; int wordStart = 0 ; double aposterioriNatsPrev = 0 ; boolean isIncreasing = false ; double prevLink = 0 ; for ( int i = 1 ; i < source . length ( ) ; i ++ ) { String priorText = source . substring ( 0 , i ) ; TrieNode priorNode = getMaxentPrior ( priorText ) ; double apr...
public class BooleanField { /** * Convert this field ' s binary data to a string . * @ param tempBinary The physical data convert to a string ( must be the raw data class ) . * @ return A display string representing this binary data . */ public String binaryToString ( Object tempBinary ) { } }
String tempString ; boolean bFlag = false ; if ( tempBinary == null ) return Constants . BLANK ; // Special case - unknown value else bFlag = ( ( Boolean ) tempBinary ) . booleanValue ( ) ; if ( bFlag == true ) tempString = YES ; else tempString = NO ; return tempString ;
public class ManagementClientAsync { /** * Updates an existing rule . * @ param topicName - Name of the topic . * @ param subscriptionName - Name of the subscription . * @ param ruleDescription - A { @ link RuleDescription } object describing the attributes with which the rule will be updated . * @ return { @ l...
return putRuleAsync ( topicName , subscriptionName , ruleDescription , true ) ;
public class Configuration { /** * Gets information about why a property was set . Typically this is the * path to the resource objects ( file , URL , etc . ) the property came from , but * it can also indicate that it was set programmatically , or because of the * command line . * @ param name - The property n...
if ( properties == null ) { // If properties is null , it means a resource was newly added // but the props were cleared so as to load it upon future // requests . So lets force a load by asking a properties list . getProps ( ) ; } // Return a null right away if our properties still // haven ' t loaded or the resource ...
public class CPSpecificationOptionPersistenceImpl { /** * Returns the last cp specification option in the ordered set where CPOptionCategoryId = & # 63 ; . * @ param CPOptionCategoryId the cp option category ID * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) ...
CPSpecificationOption cpSpecificationOption = fetchByCPOptionCategoryId_Last ( CPOptionCategoryId , orderByComparator ) ; if ( cpSpecificationOption != null ) { return cpSpecificationOption ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "CPOptionCategoryId="...
public class dnsaaaarec { /** * Use this API to fetch filtered set of dnsaaaarec resources . * filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */ public static dnsaaaarec [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } }
dnsaaaarec obj = new dnsaaaarec ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; dnsaaaarec [ ] response = ( dnsaaaarec [ ] ) obj . getfiltered ( service , option ) ; return response ;
public class PowerMock { /** * Used to specify expectations on private methods . If possible use variant * with only method name . */ public static synchronized < T > IExpectationSetters < T > expectPrivate ( Object instance , Method method , Object ... arguments ) throws Exception { } }
return doExpectPrivate ( instance , method , arguments ) ;
public class ModuleItem { /** * Remove a child from it - synchronized */ public synchronized void remove ( ModuleItem item ) { } }
if ( item == null || children == null ) return ; // remove from all the parents which have links to it due to aggregate data PmiModule removeInstance = item . getInstance ( ) ; if ( ! ( removeInstance instanceof PmiModuleAggregate ) ) { // recursively remove aggregate data for parents ModuleItem myParent = this ; PmiMo...
public class JTables { /** * Scroll the given table so that the specified row is visible . * @ param table The table * @ param row The row */ public static void scrollToRow ( JTable table , int row ) { } }
Rectangle visibleRect = table . getVisibleRect ( ) ; Rectangle cellRect = table . getCellRect ( row , 0 , true ) ; Rectangle r = new Rectangle ( visibleRect . x , cellRect . y , visibleRect . width , cellRect . height ) ; table . scrollRectToVisible ( r ) ;
public class EventBus { /** * Bind an { @ link ActEventListener } to an event type extended from { @ link EventObject } . * If either ` eventType ` or the class of ` eventListener ` has ` @ Async ` annotation presented , * it will bind the listener into the async repo . When event get triggered the listener * wil...
boolean async = isAsync ( eventListener . getClass ( ) ) || isAsync ( eventType ) ; return _bind ( async ? asyncActEventListeners : actEventListeners , eventType , eventListener , 0 ) ;
public class LocaleSelectorImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setLocFlgs ( Integer newLocFlgs ) { } }
Integer oldLocFlgs = locFlgs ; locFlgs = newLocFlgs ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . LOCALE_SELECTOR__LOC_FLGS , oldLocFlgs , locFlgs ) ) ;
public class P2sVpnGatewaysInner { /** * Updates virtual wan p2s vpn gateway tags . * @ param resourceGroupName The resource group name of the P2SVpnGateway . * @ param gatewayName The name of the gateway . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the observable to...
return beginUpdateTagsWithServiceResponseAsync ( resourceGroupName , gatewayName ) . map ( new Func1 < ServiceResponse < P2SVpnGatewayInner > , P2SVpnGatewayInner > ( ) { @ Override public P2SVpnGatewayInner call ( ServiceResponse < P2SVpnGatewayInner > response ) { return response . body ( ) ; } } ) ;
public class CurvedArrow { /** * Draws an arrow head on the graphics object . The arrow geometry is based * on the point of its head as well as another point , which the arrow is * defined as facing away from . This arrow head has no body . * @ param g * the graphics object to draw upon * @ param head * the...
int endX , endY ; double angle = Math . atan2 ( ( double ) ( away . x - head . x ) , ( double ) ( away . y - head . y ) ) ; angle += ARROW_ANGLE ; endX = ( ( int ) ( Math . sin ( angle ) * ARROW_LENGTH ) ) + head . x ; endY = ( ( int ) ( Math . cos ( angle ) * ARROW_LENGTH ) ) + head . y ; g . drawLine ( head . x , hea...
public class DragableArea { /** * Make the rectangle visible , for debug purposes . */ public void makeVisible ( ) { } }
CSSClass cls = new CSSClass ( this , "unused" ) ; cls . setStatement ( SVGConstants . CSS_FILL_PROPERTY , SVGConstants . CSS_GREEN_VALUE ) ; cls . setStatement ( SVGConstants . CSS_FILL_OPACITY_PROPERTY , "0.2" ) ; cls . setStatement ( SVGConstants . CSS_CURSOR_PROPERTY , SVGConstants . CSS_POINTER_VALUE ) ; SVGUtil . ...
public class EnumHelper { /** * Get the enum value with the passed string ID case insensitive * @ param < ENUMTYPE > * The enum type * @ param aClass * The enum class * @ param sID * The ID to search * @ return < code > null < / code > if no enum item with the given ID is present . */ @ Nullable public st...
return getFromIDCaseInsensitiveOrDefault ( aClass , sID , null ) ;
public class HttpISCWriteErrorCallback { /** * Called by the devide side channel when the write had an error . * @ param vc * @ param t */ @ Override public void error ( VirtualConnection vc , Throwable t ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "error() called: vc=" + vc + " t=" + t ) ; } // The VC might be null if the channel was destroyed before the callback completes if ( vc != null ) { HttpInboundServiceContextImpl mySC = ( HttpInboundServiceContextImpl ) vc . g...
public class EJBWrapper { /** * Adds the default definition for the Object . equals method . * @ param cw ASM ClassWriter to add the method to . * @ param implClassName name of the wrapper class being generated . */ private static void addDefaultEqualsMethod ( ClassWriter cw , String implClassName ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , INDENT + "adding method : equals (Ljava/lang/Object;)Z" ) ; // public boolean equals ( Object other ) final String desc = "(Ljava/lang/Object;)Z" ; MethodVisitor mv = cw . visitMethod ( ACC_PUBLIC , "equals" , desc , null , nul...
public class JThreeStateCheckBox { /** * Creates new JThreeStateCheckBox . * @ param text The checkbox description . */ public void init ( String text ) { } }
m_iCurrentState = OFF ; if ( m_iconOff == null ) { m_iconOff = BaseApplet . getSharedInstance ( ) . loadImageIcon ( CHECKBOX_OFF ) ; m_iconOn = BaseApplet . getSharedInstance ( ) . loadImageIcon ( CHECKBOX_ON ) ; m_iconNull = BaseApplet . getSharedInstance ( ) . loadImageIcon ( CHECKBOX_NULL ) ; } this . setIcon ( m_ic...
public class StreamSourceInputStream { /** * Returns an input stream , freeing the results */ @ Override public InputStream getInputStream ( ) throws IOException { } }
InputStream is = _is ; _is = null ; return is ;
public class IncrementalSemanticAnalysis { /** * Update the semantics using the weighed combination of the semantics of * the co - occurring word and the provided index vector . Note that the index * vector is provided so that the caller can permute it as necessary . * @ param toUpdate the semantics to be updated...
SemanticVector prevWordSemantics = getSemanticVector ( cooccurringWord ) ; Integer occurrences = wordToOccurrences . get ( cooccurringWord ) ; if ( occurrences == null ) occurrences = 0 ; double semanticWeight = 1d / ( Math . exp ( occurrences / historyDecayRate ) ) ; // The meaning is updated as a combination of the i...
public class dnsparameter { /** * Use this API to fetch all the dnsparameter resources that are configured on netscaler . */ public static dnsparameter get ( nitro_service service ) throws Exception { } }
dnsparameter obj = new dnsparameter ( ) ; dnsparameter [ ] response = ( dnsparameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ;
public class BaselineProfile { /** * Check Bilevel Image . * @ param metadata the metadata * @ param n the IFD number */ private void CheckBilevelImage ( IfdTags metadata , int n ) { } }
// Compression long comp = metadata . get ( TiffTags . getTagId ( "Compression" ) ) . getFirstNumericValue ( ) ; // if ( comp ! = 1 & & comp ! = 2 & & comp ! = 32773) if ( comp < 1 ) validation . addError ( "Invalid Compression" , "IFD" + n , comp ) ;
public class JcublasLapack { /** * Q R DECOMP */ @ Override public void sgeqrf ( int M , int N , INDArray A , INDArray R , INDArray INFO ) { } }
INDArray a = A ; INDArray r = R ; if ( Nd4j . dataType ( ) != DataType . FLOAT ) log . warn ( "FLOAT getrf called in DOUBLE environment" ) ; if ( A . ordering ( ) == 'c' ) a = A . dup ( 'f' ) ; if ( R != null && R . ordering ( ) == 'c' ) r = R . dup ( 'f' ) ; INDArray tau = Nd4j . createArrayFromShapeBuffer ( Nd4j . ge...
public class CPDefinitionLinkPersistenceImpl { /** * Returns an ordered range of all the cp definition links where CProductId = & # 63 ; and type = & # 63 ; . * Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are n...
return findByCP_T ( CProductId , type , start , end , orderByComparator , true ) ;
public class SolrSearchService { /** * { @ inheritDoc } */ public void delete ( String site , String id ) throws SearchException { } }
delete ( null , site , id ) ;
public class CmsXmlConfigUpdater { /** * Transforms a config file with an XSLT transform . * @ param name file name of the config file * @ param transform file name of the XSLT file * @ throws Exception if something goes wrong */ public void transform ( String name , String transform ) throws Exception { } }
File configFile = new File ( m_configDir , name ) ; File transformFile = new File ( m_xsltDir , transform ) ; try ( InputStream stream = new FileInputStream ( transformFile ) ) { StreamSource source = new StreamSource ( stream ) ; transform ( configFile , source ) ; }
public class BackgroundUtils { /** * Private method . * Returns a { @ link GradientDrawable } with * slightly rounded corners . * @ param color The desired color of the GradientDrawable * @ return A { @ link GradientDrawable } */ private static GradientDrawable getStandardBackground ( int color ) { } }
final GradientDrawable gradientDrawable = new GradientDrawable ( ) ; gradientDrawable . setCornerRadius ( BackgroundUtils . convertToDIP ( 4 ) ) ; gradientDrawable . setColor ( color ) ; return gradientDrawable ;
public class BaseDialogFragment { /** * Resolves the theme to be used for the dialog . * @ return The theme . */ @ StyleRes private int resolveTheme ( ) { } }
// First check if getTheme ( ) returns some usable theme . int theme = getTheme ( ) ; if ( theme != 0 ) { return theme ; } // Get the light / dark attribute from the Activity ' s Theme . boolean useLightTheme = isActivityThemeLight ( ) ; // Now check if developer overrides the Activity ' s Theme with an argument . Bund...
public class ExecutionRuntimeServices { /** * setter for the brunch id of the current Execution */ public void setBranchId ( String brunchId ) { } }
Validate . isTrue ( StringUtils . isEmpty ( getBranchId ( ) ) , "not allowed to overwrite branch id" ) ; contextMap . put ( BRANCH_ID , brunchId ) ;
public class DistributionParameterImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setTimeUnit ( TimeUnit newTimeUnit ) { } }
TimeUnit oldTimeUnit = timeUnit ; timeUnit = newTimeUnit == null ? TIME_UNIT_EDEFAULT : newTimeUnit ; boolean oldTimeUnitESet = timeUnitESet ; timeUnitESet = true ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , BpsimPackage . DISTRIBUTION_PARAMETER__TIME_UNIT , oldTimeUn...
public class AmazonSageMakerWaiters { /** * Builds a NotebookInstanceInService waiter by using custom parameters waiterParameters and other parameters * defined in the waiters specification , and then polls until it determines whether the resource entered the desired * state or not , where polling criteria is bound...
return new WaiterBuilder < DescribeNotebookInstanceRequest , DescribeNotebookInstanceResult > ( ) . withSdkFunction ( new DescribeNotebookInstanceFunction ( client ) ) . withAcceptors ( new NotebookInstanceInService . IsInServiceMatcher ( ) , new NotebookInstanceInService . IsFailedMatcher ( ) ) . withDefaultPollingStr...
public class ApiOvhEmailexchange { /** * Create new shared mailbox in exchange server * REST : POST / email / exchange / { organizationName } / service / { exchangeService } / sharedAccount * @ param mailingFilter [ required ] Enable mailing filtrering * @ param lastName [ required ] Shared account last name * ...
String qPath = "/email/exchange/{organizationName}/service/{exchangeService}/sharedAccount" ; StringBuilder sb = path ( qPath , organizationName , exchangeService ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "displayName" , displayName ) ; addBody ( o , "firstName" , firstName...
public class NormalizerSerializer { /** * Get a serializer strategy the given normalizer * @ param normalizer the normalizer to find a compatible serializer strategy for * @ return the compatible strategy */ private NormalizerSerializerStrategy getStrategy ( Normalizer normalizer ) { } }
for ( NormalizerSerializerStrategy strategy : strategies ) { if ( strategySupportsNormalizer ( strategy , normalizer . getType ( ) , normalizer . getClass ( ) ) ) { return strategy ; } } throw new RuntimeException ( String . format ( "No serializer strategy found for normalizer of class %s. If this is a custom normaliz...
public class Matrix { /** * Set a submatrix . * @ param i0 Initial row index * @ param i1 Final row index * @ param j0 Initial column index * @ param j1 Final column index * @ param X A ( i0 : i1 , j0 : j1) * @ throws ArrayIndexOutOfBoundsException Submatrix indices */ public void setMatrix ( int i0 , int i...
try { for ( int i = i0 ; i <= i1 ; i ++ ) { for ( int j = j0 ; j <= j1 ; j ++ ) { A [ i ] [ j ] = X . get ( i - i0 , j - j0 ) ; } } } catch ( ArrayIndexOutOfBoundsException e ) { throw new ArrayIndexOutOfBoundsException ( "Submatrix indices" ) ; }
public class ExistPolicyIndex { /** * create an XML Document from the policy document */ protected static Document createDocument ( String document ) throws PolicyIndexException { } }
// parse policy document and create dom DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; factory . setNamespaceAware ( true ) ; DocumentBuilder builder ; try { builder = factory . newDocumentBuilder ( ) ; Document doc = builder . parse ( new InputSource ( new StringReader ( document ) ) ) ; r...
public class GetStatusPResponse { /** * < code > optional . alluxio . grpc . file . FileInfo fileInfo = 1 ; < / code > */ public alluxio . grpc . FileInfoOrBuilder getFileInfoOrBuilder ( ) { } }
return fileInfo_ == null ? alluxio . grpc . FileInfo . getDefaultInstance ( ) : fileInfo_ ;
public class ColumnPath { /** * Returns true if field corresponding to fieldID is set ( has been assigned a value ) and false otherwise */ public boolean isSet ( _Fields field ) { } }
if ( field == null ) { throw new IllegalArgumentException ( ) ; } switch ( field ) { case COLUMN_FAMILY : return isSetColumn_family ( ) ; case SUPER_COLUMN : return isSetSuper_column ( ) ; case COLUMN : return isSetColumn ( ) ; } throw new IllegalStateException ( ) ;
public class ExpressionParser { /** * Add mapper to mapper list . * @ param bean * @ return */ public ExpressionParser addMapper ( Object bean ) { } }
mapperList . add ( ( s ) -> ExpressionParser . getValue ( bean , s ) ) ; return this ;