signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class XbaseSyntacticSequencer { /** * Syntax : ' ( ' * */ @ Override protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a ( EObject semanticObject , ISynNavigable transition , List < INode > nodes ) { } }
Keyword kw = grammarAccess . getXParenthesizedExpressionAccess ( ) . getLeftParenthesisKeyword_0 ( ) ; if ( nodes == null ) { if ( semanticObject instanceof XIfExpression || semanticObject instanceof XTryCatchFinallyExpression ) { EObject cnt = semanticObject . eContainer ( ) ; if ( cnt instanceof XExpression && ! ( cn...
public class CreateProtectionRequestMarshaller { /** * Marshall the given parameter object . */ public void marshall ( CreateProtectionRequest createProtectionRequest , ProtocolMarshaller protocolMarshaller ) { } }
if ( createProtectionRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( createProtectionRequest . getName ( ) , NAME_BINDING ) ; protocolMarshaller . marshall ( createProtectionRequest . getResourceArn ( ) , RESOURCEARN_BINDING ) ; }...
public class CommerceDiscountPersistenceImpl { /** * Returns the last commerce discount in the ordered set where groupId = & # 63 ; and couponCode = & # 63 ; . * @ param groupId the group ID * @ param couponCode the coupon code * @ param orderByComparator the comparator to order the set by ( optionally < code > n...
int count = countByG_C ( groupId , couponCode ) ; if ( count == 0 ) { return null ; } List < CommerceDiscount > list = findByG_C ( groupId , couponCode , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ;
public class AbstractLog { /** * Ensure message is not larger than requested maximum length . If message length is larger than allowed size shorten * it and append ellipsis . This method guarantee maximum length is not exceed also when ellipsis is appended . * This method returns given < code > message < / code > a...
if ( message == null ) { return "null" ; } return message . length ( ) < maxLength ? message : message . substring ( 0 , maxLength - ELLIPSIS . length ( ) ) + ELLIPSIS ;
public class WordBasedSegment { private static void checkDateElements ( List < Vertex > linkedArray ) { } }
if ( linkedArray . size ( ) < 2 ) return ; ListIterator < Vertex > listIterator = linkedArray . listIterator ( ) ; Vertex next = listIterator . next ( ) ; Vertex current = next ; while ( listIterator . hasNext ( ) ) { next = listIterator . next ( ) ; if ( TextUtility . isAllNum ( current . realWord ) || TextUtility . i...
public class JVnSenSegmenter { /** * Segment sentences . * @ param infile the infile * @ param outfile the outfile * @ param senSegmenter the sen segmenter */ private static void senSegmentFile ( String infile , String outfile , JVnSenSegmenter senSegmenter ) { } }
try { BufferedReader in = new BufferedReader ( new InputStreamReader ( new FileInputStream ( infile ) , "UTF-8" ) ) ; BufferedWriter out = new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream ( outfile ) , "UTF-8" ) ) ; String para = "" , line = "" , text = "" ; while ( ( line = in . readLine ( ) ) != nul...
public class AudioCodecSettingsMarshaller { /** * Marshall the given parameter object . */ public void marshall ( AudioCodecSettings audioCodecSettings , ProtocolMarshaller protocolMarshaller ) { } }
if ( audioCodecSettings == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( audioCodecSettings . getAacSettings ( ) , AACSETTINGS_BINDING ) ; protocolMarshaller . marshall ( audioCodecSettings . getAc3Settings ( ) , AC3SETTINGS_BINDING ) ; pr...
public class BigIntegerExtensions { /** * The binary < code > plus < / code > operator . * @ param a * a BigInteger . May not be < code > null < / code > . * @ param b * a BigInteger . May not be < code > null < / code > . * @ return < code > a . add ( b ) < / code > * @ throws NullPointerException * if {...
return a . add ( b ) ;
public class MHtmlEncoder { /** * Retourne une chaine encodée . * @ return String Chaine encodée * @ param s * String Chaine à encoder */ public static String encodeString ( final String s ) { } }
if ( s != null ) { final StringBuilder sb = new StringBuilder ( s . length ( ) + s . length ( ) / 4 ) ; encodeString ( sb , s ) ; return sb . toString ( ) ; } return "" ;
public class FileWatcher { /** * Remove a watcher from the list of listeners . * @ param watcher The watcher to be removed . * @ return True if the watcher was removed from the list . */ public boolean removeWatcher ( Listener watcher ) { } }
if ( watcher == null ) { throw new IllegalArgumentException ( "Null watcher removed" ) ; } synchronized ( mutex ) { AtomicBoolean removed = new AtomicBoolean ( removeFromListeners ( watchers , watcher ) ) ; watchedFiles . forEach ( ( path , suppliers ) -> { if ( removeFromListeners ( suppliers , watcher ) ) { removed ....
public class KerasSimpleRnn { /** * Set weights for layer . * @ param weights Simple RNN weights * @ throws InvalidKerasConfigurationException Invalid Keras configuration exception */ @ Override public void setWeights ( Map < String , INDArray > weights ) throws InvalidKerasConfigurationException { } }
this . weights = new HashMap < > ( ) ; INDArray W ; if ( weights . containsKey ( conf . getKERAS_PARAM_NAME_W ( ) ) ) W = weights . get ( conf . getKERAS_PARAM_NAME_W ( ) ) ; else throw new InvalidKerasConfigurationException ( "Keras SimpleRNN layer does not contain parameter " + conf . getKERAS_PARAM_NAME_W ( ) ) ; th...
public class ParameterUtil { /** * Get parameter value from a string represenation * @ param parameterClass parameter class * @ param value string value representation * @ return parameter value from string representation * @ throws Exception if string value cannot be parse */ public static Object getParameterV...
return getParameterValueFromString ( parameterClass , value , null ) ;
public class RedisClient { /** * Get the bytes representing the given serialized object . */ protected byte [ ] jsonSerialize ( Object o ) { } }
byte [ ] res = null ; try { res = JsonUtils . toJson ( o ) . getBytes ( "utf-8" ) ; } catch ( UnsupportedEncodingException e ) { logger . error ( "JsonSerialize object fail " , e ) ; } return res ;
public class JavaParser { /** * src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 1026:1 : switchBlockStatementGroup : switchLabel ( blockStatement ) * ; */ public final void switchBlockStatementGroup ( ) throws RecognitionException { } }
int switchBlockStatementGroup_StartIndex = input . index ( ) ; try { if ( state . backtracking > 0 && alreadyParsedRule ( input , 97 ) ) { return ; } // src / main / resources / org / drools / compiler / semantics / java / parser / Java . g : 1027:5 : ( switchLabel ( blockStatement ) * ) // src / main / resources / org...
public class AbstractQueryRunner { /** * { @ inheritDoc } */ public QueryRunnerService overrideOnce ( String operation , Object value ) { } }
this . overrider . overrideOnce ( operation , value ) ; return this ;
public class GeometryTools { /** * Gets the coordinates of two points ( that represent a bond ) and calculates * for each the coordinates of two new points that have the given distance * vertical to the bond . * @ param coords The coordinates of the two given points of the bond like this * [ point1x , point1y ,...
double angle ; if ( ( coords [ 2 ] - coords [ 0 ] ) == 0 ) { angle = Math . PI / 2 ; } else { angle = Math . atan ( ( ( double ) coords [ 3 ] - ( double ) coords [ 1 ] ) / ( ( double ) coords [ 2 ] - ( double ) coords [ 0 ] ) ) ; } int begin1X = ( int ) ( Math . cos ( angle + Math . PI / 2 ) * dist + coords [ 0 ] ) ; i...
public class PaginationAction { /** * Convenience method to retrieve an amount of entities from this pagination action . * < br > This also includes already cached entities similar to { @ link # forEachAsync ( Procedure ) } . * @ param amount * The maximum amount to retrieve * @ return { @ link net . dv8tion . ...
return takeAsync0 ( amount , ( task , list ) -> forEachAsync ( val -> { list . add ( val ) ; return list . size ( ) < amount ; } , task :: completeExceptionally ) ) ;
public class DistanceStatisticsWithClasses { /** * Compute the exact maximum and minimum . * @ param relation Relation to process * @ param distFunc Distance function * @ return Exact maximum and minimum */ private DoubleMinMax exactMinMax ( Relation < O > relation , DistanceQuery < O > distFunc ) { } }
final FiniteProgress progress = LOG . isVerbose ( ) ? new FiniteProgress ( "Exact fitting distance computations" , relation . size ( ) , LOG ) : null ; DoubleMinMax minmax = new DoubleMinMax ( ) ; // find exact minimum and maximum first . for ( DBIDIter iditer = relation . iterDBIDs ( ) ; iditer . valid ( ) ; iditer . ...
public class Form { /** * Returns the page object received as response to the form submit action . */ @ SuppressWarnings ( "unchecked" ) private < T extends Resource > T submit ( Form form , Parameters parameters ) { } }
RequestBuilder < Resource > request = doRequest ( form . getUri ( ) ) . set ( parameters ) ; boolean doPost = form . isDoPost ( ) ; boolean multiPart = form . isMultiPart ( ) ; if ( doPost && multiPart ) { request . multiPart ( ) ; addFiles ( request , form ) ; } return ( T ) ( doPost ? request . post ( ) : request . g...
public class SourceIterator { /** * Returns the next token from the enclosed Source . * The EOF token is never returned by the iterator . * @ throws IllegalStateException if the Source * throws a LexerException or IOException */ @ Override public Token next ( ) { } }
if ( ! hasNext ( ) ) throw new NoSuchElementException ( ) ; Token t = this . tok ; this . tok = null ; return t ;
public class Product { /** * Gets the productType value for this Product . * @ return productType * The type of { @ code Product } . This will always be { @ link ProductType # DFP } * for programmatic * guaranteed products . * < span class = " constraint ReadOnly " > This attribute is * read - only when : < u...
return productType ;
public class Simple1DOFCamera { /** * Unproject a screen coordinate ( at depth 0 ) to 3D model coordinates . * @ param x X * @ param y Y * @ param z Z * @ return model coordinates */ public double [ ] unproject ( double x , double y , double z ) { } }
double [ ] out = new double [ 3 ] ; unproject ( x , y , z , out ) ; return out ;
public class CPDefinitionGroupedEntryUtil { /** * Returns a range of all the cp definition grouped entries where CPDefinitionId = & # 63 ; . * Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , ...
return getPersistence ( ) . findByCPDefinitionId ( CPDefinitionId , start , end ) ;
public class TileSetInfo100 { @ Override protected void parse ( Node node ) { } }
NamedNodeMap attributes = node . getAttributes ( ) ; order = getValueRecursiveAsInteger ( attributes . getNamedItem ( "order" ) ) ; unitsPerPixel = getValueRecursiveAsDouble ( attributes . getNamedItem ( "units-per-pixel" ) ) ; href = getValueRecursive ( attributes . getNamedItem ( "href" ) ) ; setParsed ( true ) ;
public class AdamicAdar { /** * Implementation notes : * The requirement that " K extends CopyableValue < K > " can be removed when * Flink has a self - join which performs the skew distribution handled by * GenerateGroupSpans / GenerateGroups / GenerateGroupPairs . */ @ Override public DataSet < Result < K > > r...
// s , d ( s ) , 1 / log ( d ( s ) ) DataSet < Tuple3 < K , LongValue , FloatValue > > inverseLogDegree = input . run ( new VertexDegree < K , VV , EV > ( ) . setParallelism ( parallelism ) ) . map ( new VertexInverseLogDegree < > ( ) ) . setParallelism ( parallelism ) . name ( "Vertex score" ) ; // s , t , 1 / log ( d...
public class Solo { /** * Returns a localized String matching the specified resource id . * @ param id the R . id of the String * @ return the localized String */ public String getString ( int id ) { } }
if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "getString(" + id + ")" ) ; } return getter . getString ( id ) ;
public class FeatureScopes { /** * Creates a scope for the static features that are exposed by a type that was used , e . g . * { @ code java . lang . String . valueOf ( 1 ) } where { @ code valueOf ( 1 ) } is to be linked . * @ param featureCall the feature call that is currently processed by the scoping infrastru...
return new StaticFeatureOnTypeLiteralScope ( parent , session , asAbstractFeatureCall ( featureCall ) , receiver , receiverType , receiverBucket , operatorMapping ) ;
public class IabHelper { /** * Asynchronous wrapper for inventory query . This will perform an inventory * query as described in { @ link # queryInventory } , but will do so asynchronously * and call back the specified listener upon completion . This method is safe to * call from a UI thread . * @ param querySk...
final Handler handler = new Handler ( ) ; checkNotDisposed ( ) ; checkSetupDone ( "queryInventory" ) ; flagStartAsync ( "refresh inventory" ) ; ( new Thread ( new Runnable ( ) { public void run ( ) { IabResult result = new IabResult ( BILLING_RESPONSE_RESULT_OK , "Inventory refresh successful." ) ; Inventory inv = null...
public class Cron4jJob { public synchronized void registerNeighborConcurrent ( String groupName , NeighborConcurrentGroup neighborConcurrentGroup ) { } }
verifyCanScheduleState ( ) ; if ( neighborConcurrentGroupMap == null ) { neighborConcurrentGroupMap = new ConcurrentHashMap < String , NeighborConcurrentGroup > ( ) ; // just in case neighborConcurrentGroupList = new CopyOnWriteArrayList < NeighborConcurrentGroup > ( ) ; // just in case } neighborConcurrentGroupMap . p...
public class AdminSearchlogAction { @ Execute public HtmlResponse details ( final int crudMode , final String logType , final String id ) { } }
verifyCrudMode ( crudMode , CrudMode . DETAILS ) ; saveToken ( ) ; return asDetailsHtml ( ) . useForm ( EditForm . class , op -> { op . setup ( form -> { form . id = id ; form . logType = logType ; form . crudMode = crudMode ; } ) ; } ) . renderWith ( data -> { RenderDataUtil . register ( data , "logParamItems" , searc...
public class BaseJsonBo { /** * Get a sub - attribute using d - path . * @ param attrName * @ param dPath * @ return * @ see DPathUtils */ public JsonNode getSubAttr ( String attrName , String dPath ) { } }
Lock lock = lockForRead ( ) ; try { return JacksonUtils . getValue ( getAttribute ( attrName ) , dPath ) ; } finally { lock . unlock ( ) ; }
public class CSSDeclaration { /** * Set the property of this CSS value ( e . g . < code > background - color < / code > ) . * @ param sProperty * The CSS property name to set . May neither be < code > null < / code > nor * empty . The property value is automatically lowercased ! * @ return this * @ since 3.7....
ValueEnforcer . notEmpty ( sProperty , "Property" ) ; m_sProperty = _unifyProperty ( sProperty ) ; return this ;
public class Graphics { /** * Sets the diffuse color for No . i light . */ public void setLightDiffuse ( int i , Color color ) { } }
float [ ] tmpColor = { ( float ) color . getRed ( ) , ( float ) color . getGreen ( ) , ( float ) color . getBlue ( ) , ( float ) color . getAlpha ( ) } ; gl . glLightfv ( GL2 . GL_LIGHT0 + i , GL2 . GL_DIFFUSE , tmpColor , 0 ) ;
public class XMLMapHandler { /** * Read a mapping from the passed input stream . * @ param aIS * The input stream to read from . May not be < code > null < / code > . * @ param aTargetMap * The target map to be filled . * @ return { @ link ESuccess # SUCCESS } if the stream could be opened , if it could * b...
ValueEnforcer . notNull ( aIS , "InputStream" ) ; ValueEnforcer . notNull ( aTargetMap , "TargetMap" ) ; try ( final InputStream aCloseMe = aIS ) { // open file final IMicroDocument aDoc = MicroReader . readMicroXML ( aIS ) ; if ( aDoc != null ) { readMap ( aDoc . getDocumentElement ( ) , aTargetMap ) ; return ESuccess...
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EEnum getIfcCableSegmentTypeEnum ( ) { } }
if ( ifcCableSegmentTypeEnumEEnum == null ) { ifcCableSegmentTypeEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 931 ) ; } return ifcCableSegmentTypeEnumEEnum ;
public class UtlInvBase { /** * < p > Makes invoice totals include taxes lines * cause line inserted / changed / deleted . < / p > * @ param < T > invoice type * @ param < L > invoice line type * @ param < TL > invoice tax line type * @ param pReqVars request scoped vars * @ param pLine affected line * @ ...
// all tax lines will be redone : pReqVars . put ( pInvTxMeth . getInvTxLnCl ( ) . getSimpleName ( ) + "itsOwnerdeepLevel" , 1 ) ; List < TL > invTxLns = getSrvOrm ( ) . retrieveListWithConditions ( pReqVars , pInvTxMeth . getInvTxLnCl ( ) , "where ITSOWNER=" + pLine . getItsOwner ( ) . getItsId ( ) ) ; pReqVars . remo...
import java . util . * ; class Main { /** * The function determines the count of hexadecimal numbers within a given range . * > > > hex _ numbers _ counter ( 10 , 15) * > > > hex _ numbers _ counter ( 2 , 4) * > > > hex _ numbers _ counter ( 15 , 16) */ public static int hexNumbersCounter ( int start , int end ) ...
int hexCount = 0 ; for ( int number = start ; number <= end ; number ++ ) { if ( 10 <= number && number <= 15 ) { hexCount += 1 ; } else if ( number > 15 ) { int tempNumber = number ; while ( tempNumber != 0 ) { if ( tempNumber % 16 >= 10 ) { hexCount += 1 ; } tempNumber /= 16 ; } } } return hexCount ;
public class NumberFormat { /** * Adjusts the minimum and maximum fraction digits to values that * are reasonable for the currency ' s default fraction digits . */ private static void adjustForCurrencyDefaultFractionDigits ( DecimalFormat format , DecimalFormatSymbols symbols ) { } }
Currency currency = symbols . getCurrency ( ) ; if ( currency == null ) { try { currency = Currency . getInstance ( symbols . getInternationalCurrencySymbol ( ) ) ; } catch ( IllegalArgumentException e ) { } } if ( currency != null ) { int digits = currency . getDefaultFractionDigits ( ) ; if ( digits != - 1 ) { int ol...
public class TicketAPI { /** * 获取 ticket * @ param access _ token access _ token * @ param type jsapi or wx _ card * @ return ticket */ public static Ticket ticketGetticket ( String access_token , String type ) { } }
HttpUriRequest httpUriRequest = RequestBuilder . get ( ) . setUri ( BASE_URI + "/cgi-bin/ticket/getticket" ) . addParameter ( PARAM_ACCESS_TOKEN , API . accessToken ( access_token ) ) . addParameter ( "type" , type ) . build ( ) ; return LocalHttpClient . executeJsonResult ( httpUriRequest , Ticket . class ) ;
public class ScriptExpression { /** * Deserialize this object from a POF stream . * @ param reader POF reader to use * @ throws IOException if an error occurs during deserialization */ public void readExternal ( PofReader reader ) throws IOException { } }
super . readExternal ( reader ) ; language = reader . readString ( 10 ) ; init ( ) ;
public class DockerClient { /** * Create an image by importing the given stream of a tar file . * @ param repository the repository to import to * @ param tag any tag for this image * @ param imageStream the InputStream of the tar file * @ return an { @ link ImageCreateResponse } containing the id of the import...
Preconditions . checkNotNull ( repository , "Repository was not specified" ) ; Preconditions . checkNotNull ( imageStream , "imageStream was not provided" ) ; MultivaluedMap < String , String > params = new MultivaluedMapImpl ( ) ; params . add ( "repo" , repository ) ; params . add ( "tag" , tag ) ; params . add ( "fr...
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getSBI ( ) { } }
if ( sbiEClass == null ) { sbiEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 334 ) ; } return sbiEClass ;
public class ArchetypeValidator { /** * Check if information model entity referenced by archetype * has right name or type */ void checkRmModelConformance ( ) { } }
final AmVisitor < AmObject , AmConstraintContext > visitor = AmVisitors . preorder ( new ConformanceVisitor ( ) ) ; ArchetypeWalker . walkConstraints ( visitor , archetype , new AmConstraintContext ( ) ) ;
public class TCPMemcachedNodeImpl { /** * ( non - Javadoc ) * @ see net . spy . memcached . MemcachedNode # fillWriteBuffer ( boolean ) */ public final void fillWriteBuffer ( boolean shouldOptimize ) { } }
if ( toWrite == 0 && readQ . remainingCapacity ( ) > 0 ) { getWbuf ( ) . clear ( ) ; Operation o = getNextWritableOp ( ) ; while ( o != null && toWrite < getWbuf ( ) . capacity ( ) ) { synchronized ( o ) { assert o . getState ( ) == OperationState . WRITING ; ByteBuffer obuf = o . getBuffer ( ) ; assert obuf != null : ...
public class WhiteboxImpl { /** * Set the values of multiple instance fields defined in a context using * reflection . The values in the context will be assigned to values on the * { @ code instance } . This method will traverse the class hierarchy when * searching for the fields . Example usage : * Given : *...
setInternalStateFromContext ( object , context , FieldMatchingStrategy . MATCHING ) ; if ( additionalContexts != null && additionalContexts . length > 0 ) { for ( Object additionContext : additionalContexts ) { setInternalStateFromContext ( object , additionContext , FieldMatchingStrategy . MATCHING ) ; } }
public class Futures { /** * Creates a new CompletableFuture that will timeout after the given amount of time . * @ param timeout The timeout for the future . * @ param tag A tag ( identifier ) to be used as a parameter to the TimeoutException . * @ param executorService An ExecutorService that will be used to in...
CompletableFuture < T > result = new CompletableFuture < > ( ) ; ScheduledFuture < Boolean > sf = executorService . schedule ( ( ) -> result . completeExceptionally ( new TimeoutException ( tag ) ) , timeout . toMillis ( ) , TimeUnit . MILLISECONDS ) ; result . whenComplete ( ( r , ex ) -> sf . cancel ( true ) ) ; retu...
public class AbstractExtractionCondition { /** * { @ inheritDoc } * @ see jp . co . future . uroborosql . fluent . ExtractionCondition # where ( java . lang . CharSequence ) */ @ SuppressWarnings ( "unchecked" ) @ Override public T where ( final CharSequence rawString ) { } }
this . rawStrings . add ( rawString ) ; this . useOperator = true ; return ( T ) this ;
public class AbcGrammar { /** * field - key : : = % x4B . 3A * WSP key header - eol < p > * < tt > K : < / tt > */ Rule FieldKey ( ) { } }
return Sequence ( String ( "K:" ) , ZeroOrMore ( WSP ( ) ) . suppressNode ( ) , Key ( ) , HeaderEol ( ) ) . label ( FieldKey ) ;
public class FmtLocalDate { /** * { @ inheritDoc } */ @ Override protected String format ( final LocalDate jodaType , final DateTimeFormatter formatter ) { } }
return jodaType . toString ( formatter ) ;
public class MathMLConverter { /** * Should consolidate onto the default MathML namespace . * @ param mathNode root element of the document * @ return return the root element of a new document * @ throws MathConverterException namespace consolidation failed */ Element consolidateMathMLNamespace ( Element mathNode...
try { Document tempDoc ; if ( isNsAware ( mathNode ) ) { tempDoc = mathNode . getOwnerDocument ( ) ; } else { tempDoc = XMLHelper . string2Doc ( XMLHelper . printDocument ( mathNode ) , true ) ; } // rename namespaces and set a new default namespace new XmlNamespaceTranslator ( ) . setDefaultNamespace ( DEFAULT_NAMESPA...
public class Snappy { /** * Reads the length varint ( a series of bytes , where the lower 7 bits * are data and the upper bit is a flag to indicate more bytes to be * read ) . * @ param in The input buffer to read the preamble from * @ return The calculated length based on the input buffer , or 0 if * no prea...
int length = 0 ; int byteIndex = 0 ; while ( in . isReadable ( ) ) { int current = in . readUnsignedByte ( ) ; length |= ( current & 0x7f ) << byteIndex ++ * 7 ; if ( ( current & 0x80 ) == 0 ) { return length ; } if ( byteIndex >= 4 ) { throw new DecompressionException ( "Preamble is greater than 4 bytes" ) ; } } retur...
public class Entry { /** * Sets the value of { @ link # recurrenceRuleProperty ( ) } . * @ param rec the new recurrence rule */ public final void setRecurrenceRule ( String rec ) { } }
if ( recurrenceRule == null && rec == null ) { // no unnecessary property creation if everything is null return ; } recurrenceRuleProperty ( ) . set ( rec ) ;
public class PooledEngine { /** * Retrieves a new { @ link Component } from the { @ link Engine } pool . It will be placed back in the pool whenever it ' s removed * from an { @ link Entity } or the { @ link Entity } itself it ' s removed . * Overrides the default implementation of Engine ( creating a new Object ) ...
return componentPools . obtain ( componentType ) ;
public class Classes { /** * Variant for { @ link # invokeSetter ( Object , String , String ) } but no exception if setter not found . * @ param object object instance , * @ param name setter name , * @ param value value to set . * @ throws Exception if invocation fail for whatever reason including method logic...
String setterName = Strings . getMethodAccessor ( "set" , name ) ; Class < ? > clazz = object . getClass ( ) ; Method method = null ; try { method = findMethod ( clazz , setterName ) ; } catch ( NoSuchMethodException e ) { log . debug ( "Setter |%s| not found in class |%s| or its super hierarchy." , setterName , clazz ...
public class MemorySegment { /** * Writes the given long value ( 64bit , 8 bytes ) to the given position in little endian * byte order . This method ' s speed depends on the system ' s native byte order , and it * is possibly slower than { @ link # putLong ( int , long ) } . For most cases ( such as * transient s...
if ( LITTLE_ENDIAN ) { putLong ( index , value ) ; } else { putLong ( index , Long . reverseBytes ( value ) ) ; }
public class CmsExport { /** * Cuts leading and trailing ' / ' from the given resource name . < p > * @ param resourceName the absolute path of a resource * @ return the trimmed resource name */ protected String trimResourceName ( String resourceName ) { } }
if ( resourceName . startsWith ( "/" ) ) { resourceName = resourceName . substring ( 1 ) ; } if ( resourceName . endsWith ( "/" ) ) { resourceName = resourceName . substring ( 0 , resourceName . length ( ) - 1 ) ; } return resourceName ;
public class JSJQueryHelper { /** * Create a JS anonymous function that can be used as a callback to the * jQuery . ajax success callback . Note : this can only be used with extended HTML * responses ! * @ param aHandlerBeforeInclude * The JS expression that must resolve to a JS function that takes 3 * argume...
final JSAnonymousFunction ret = new JSAnonymousFunction ( ) ; final JSVar aData = ret . param ( "a" ) ; final JSVar aTextStatus = ret . param ( "b" ) ; final JSVar aXHR = ret . param ( "c" ) ; ret . body ( ) . invoke ( "jqph" , "jqueryAjaxSuccessHandler" ) . arg ( aData ) . arg ( aTextStatus ) . arg ( aXHR ) . arg ( aH...
public class CloseableIterators { /** * Returns a closeable iterator that applies { @ code function } to each element of { @ code * fromIterator } . */ public static < F , T > CloseableIterator < T > transform ( CloseableIterator < F > iterator , Function < F , T > function ) { } }
return wrap ( Iterators . transform ( iterator , function :: apply ) , iterator ) ;
public class EJSContainer { /** * F743-29185 */ public boolean removeStatefulBean ( Object bean ) throws RemoteException , RemoveException { } }
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "removeStatefulBean : " + Util . identity ( bean ) ) ; // Determine whether the parameter is a normal wrapper ( business or // component interface ) or a No - Interface reference , and if N...
public class CircularView { /** * Set the degree that will trigger highlighting a marker . You can also set { @ link # HIGHLIGHT _ NONE } to not highlight any degree . * See R . styleable # CircularView _ highlightedDegree * @ param highlightedDegree Value in degrees . */ public void setHighlightedDegree ( final fl...
this . mHighlightedDegree = highlightedDegree ; mHighlightedMarker = null ; mHighlightedMarkerPosition = - 1 ; // Loop through all markers to see if any of them are highlighted . if ( mMarkerList != null ) { final int size = mMarkerList . size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { final Marker marker = mMarkerLis...
public class ChannelListController { /** * Original , pre - 4.3 version of this API . Always returns the entire contents of the Portlet * Registry , including uncategorized portlets , to which the user has access . Access is based on * the SUBSCRIBE permission . */ @ RequestMapping ( value = "/portletList" , method...
if ( TYPE_MANAGE . equals ( type ) ) { throw new UnsupportedOperationException ( "Moved to PortletRESTController under /api/portlets.json" ) ; } final IPerson user = personManager . getPerson ( request ) ; final Map < String , SortedSet < ? > > registry = getRegistryOriginal ( webRequest , user ) ; // Since type = mana...
public class Avicenna { /** * Whenever this method is called , all objects in input argument are searched for * annotated fields . Then , the fields are injected by dependency objects . * @ param objects List of objects which they should be injected . */ public static void inject ( Object ... objects ) { } }
try { for ( Object object : objects ) { Class clazz = object . getClass ( ) ; for ( Field field : ReflectionHelper . getFields ( clazz ) ) { if ( field . isAnnotationPresent ( InjectHere . class ) ) { qualifiers . clear ( ) ; for ( Annotation annotation : field . getAnnotations ( ) ) { if ( annotation . annotationType ...
public class StringExpression { /** * Create a { @ code this . length ( ) } expression * < p > Return the length of this String < / p > * @ return this . length ( ) * @ see java . lang . String # length ( ) */ public NumberExpression < Integer > length ( ) { } }
if ( length == null ) { length = Expressions . numberOperation ( Integer . class , Ops . STRING_LENGTH , mixin ) ; } return length ;
public class SelectResultSet { /** * Close resultSet . */ public void close ( ) throws SQLException { } }
isClosed = true ; if ( ! isEof ) { lock . lock ( ) ; try { while ( ! isEof ) { dataSize = 0 ; // to avoid storing data readNextValue ( ) ; } } catch ( SQLException queryException ) { throw ExceptionMapper . getException ( queryException , null , this . statement , false ) ; } catch ( IOException ioe ) { throw handleIoE...
public class GetDateVisitor { /** * Visit a Person . This is the primary focus of the visitation . From * here , interesting information is gathered from the attributes . Once a * date string is found , quit . * @ see GedObjectVisitor # visit ( Person ) */ @ Override public void visit ( final Person person ) { } ...
for ( final GedObject gob : person . getAttributes ( ) ) { gob . accept ( this ) ; if ( ! dateString . isEmpty ( ) ) { break ; } }
public class PGgeometryConverter { /** * to geolatte */ public static Geometry convert ( org . postgis . Geometry geometry ) { } }
switch ( geometry . getType ( ) ) { case org . postgis . Geometry . POINT : return convert ( ( org . postgis . Point ) geometry ) ; case org . postgis . Geometry . LINESTRING : return convert ( ( org . postgis . LineString ) geometry ) ; case org . postgis . Geometry . LINEARRING : return convert ( ( org . postgis . Li...
public class IonWriterSystem { /** * Sets { @ link # _ symbol _ table } and clears { @ link # _ initial _ ivm _ handling } . * Subclasses should override to generate output . */ final void writeIonVersionMarker ( SymbolTable systemSymtab ) throws IOException { } }
if ( getDepth ( ) != 0 ) { String message = "Ion Version Markers are only valid at the top level of a " + "data stream" ; throw new IllegalStateException ( message ) ; } assert systemSymtab . isSystemTable ( ) ; if ( ! SystemSymbols . ION_1_0 . equals ( systemSymtab . getIonVersionId ( ) ) ) { String message = "This li...
public class VariantNormalizer { /** * Calculates the start , end , reference and alternate of an SNV / MNV / INDEL where the * reference and the alternate are not empty . * This task comprises 2 steps : removing the trailing bases that are * identical in both alleles , then the leading identical bases . * @ pa...
int indexOfDifference ; // Remove the trailing bases indexOfDifference = reverseIndexOfDifference ( reference , alt ) ; // VariantKeyFields startReferenceBlock = null ; final VariantKeyFields keyFields ; // VariantKeyFields endReferenceBlock = null ; // if ( generateReferenceBlocks ) { // if ( indexOfDifference > 0 ) {...
public class MonetaryFormat { /** * Set rounding mode to use when it becomes necessary . */ public MonetaryFormat roundingMode ( RoundingMode roundingMode ) { } }
if ( roundingMode == this . roundingMode ) return this ; else return new MonetaryFormat ( negativeSign , positiveSign , zeroDigit , decimalMark , minDecimals , decimalGroups , shift , roundingMode , codes , codeSeparator , codePrefixed ) ;
public class MolaDbClient { /** * Get the table details from moladb * @ param tableName Name of table to be get from Moladb . * @ return The responseContent from the Get table service method , as returned by * Moladb . * @ throws BceClientException * If any internal errors are encountered inside the client wh...
checkNotNull ( tableName , "request should not be null." ) ; InternalRequest httpRequest = createRequestUnderInstance ( HttpMethodName . GET , MolaDbConstants . URI_TABLE , tableName ) ; GetTableResponse ret = this . invokeHttpClient ( httpRequest , GetTableResponse . class ) ; return ret ;
public class StringInterpolatorDemoToDoItems { /** * region > newToDo ( action ) */ @ MemberOrder ( sequence = "40" ) public StringInterpolatorDemoToDoItem newToDo ( @ ParameterLayout ( named = "Description" ) @ Parameter ( regexPattern = "\\w[@&:\\-\\,\\.\\+ \\w]*" ) final String description , @ ParameterLayout ( name...
final StringInterpolatorDemoToDoItem toDoItem = container . newTransientInstance ( StringInterpolatorDemoToDoItem . class ) ; toDoItem . setDescription ( description ) ; toDoItem . setDocumentationPage ( documentationPage ) ; container . persist ( toDoItem ) ; container . flush ( ) ; return toDoItem ;
public class SimpleFileIO { /** * Get the content of the file as a byte array . * @ param aFile * The file to read . May be < code > null < / code > . * @ return < code > null < / code > if the passed file is < code > null < / code > or if the * passed file does not exist . */ @ Nullable public static byte [ ] ...
return aFile == null ? null : StreamHelper . getAllBytes ( FileHelper . getInputStream ( aFile ) ) ;
public class AbstractTextSequencer { /** * Creates an instance of the { @ link # getRowFactoryClassName ( ) row factory } configured for this sequencer . * @ return an implementation of the named class ; never null * @ throws ClassNotFoundException if the the named row factory class cannot be located * @ throws I...
if ( this . rowFactoryClassName == null ) { return new DefaultRowFactory ( ) ; } Class < ? > rowFactoryClass = Class . forName ( this . rowFactoryClassName ) ; return ( RowFactory ) rowFactoryClass . newInstance ( ) ;
public class BarChart { /** * Calculates the bar boundaries based on the bar width and bar margin . * @ param _ Width Calculated bar width * @ param _ Margin Calculated bar margin */ protected void calculateBounds ( float _Width , float _Margin ) { } }
float maxValue = 0 ; int last = 0 ; for ( BarModel model : mData ) { if ( model . getValue ( ) > maxValue ) { maxValue = model . getValue ( ) ; } } int valuePadding = mShowValues ? ( int ) mValuePaint . getTextSize ( ) + mValueDistance : 0 ; float heightMultiplier = ( mGraphHeight - valuePadding ) / maxValue ; for ( Ba...
public class HibernateQueryModelDAO { @ Override public void save ( T object , AccessControlContext accessControlContext ) throws OptimisticLockException , AccessControlException , JeppettoException { } }
ensureAccessControlEnabled ( ) ; try { AccessControlContextOverride . set ( accessControlContext ) ; getCurrentSession ( ) . saveOrUpdate ( object ) ; // flush ( ) here because we want the AccessControlInterceptor to perform its onSave ( ) / onFlushDirty ( ) // checks while the override is in place . flush ( ) ; } catc...
public class ProtoType { /** * Returns the enclosing type , or null if this type is not nested in another type . */ public String enclosingTypeOrPackage ( ) { } }
int dot = string . lastIndexOf ( '.' ) ; return dot == - 1 ? null : string . substring ( 0 , dot ) ;
public class RBACDecorator { /** * Prepares list of operation signatures to pass to { @ link JMXSecurityMBean # canInvoke ( Map ) } * @ param ops * @ return */ @ SuppressWarnings ( "unchecked" ) private List < String > operations ( Map < String , Object > ops ) { } }
List < String > result = new LinkedList < > ( ) ; for ( String operation : ops . keySet ( ) ) { Object operationOrListOfOperations = ops . get ( operation ) ; List < Map < String , Object > > toStringify ; if ( operationOrListOfOperations instanceof List ) { toStringify = ( List < Map < String , Object > > ) operationO...
public class AccumulatorRepository { /** * Reads the config and creates configured accumulators . For now this method is only executed on startup . */ private void readConfig ( ) { } }
AccumulatorsConfig config = MoskitoConfigurationHolder . getConfiguration ( ) . getAccumulatorsConfig ( ) ; AccumulatorConfig [ ] acs = config . getAccumulators ( ) ; if ( acs != null && acs . length > 0 ) { for ( AccumulatorConfig ac : acs ) { AccumulatorDefinition ad = new AccumulatorDefinition ( ) ; ad . setName ( a...
public class Unchecked { /** * Wrap a { @ link CheckedConsumer } in a { @ link Consumer } . * Example : * < code > < pre > * Arrays . asList ( " a " , " b " ) . stream ( ) . forEach ( Unchecked . consumer ( s - > { * if ( s . length ( ) > 10) * throw new Exception ( " Only short strings allowed " ) ; * < / ...
return consumer ( consumer , THROWABLE_TO_RUNTIME_EXCEPTION ) ;
public class PieChart { /** * Kicks off an animation that will result in the pointer being centered in the * pie slice of the currently selected item . */ private void centerOnCurrentItem ( ) { } }
if ( ! mPieData . isEmpty ( ) ) { PieModel current = mPieData . get ( getCurrentItem ( ) ) ; int targetAngle ; if ( mOpenClockwise ) { targetAngle = ( mIndicatorAngle - current . getStartAngle ( ) ) - ( ( current . getEndAngle ( ) - current . getStartAngle ( ) ) / 2 ) ; if ( targetAngle < 0 && mPieRotation > 0 ) target...
public class CloudControlClientSupport { /** * instantiateWebClient . * @ param targetUrl * a { @ link java . lang . String } object . * @ return a { @ link org . apache . cxf . jaxrs . client . WebClient } object . */ protected WebClient instantiateWebClient ( String targetUrl ) { } }
WebClient webClient = WebClient . create ( targetUrl ) . type ( "application/x-www-form-urlencoded" ) . accept ( MediaType . TEXT_PLAIN ) . accept ( MediaType . APPLICATION_JSON ) ; webClient = Header . setHeader ( webClient ) ; HTTPConduit conduit = WebClient . getConfig ( webClient ) . getHttpConduit ( ) ; TLSClientP...
public class Configs { /** * < p > Set self define system configs . < / p > * Can use self system configs path or self class extends { @ link OneProperties } . * @ param systemConfigAbsoluteClassPath self system configs absolute class path . * Can be null , if null means use * default path " { @ value # DEFAULT...
if ( systemConfigsObj != null ) { Configs . systemConfigs = systemConfigsObj ; } if ( systemConfigAbsoluteClassPath != null ) { Configs . systemConfigAbsoluteClassPath = systemConfigAbsoluteClassPath ; Configs . systemConfigs . initConfigs ( Configs . systemConfigAbsoluteClassPath ) ; } else if ( systemConfigsObj != nu...
public class BaseCasRegisteredServiceStreamPublisher { /** * Publish internal . * @ param service the service * @ param event the event */ protected void publishInternal ( final RegisteredService service , final ApplicationEvent event ) { } }
if ( event instanceof CasRegisteredServiceDeletedEvent ) { handleCasRegisteredServiceDeletedEvent ( service , event ) ; return ; } if ( event instanceof CasRegisteredServiceSavedEvent || event instanceof CasRegisteredServiceLoadedEvent ) { handleCasRegisteredServiceUpdateEvents ( service , event ) ; return ; } LOGGER ....
public class Reflect { /** * Note : Two methods which are equally specific should not be allowed by * the Java compiler . In this case BeanShell currently chooses the first * one it finds . We could add a test for this case here ( I believe ) by * adding another isSignatureAssignable ( ) in the other direction be...
for ( int round = Types . FIRST_ROUND_ASSIGNABLE ; round <= Types . LAST_ROUND_ASSIGNABLE ; round ++ ) { Class < ? > [ ] bestMatch = null ; int bestMatchIndex = - 1 ; for ( int i = 0 ; i < candidates . length ; i ++ ) { Class < ? > [ ] targetMatch = candidates [ i ] ; if ( null != bestMatch && Types . areSignaturesEqua...
public class LoopBarView { /** * You can setup { @ code { @ link LoopBarView # mOuterAdapter } } through { @ link ViewPager } adapter . * Your { @ link ViewPager } adapter must implement { @ link ILoopBarPagerAdapter } otherwise - the icons will not be shown * @ param viewPager - viewPager , which must have { @ lin...
PagerAdapter pagerAdapter = viewPager . getAdapter ( ) ; List < ICategoryItem > categoryItems = new ArrayList < > ( pagerAdapter . getCount ( ) ) ; ILoopBarPagerAdapter loopBarPagerAdapter = pagerAdapter instanceof ILoopBarPagerAdapter ? ( ILoopBarPagerAdapter ) pagerAdapter : null ; for ( int i = 0 , size = pagerAdapt...
public class DefaultGroupManager { /** * Lists objects in the group . */ private void doList ( final Message < JsonObject > message ) { } }
String type = message . body ( ) . getString ( "type" ) ; if ( type != null ) { switch ( type ) { case "node" : doListNode ( message ) ; break ; default : message . reply ( new JsonObject ( ) . putString ( "status" , "error" ) . putString ( "message" , "Invalid type specified." ) ) ; break ; } } else { message . reply ...
public class GeneratedDConnectionDaoImpl { /** * query - by method for field userRoles * @ param userRoles the specified attribute * @ return an Iterable of DConnections for the specified userRoles */ public Iterable < DConnection > queryByUserRoles ( java . lang . String userRoles ) { } }
return queryByField ( null , DConnectionMapper . Field . USERROLES . getFieldName ( ) , userRoles ) ;
public class ClassWriterImpl { /** * Get summary links for navigation bar . * @ return the content tree for the navigation summary links */ protected Content getNavSummaryLinks ( ) throws Exception { } }
Content li = HtmlTree . LI ( summaryLabel ) ; li . addContent ( getSpace ( ) ) ; Content ulNav = HtmlTree . UL ( HtmlStyle . subNavList , li ) ; MemberSummaryBuilder memberSummaryBuilder = ( MemberSummaryBuilder ) configuration . getBuilderFactory ( ) . getMemberSummaryBuilder ( this ) ; String [ ] navLinkLabels = new ...
public class EntryListenerConfig { /** * This method provides a workaround by converting a MapListener to EntryListener * when it is added via EntryListenerConfig object . * With this method , we are trying to fix two problems : * First , if we do not introduce the conversion in this method , { @ link EntryListen...
if ( implementation instanceof EntryListener ) { return ( EventListener ) implementation ; } if ( implementation instanceof MapListener ) { return new MapListenerToEntryListenerAdapter ( ( MapListener ) implementation ) ; } throw new IllegalArgumentException ( implementation + " is not an expected EventListener impleme...
public class OpsAgent { /** * Send the final response stored in the PendingOpsRequest to the client which initiated the * action . Will be called automagically after aggregating cluster - wide responses , but may * be called directly by subclasses if necessary . */ protected void sendClientResponse ( PendingOpsRequ...
byte statusCode = ClientResponse . SUCCESS ; String statusString = null ; /* * It is possible not to receive a table response if a feature is not enabled */ // All of the null / empty table handling / detecting / generation sucks . Just making it // work for now , not making it pretty . - - izzy VoltTable responseTable...
public class NameIndentConverter { /** * GetString Method . */ public String getString ( ) { } }
String string = super . getString ( ) ; int iIndent = ( int ) m_convIndent . getValue ( ) ; string = gstrSpaces . substring ( 0 , iIndent * m_iIndentAmount ) + string ; return string ;
public class KeyValueAuthHandler { /** * Once the channel is marked as active , the SASL negotiation is started . * @ param ctx the handler context . * @ throws Exception if something goes wrong during negotiation . */ @ Override public void channelActive ( final ChannelHandlerContext ctx ) throws Exception { } }
this . ctx = ctx ; ctx . writeAndFlush ( new DefaultBinaryMemcacheRequest ( ) . setOpcode ( SASL_LIST_MECHS_OPCODE ) ) ;
public class OAuth1 { /** * Generates a base URI from a given URL . The base URI consists of the * protocol , the host , and also the port if its not the default port * for the given protocol . * @ param url the URL from which the URI should be generated * @ return the base URI */ private static String makeBase...
String r = url . getProtocol ( ) . toLowerCase ( ) + "://" + url . getHost ( ) . toLowerCase ( ) ; if ( ( url . getProtocol ( ) . equalsIgnoreCase ( "http" ) && url . getPort ( ) != - 1 && url . getPort ( ) != 80 ) || ( url . getProtocol ( ) . equalsIgnoreCase ( "https" ) && url . getPort ( ) != - 1 && url . getPort ( ...
public class ClusterChain { /** * Sets the length of this { @ code ClusterChain } in bytes . Because a * { @ code ClusterChain } can only contain full clusters , the new size * will always be a multiple of the cluster size . * @ param size the desired number of bytes the can be stored in * this { @ code Cluster...
final long nrClusters = ( ( size + clusterSize - 1 ) / clusterSize ) ; if ( nrClusters > Integer . MAX_VALUE ) throw new IOException ( "too many clusters" ) ; setChainLength ( ( int ) nrClusters ) ; return clusterSize * nrClusters ;
public class AWSMediaLiveClient { /** * Purchase an offering and create a reservation . * @ param purchaseOfferingRequest * Placeholder documentation for PurchaseOfferingRequest * @ return Result of the PurchaseOffering operation returned by the service . * @ throws BadRequestException * This request was inva...
request = beforeClientExecution ( request ) ; return executePurchaseOffering ( request ) ;
public class BufferedReader { /** * Fills the input buffer , taking the mark into account if it is valid . */ private void fill ( ) throws IOException { } }
int dst ; if ( markedChar <= UNMARKED ) { /* No mark */ dst = 0 ; } else { /* Marked */ int delta = nextChar - markedChar ; if ( delta >= readAheadLimit ) { /* Gone past read - ahead limit : Invalidate mark */ markedChar = INVALIDATED ; readAheadLimit = 0 ; dst = 0 ; } else { if ( readAheadLimit <= cb . length ) { /* S...
public class SjavacServer { /** * Acquire the port file . Synchronized since several threads inside an smart javac wrapper client acquires the same port file at the same time . */ public static synchronized PortFile getPortFile ( String filename ) { } }
if ( allPortFiles == null ) { allPortFiles = new HashMap < > ( ) ; } PortFile pf = allPortFiles . get ( filename ) ; // Port file known . Does it still exist ? if ( pf != null ) { try { if ( ! pf . exists ( ) ) pf = null ; } catch ( IOException ioex ) { ioex . printStackTrace ( ) ; } } if ( pf == null ) { pf = new Port...
public class FractionNumber { /** * 分母の最大値を指定した分数を作成する 。 * @ param value * @ param maxDenom 分母の最大値 。 * @ param wholeType ' true ' のとき帯分数として作成する 。 ' false ' のとき仮分数として作成する 。 * @ return */ public static FractionNumber createMaxDenominator ( final double value , int maxDenom , boolean wholeType ) { } }
final FractionNumber fractionNumber = new FractionNumber ( value ) ; fractionNumber . wholeType = wholeType ; final SimpleFraction fraction = SimpleFraction . createFractionMaxDenominator ( Math . abs ( value ) , maxDenom ) ; setupFractionPart ( fraction , fractionNumber ) ; return fractionNumber ;
public class AnnotationsUtils { /** * Retrieve the name * If the item is a reference and name attribute is not specified then returns the simple name of the reference . * @ param annotation item * @ return name of the item */ public static String getNameOfReferenceableItem ( Object annotation ) { } }
if ( annotation == null ) { return "" ; } String name = "" , ref = "" ; if ( annotation instanceof org . eclipse . microprofile . openapi . annotations . headers . Header ) { name = ( ( org . eclipse . microprofile . openapi . annotations . headers . Header ) annotation ) . name ( ) ; ref = ( ( org . eclipse . micropro...
public class LayerFailureMarshaller { /** * Marshall the given parameter object . */ public void marshall ( LayerFailure layerFailure , ProtocolMarshaller protocolMarshaller ) { } }
if ( layerFailure == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( layerFailure . getLayerDigest ( ) , LAYERDIGEST_BINDING ) ; protocolMarshaller . marshall ( layerFailure . getFailureCode ( ) , FAILURECODE_BINDING ) ; protocolMarshaller ....