signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class Log4jAppender { /** * Activate the options set using < tt > setPort ( ) < / tt > * and < tt > setHostname ( ) < / tt > * @ throws FlumeException if the < tt > hostname < / tt > and * < tt > port < / tt > combination is invalid . */ @ Override public void activateOptions ( ) throws FlumeException { } ...
Properties props = new Properties ( ) ; props . setProperty ( RpcClientConfigurationConstants . CONFIG_HOSTS , "h1" ) ; props . setProperty ( RpcClientConfigurationConstants . CONFIG_HOSTS_PREFIX + "h1" , hostname + ":" + port ) ; props . setProperty ( RpcClientConfigurationConstants . CONFIG_CONNECT_TIMEOUT , String ....
public class RemoteSLF4j { /** * Logs a Log Record which has been serialized using GWT RPC on the server . * @ return either an error message , or null if logging is successful . */ public final String logOnServer ( LogRecord lr ) { } }
String strongName = getPermutationStrongName ( ) ; /* RemoteLoggingServiceUtil . logOnServer ( lr , strongName , deobfuscator , loggerNameOverride ) ; */ logger . error ( lr . getMessage ( ) ) ; return null ;
public class CmsSearchResultsList { /** * Generates the dialog starting html code . < p > * @ return html code */ @ Override protected String defaultActionHtmlStart ( ) { } }
StringBuffer result = new StringBuffer ( 2048 ) ; result . append ( htmlStart ( null ) ) ; result . append ( getList ( ) . listJs ( ) ) ; result . append ( CmsListExplorerColumn . getExplorerStyleDef ( ) ) ; result . append ( "<script language='JavaScript'>\n" ) ; result . append ( new CmsExplorer ( getJsp ( ) ) . getI...
public class GeneralValidator { /** * Processes the output of all data providers , all at once , with each rule . */ @ SuppressWarnings ( "unchecked" ) // NOSONAR ( Avoid Duplicate Literals ) private void processAllDataProvidersWithEachRule ( ) { } }
// For each data provider List < Object > transformedDataProvidersOutput = new ArrayList < Object > ( dataProviders . size ( ) ) ; for ( DataProvider < DPO > dataProvider : dataProviders ) { // Get the data provider output Object transformedOutput = dataProvider . getData ( ) ; // Transform the data provider output if ...
public class MPXJFormats { /** * Called to update the cached formats when something changes . */ public void update ( ) { } }
ProjectProperties properties = m_projectFile . getProjectProperties ( ) ; char decimalSeparator = properties . getDecimalSeparator ( ) ; char thousandsSeparator = properties . getThousandsSeparator ( ) ; m_unitsDecimalFormat . applyPattern ( "#.##" , null , decimalSeparator , thousandsSeparator ) ; m_decimalFormat . ap...
public class KeyStoreSpi { /** * Gets a { @ code KeyStore . Entry } for the specified alias * with the specified protection parameter . * @ param alias get the { @ code KeyStore . Entry } for this alias * @ param protParam the { @ code ProtectionParameter } * used to protect the { @ code Entry } , * which may...
if ( ! engineContainsAlias ( alias ) ) { return null ; } if ( protParam != null && ! ( protParam instanceof KeyStore . PasswordProtection ) ) { throw new UnsupportedOperationException ( ) ; } if ( engineIsCertificateEntry ( alias ) ) { if ( protParam == null ) { return new KeyStore . TrustedCertificateEntry ( engineGet...
public class MetadataBuilder { /** * Add to the { @ link Set } of tags by which this { @ link RulesetMetadata } is classified . * Inherits from { @ link RulesetMetadata # getTags ( ) } if available . */ public MetadataBuilder addTags ( String tag , String ... tags ) { } }
if ( ! StringUtils . isBlank ( tag ) ) this . tags . add ( tag . trim ( ) ) ; if ( tags != null ) { for ( String t : tags ) { if ( ! StringUtils . isBlank ( t ) ) this . tags . add ( t . trim ( ) ) ; } } return this ;
public class SonarHLAFactory { /** * Create an instance of an { @ link ISonarExtractor } type . * @ param hostURL The host URL pointing to SonarQube . * @ param userName The user name . * @ param password The password for the given user . Beware that it will not be handled in a safe way . So better use a kind of ...
return new DefaultSonarExtractor ( hostURL , userName , password ) ;
public class NewWordDiscover { /** * 提取词语 * @ param reader 大文本 * @ param size 需要提取词语的数量 * @ return 一个词语列表 */ public List < WordInfo > discover ( BufferedReader reader , int size ) throws IOException { } }
String doc ; Map < String , WordInfo > word_cands = new TreeMap < String , WordInfo > ( ) ; int totalLength = 0 ; Pattern delimiter = Pattern . compile ( "[\\s\\d,.<>/?:;'\"\\[\\]{}()\\|~!@#$%^&*\\-_=+,。《》、?:;“”‘’{}【】()…¥!—┄-]+" ) ; while ( ( doc = reader . readLine ( ) ) != null ) { doc = delimiter . matcher ( doc ) ....
public class SubscriptionsApi { /** * Validate Subscription * Validate Subscription * @ param subId Subscription ID . ( required ) * @ param validationCallbackRequest Subscription validation callback request ( required ) * @ return ApiResponse & lt ; SubscriptionEnvelope & gt ; * @ throws ApiException If fail...
com . squareup . okhttp . Call call = validateSubscriptionValidateBeforeCall ( subId , validationCallbackRequest , null , null ) ; Type localVarReturnType = new TypeToken < SubscriptionEnvelope > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ;
public class NetworkMonitor { /** * Returns WiFi State Requires ACCESS _ NETWORK _ SATE , READ _ PHONE _ STATE * permissions < br > * @ return State */ public State getWifiState ( ) { } }
if ( connMan == null ) { connMan = ( ConnectivityManager ) context . getSystemService ( Context . CONNECTIVITY_SERVICE ) ; } NetworkInfo wifiNetworkInfo = connMan . getNetworkInfo ( TYPE_WIFI ) ; if ( wifiNetworkInfo == null ) { return State . UNKNOWN ; } return wifiNetworkInfo . getState ( ) ;
public class RowData { /** * 正規表現に一致する列に該当するセルの値を返します 。 * @ param regex * 正規表現 * @ return 正規表現に一致する列に該当するセルの値 */ public List < String > getCellValues ( String regex , List < ReplacePattern > replaces , boolean excludeEmptyValue ) { } }
List < String > valueList = new ArrayList < String > ( ) ; if ( StringUtils . isEmpty ( regex ) ) { LOG . warn ( "列名が空であるセル値は格納できません。" ) ; return valueList ; } Pattern pattern = Pattern . compile ( regex ) ; for ( Entry < String , String > entry : getData ( ) . entrySet ( ) ) { if ( pattern . matcher ( entry . getKey (...
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcBuildingElementPartType ( ) { } }
if ( ifcBuildingElementPartTypeEClass == null ) { ifcBuildingElementPartTypeEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 60 ) ; } return ifcBuildingElementPartTypeEClass ;
public class RiakIndex { /** * Add a asSet of values to this secondary index . * @ param values a collection of values to add * @ return a reference to this object */ public final RiakIndex < T > add ( Collection < T > values ) { } }
for ( T value : values ) { add ( value ) ; } return this ;
public class SchemaBuilder { /** * Shortcut for { @ link # alterType ( CqlIdentifier ) alterType ( CqlIdentifier . fromCql ( typeName ) } */ @ NonNull public static AlterTypeStart alterType ( @ NonNull String typeName ) { } }
return alterType ( CqlIdentifier . fromCql ( typeName ) ) ;
public class Ci_HelpStg { /** * Processes general help with no specific command requested . * @ param info the info object to add help to */ protected void generalHelp ( IsInfoSetFT info ) { } }
// collect all commands belonging to a particular category String defKey = "__standard" ; Map < String , TreeMap < String , SkbShellCommand > > cat2Cmd = new TreeMap < > ( ) ; for ( CommandInterpreter ci : this . skbShell . getCommandMap ( ) . values ( ) ) { for ( SkbShellCommand ssc : ci . getCommands ( ) . values ( )...
public class TimeOfDay { /** * Returns a copy of this time with the second of minute field updated . * TimeOfDay is immutable , so there are no set methods . * Instead , this method returns a new instance with the value of * second of minute changed . * @ param second the second of minute to set * @ return a ...
int [ ] newValues = getValues ( ) ; newValues = getChronology ( ) . secondOfMinute ( ) . set ( this , SECOND_OF_MINUTE , newValues , second ) ; return new TimeOfDay ( this , newValues ) ;
public class WisdomExecutor { /** * Waits for a file to be created . * @ param file the file * @ return { @ literal true } if the file was created , { @ literal false } otherwise */ public static boolean waitForFile ( File file ) { } }
if ( file . isFile ( ) ) { return true ; } else { // Start waiting 10 seconds maximum long timeout = System . currentTimeMillis ( ) + FILE_WAIT_TIMEOUT ; while ( System . currentTimeMillis ( ) <= timeout ) { sleepQuietly ( 10 ) ; if ( file . isFile ( ) ) { return true ; } } } // Timeout reached return false ;
public class XIfExpressionImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public NotificationChain basicSetIf ( XExpression newIf , NotificationChain msgs ) { } }
XExpression oldIf = if_ ; if_ = newIf ; if ( eNotificationRequired ( ) ) { ENotificationImpl notification = new ENotificationImpl ( this , Notification . SET , XbasePackage . XIF_EXPRESSION__IF , oldIf , newIf ) ; if ( msgs == null ) msgs = notification ; else msgs . add ( notification ) ; } return msgs ;
public class BoxFile { /** * Adds a new task to this file . The task can have an optional message to include , and a due date . * @ param action the action the task assignee will be prompted to do . * @ param message an optional message to include with the task . * @ param dueAt the day at which this task is due ...
JsonObject itemJSON = new JsonObject ( ) ; itemJSON . add ( "type" , "file" ) ; itemJSON . add ( "id" , this . getID ( ) ) ; JsonObject requestJSON = new JsonObject ( ) ; requestJSON . add ( "item" , itemJSON ) ; requestJSON . add ( "action" , action . toJSONString ( ) ) ; if ( message != null && ! message . isEmpty ( ...
public class PredicateOptimisations { /** * Checks if two predicates are identical or opposite . * @ param isFirstNegated is first predicate negated ? * @ param first the first predicate expression * @ param isSecondNegated is second predicate negated ? * @ param second the second predicate expression * @ ret...
if ( first . getClass ( ) == second . getClass ( ) ) { if ( first instanceof ComparisonExpr ) { ComparisonExpr comparison1 = ( ComparisonExpr ) first ; ComparisonExpr comparison2 = ( ComparisonExpr ) second ; assert comparison1 . getLeftChild ( ) instanceof PropertyValueExpr ; assert comparison1 . getRightChild ( ) ins...
public class LegacySpy { /** * Alias for { @ link # expectBetween ( int , int , Threads , Query ) } with arguments 0 , { @ code allowedStatements } , { @ link Threads # CURRENT } , { @ code queryType } * @ since 2.2 */ @ Deprecated public C expectAtMost ( int allowedStatements , Query query ) { } }
return expect ( SqlQueries . maxQueries ( allowedStatements ) . type ( adapter ( query ) ) ) ;
public class TraceNLS { /** * Return the Base ( English ) resource bundle since we do not explicitly ship the _ en bundle . * @ param aClass * the class utilizing the resource bundle * @ param aBundleName * the name of the resource bundle * @ return ResourceBundle * the base resource bundle */ public static...
ResourceBundle bundle = null ; final Class < ? > clazz = aClass ; final String bundleName = aBundleName ; // Need a special classloader trick to load the ENGLISH messages ( from the base bundle ) . // See BaseResourceBundleClassLoader for more info . ClassLoader cl = AccessController . doPrivileged ( new PrivilegedActi...
public class AmazonEC2Client { /** * Creates a new version for a launch template . You can specify an existing version of launch template from which to * base the new version . * Launch template versions are numbered in the order in which they are created . You cannot specify , change , or * replace the numbering...
request = beforeClientExecution ( request ) ; return executeCreateLaunchTemplateVersion ( request ) ;
public class ResponseHelperSettings { /** * Set the default expiration settings to be used for objects that should use * HTTP caching * @ param nExpirationSeconds * The number of seconds for which the response should be cached * @ return { @ link EChange } */ @ Nonnull public static EChange setExpirationSeconds...
return s_aRWLock . writeLocked ( ( ) -> { if ( s_nExpirationSeconds == nExpirationSeconds ) return EChange . UNCHANGED ; s_nExpirationSeconds = nExpirationSeconds ; LOGGER . info ( "ResponseHelper expirationSeconds=" + nExpirationSeconds ) ; return EChange . CHANGED ; } ) ;
public class BinomialBoundsN { /** * a Frequentist confidence interval based on the tails of the Binomial distribution . */ private static double computeApproxBinoUB ( final long numSamplesI , final double theta , final int numSDev ) { } }
if ( theta == 1.0 ) { return ( numSamplesI ) ; } else if ( numSamplesI == 0 ) { final double delta = deltaOfNumSDev [ numSDev ] ; final double rawUB = ( Math . log ( delta ) ) / ( Math . log ( 1.0 - theta ) ) ; return ( Math . ceil ( rawUB ) ) ; // round up } else if ( numSamplesI > 120 ) { // plenty of samples , so ga...
public class GridScreen { /** * Read the current file in the header record given the current detail record . */ public void syncHeaderToMain ( ) { } }
super . syncHeaderToMain ( ) ; // NOTE ! This logic is VERY similar to the logic in getScreenURL , so change both . FileListener listener = this . getMainRecord ( ) . getListener ( ) ; while ( listener != null ) { if ( listener instanceof FileFilter ) { for ( int iIndex = 0 ; iIndex < 4 ; iIndex ++ ) { BaseField field ...
public class DynamicPropertiesRule { /** * This rule adds dynamic getter , setter and builder methods based on the properties and additional properties * defined in a schema . * If accessors are being generated , then methods for getting and setting properties by name will be added . These * methods first attempt...
if ( ! ruleFactory . getGenerationConfig ( ) . isIncludeDynamicAccessors ( ) || ( ! ruleFactory . getGenerationConfig ( ) . isIncludeDynamicSetters ( ) && ! ruleFactory . getGenerationConfig ( ) . isIncludeDynamicGetters ( ) && ! ruleFactory . getGenerationConfig ( ) . isIncludeDynamicBuilders ( ) ) ) { return jclass ;...
public class RethinkDBClient { /** * ( non - Javadoc ) * @ see com . impetus . kundera . client . ClientBase # onPersist ( com . impetus . kundera . * metadata . model . EntityMetadata , java . lang . Object , java . lang . Object , * java . util . List ) */ @ Override protected void onPersist ( EntityMetadata en...
if ( ! isUpdate ) { r . db ( entityMetadata . getSchema ( ) ) . table ( entityMetadata . getTableName ( ) ) . insert ( populateRmap ( entityMetadata , entity ) ) . run ( connection ) ; } else { r . db ( entityMetadata . getSchema ( ) ) . table ( entityMetadata . getTableName ( ) ) . update ( populateRmap ( entityMetada...
public class MandatoryWarningHandler { /** * Reports a mandatory warning to the log . If mandatory warnings * are not being enforced , treat this as an ordinary warning . */ private void logMandatoryWarning ( DiagnosticPosition pos , String msg , Object ... args ) { } }
// Note : the following log methods are safe if lintCategory is null . if ( enforceMandatory ) log . mandatoryWarning ( lintCategory , pos , msg , args ) ; else log . warning ( lintCategory , pos , msg , args ) ;
public class FrutillaRule { /** * Starts writing sentences . This is the entry point of the use case . < br / > * To add more sentences to the entry point use < br / > * { @ link org . frutilla . FrutillaParser . Given # and ( String ) } < br / > * { @ link org . frutilla . FrutillaParser . Given # but ( String )...
mRoot = FrutillaParser . given ( text ) ; return ( FrutillaParser . Given ) mRoot ;
public class MedicationDispense { /** * syntactic sugar */ public MedicationDispenseDosageInstructionComponent addDosageInstruction ( ) { } }
MedicationDispenseDosageInstructionComponent t = new MedicationDispenseDosageInstructionComponent ( ) ; if ( this . dosageInstruction == null ) this . dosageInstruction = new ArrayList < MedicationDispenseDosageInstructionComponent > ( ) ; this . dosageInstruction . add ( t ) ; return t ;
public class SyntheticStorableReferenceAccess { /** * Sets all the primary key properties of the given master , using the * applicable properties of the given reference . * @ param reference source of property values * @ param master master whose primary key properties will be set */ public void copyToMasterPrima...
try { mCopyToMasterPkMethod . invoke ( reference , master ) ; } catch ( Exception e ) { ThrowUnchecked . fireFirstDeclaredCause ( e , FetchException . class ) ; }
public class ApplicationDescriptorImpl { /** * If not already created , a new < code > message - destination < / code > element will be created and returned . * Otherwise , the first existing < code > message - destination < / code > element will be returned . * @ return the instance defined for the element < code ...
List < Node > nodeList = model . get ( "message-destination" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new MessageDestinationTypeImpl < ApplicationDescriptor > ( this , "message-destination" , model , nodeList . get ( 0 ) ) ; } return createMessageDestination ( ) ;
public class ThreadUtils { /** * Determines whether the specified Thread is in a blocked state . A Thread may be currently blocked waiting on a lock * or performing some IO operation . * @ param thread the Thread to evaluate . * @ return a boolean valued indicating whether he specified Thread is blocked . * @ s...
return ( thread != null && Thread . State . BLOCKED . equals ( thread . getState ( ) ) ) ;
public class NodeWriteTrx { /** * Adapting the structure with a rolling hash for all ancestors only with * insert . * @ throws TTIOException * if anything weird happened */ private void rollingAdd ( ) throws TTException { } }
// start with hash to add final ITreeData startNode = mDelegate . getCurrentNode ( ) ; long hashToAdd = startNode . hashCode ( ) ; long newHash = 0 ; long possibleOldHash = 0 ; // go the path to the root do { synchronized ( mDelegate . getCurrentNode ( ) ) { getPtx ( ) . getData ( mDelegate . getCurrentNode ( ) . getDa...
public class UserDetailsCache { /** * Gets the cached UserDetails for the given username . * Similar to { @ link # loadUserByUsername ( String ) } except it doesn ' t perform the actual lookup if there is a cache miss . * @ param idOrFullName the username * @ return { @ code null } if the cache doesn ' t contain ...
Boolean exists = existenceCache . getIfPresent ( idOrFullName ) ; if ( exists != null && ! exists ) { throw new UserMayOrMayNotExistException ( String . format ( "\"%s\" does not exist" , idOrFullName ) ) ; } else { return detailsCache . getIfPresent ( idOrFullName ) ; }
public class PresentationSpaceResetMixingImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public void setBgMxFlag ( Integer newBgMxFlag ) { } }
Integer oldBgMxFlag = bgMxFlag ; bgMxFlag = newBgMxFlag ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . PRESENTATION_SPACE_RESET_MIXING__BG_MX_FLAG , oldBgMxFlag , bgMxFlag ) ) ;
public class DataStoreAdapterException { /** * Utility method that preserves existing behavior of appending SQL State / error code to a translated message . */ private static final String formatMessage ( String resourceKey , Throwable exception , Object ... formatArguments ) { } }
String message = Tr . formatMessage ( tc , resourceKey , formatArguments ) ; if ( exception instanceof SQLException ) { SQLException sqlX = ( SQLException ) exception ; StringBuilder st = new StringBuilder ( message . length ( ) + 40 ) ; st . append ( message ) . append ( " with SQL State : " ) . append ( sqlX . getSQL...
public class RequestUtil { /** * 判断IP是否合法 . * @ param ip * @ return */ public static boolean isValidIp ( final String ip ) { } }
if ( ip == null || ip . length ( ) == 0 ) { return false ; } Matcher m = IS_VALID_IP_PATTERN . matcher ( ip ) ; return m . find ( ) ; // return false ; // return true ;
public class SiteParameters { /** * Tells whether or not this site has any parameters ( cookies , query , form * parameters , or response header fields ) . * @ return { @ code true } if this site has parameters , { @ code false } * otherwise . * @ since 2.5.0 */ public boolean hasParams ( ) { } }
return ! cookieParams . isEmpty ( ) || ! urlParams . isEmpty ( ) || ! formParams . isEmpty ( ) || ! headerParams . isEmpty ( ) || ! multipartParams . isEmpty ( ) ;
public class AbstractXmlReader { /** * Test an event to see whether it is an end tag with the expected name . */ protected boolean isEndTagEvent ( XMLEvent event , QName tagName ) { } }
return event . isEndElement ( ) && event . asEndElement ( ) . getName ( ) . equals ( tagName ) ;
public class SubsystemFeatureDefinitionImpl { /** * ( non - Javadoc ) * @ see com . ibm . wsspi . kernel . feature . LibertyFeature # getBundles ( ) */ @ Override public Collection < Bundle > getBundles ( ) { } }
if ( mfDetails == null ) throw new IllegalStateException ( "Method called outside of provisioining operation or without a registered service" ) ; Collection < Bundle > bundles = featureBundles . get ( ) ; if ( bundles == null ) { bundles = new ArrayList < Bundle > ( ) ; Collection < FeatureResource > bundlesInFeature =...
public class EdgeInfo { /** * fast access method to avoid creating a new instance of an EdgeInfo */ public static String getVertexId ( Value value ) { } }
byte [ ] buffer = value . get ( ) ; int offset = 0 ; // skip label int strLen = readInt ( buffer , offset ) ; offset += 4 ; if ( strLen > 0 ) { offset += strLen ; } strLen = readInt ( buffer , offset ) ; return readString ( buffer , offset , strLen ) ;
public class Preferences { /** * load properties file */ public static void loadResourcesDefaults ( Properties defaultProperties , String propertiesFileName ) throws IOException { } }
final String resource = Setup . TEMPLATE_RESOURCES_PATH + "/" + propertiesFileName ; InputStream is = Preferences . class . getClassLoader ( ) . getResourceAsStream ( resource ) ; if ( null == is ) { throw new IOException ( "Unable to load resource: " + resource ) ; } try { defaultProperties . load ( is ) ; } finally {...
public class Matrix4f { /** * Set the value of the matrix element at column 0 and row 0. * @ param m00 * the new value * @ return this */ public Matrix4f m00 ( float m00 ) { } }
this . m00 = m00 ; properties &= ~ PROPERTY_ORTHONORMAL ; if ( m00 != 1.0f ) properties &= ~ ( PROPERTY_IDENTITY | PROPERTY_TRANSLATION ) ; return this ;
public class SugarDataSource { /** * Method that list all elements . It run a SugarRecord . listAll but it ' s code is performed asynchronously * with the usage of Futures and callbacks . * @ param orderBy the way you want to order the objects you get * @ param successCallback the callback that is performed if th...
checkNotNull ( successCallback ) ; checkNotNull ( errorCallback ) ; final Callable < List < T > > call = new Callable < List < T > > ( ) { @ Override public List < T > call ( ) throws Exception { return SugarRecord . listAll ( getSugarClass ( ) , orderBy ) ; } } ; final Future < List < T > > future = doInBackground ( c...
public class AfplibFactoryImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public SIADIRCTION createSIADIRCTIONFromString ( EDataType eDataType , String initialValue ) { } }
SIADIRCTION result = SIADIRCTION . get ( initialValue ) ; if ( result == null ) throw new IllegalArgumentException ( "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType . getName ( ) + "'" ) ; return result ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link LogicType } { @ code > } } */ @ XmlElementDecl ( namespace = "http://www.w3.org/1998/Math/MathML" , name = "or" ) public JAXBElement < LogicType > createOr ( LogicType value ) { } }
return new JAXBElement < LogicType > ( _Or_QNAME , LogicType . class , null , value ) ;
public class AbstractIntIntMap { /** * Fills all keys contained in the receiver into the specified list . * Fills the list , starting at index 0. * After this call returns the specified list has a new size that equals < tt > this . size ( ) < / tt > . * Iteration order is guaranteed to be < i > identical < / i > ...
list . clear ( ) ; forEachKey ( new IntProcedure ( ) { public boolean apply ( int key ) { list . add ( key ) ; return true ; } } ) ;
public class LREnvelope { /** * Builds and returns a map of the envelope data including any signing data , suitable for sending to a Learning Registry node * @ return map of the envelope data , including signing data */ protected Map < String , Object > getSendableData ( ) { } }
Map < String , Object > doc = new LinkedHashMap < String , Object > ( ) ; MapUtil . put ( doc , docTypeField , docType ) ; MapUtil . put ( doc , docVersionField , docVersion ) ; MapUtil . put ( doc , activeField , true ) ; MapUtil . put ( doc , resourceDataTypeField , resourceDataType ) ; Map < String , Object > docId ...
public class UpdateSpecifier { /** * Returns the actions required during a document update to modify * a target document so that it become equal to a source document . * @ param sourceDoc Source document * @ param documentDigest Digest computed for source document * @ param targetDoc Document currently on the t...
UpdateSpecifier result = new UpdateSpecifier ( ) ; // Verify main document if ( schedule == DocumentUpdateProcess . Schedule . UPDATE_FORCED ) { logger . debug ( "Update forced by schedule. Mark document modified" ) ; result . setDocumentModified ( true ) ; } else if ( null == targetDoc ) { // Document creation logger ...
public class InferJSDocInfo { /** * Nullsafe wrapper for { @ code JSType # dereference ( ) } . */ private static ObjectType dereferenced ( @ Nullable JSType type ) { } }
return type == null ? null : type . dereference ( ) ;
public class LocalGridManager { /** * This method is responsible for spawning a local hub for supporting local executions * @ param testSession * - A { @ link AbstractTestSession } that represents the type of test session to start ( mobile or web ) . */ public static synchronized void spawnLocalHub ( AbstractTestSe...
LOGGER . entering ( testSession . getPlatform ( ) ) ; if ( ! isRunLocally ( ) ) { LOGGER . exiting ( ) ; return ; } setupToBootList ( ) ; for ( LocalServerComponent eachItem : toBoot ) { try { eachItem . boot ( testSession ) ; } catch ( Exception e ) { // NOSONAR // If either the Grid or the Node failed to start at the...
public class Require { /** * Throws an { @ link IndexOutOfBoundsException } if { @ code sliceFrom } or * { @ code sliceLength } is negative or the sum of both is greater than * { @ code arrayLength } . Note that this means that a slice of length zero * starting at array length is a valid slice . * @ param slice...
if ( sliceFrom < 0 || sliceLength < 0 ) { throw new IndexOutOfBoundsException ( message ) ; } if ( sliceFrom + sliceLength > arrayLength ) { throw new IndexOutOfBoundsException ( message ) ; }
public class GetDomainSuggestionsResult { /** * A list of possible domain names . If you specified < code > true < / code > for < code > OnlyAvailable < / code > in the * request , the list contains only domains that are available for registration . * @ param suggestionsList * A list of possible domain names . If...
if ( suggestionsList == null ) { this . suggestionsList = null ; return ; } this . suggestionsList = new com . amazonaws . internal . SdkInternalList < DomainSuggestion > ( suggestionsList ) ;
public class ZipFileContainer { /** * TODO : Move this to utilities . */ @ Trivial @ FFDCIgnore ( PrivilegedActionException . class ) private static String getCanonicalPath ( final File file ) throws IOException { } }
if ( System . getSecurityManager ( ) == null ) { return file . getCanonicalPath ( ) ; // throws IOException } else { try { return AccessController . doPrivileged ( new PrivilegedExceptionAction < String > ( ) { @ Override public String run ( ) throws IOException { return file . getCanonicalPath ( ) ; // throws IOExcept...
public class BoxApiUser { /** * Gets a request that gets information about the current user * @ return request to get information about the current user */ public BoxRequestsUser . GetUserInfo getCurrentUserInfoRequest ( ) { } }
BoxRequestsUser . GetUserInfo request = new BoxRequestsUser . GetUserInfo ( getUserInformationUrl ( "me" ) , mSession ) ; return request ;
public class DOTranslatorModule { /** * { @ inheritDoc } */ public void deserialize ( InputStream in , DigitalObject out , String format , String encoding , int transContext ) throws ObjectIntegrityException , StreamIOException , UnsupportedTranslationException , ServerException { } }
m_wrappedTranslator . deserialize ( in , out , format , encoding , transContext ) ;
public class FullTextSearchParser { /** * Parse the full - text search criteria from the supplied token stream . This method is useful when the full - text search * expression is included in other content . * @ param tokens the token stream containing the full - text search starting on the next token * @ return t...
CheckArg . isNotNull ( tokens , "tokens" ) ; List < Term > terms = new ArrayList < Term > ( ) ; do { Term term = parseDisjunctedTerms ( tokens ) ; if ( term == null ) break ; terms . add ( term ) ; } while ( tokens . canConsume ( "OR" ) ) ; if ( terms . isEmpty ( ) ) return null ; return terms . size ( ) > 1 ? new Disj...
public class ManagedServerBootCmdFactory { /** * Resolve expressions in the given model ( if there are any ) * @ param unresolved node with possibly unresolved expressions . Cannot be { @ code null } * @ param expressionResolver resolver to use . Cannot be { @ code null } * @ param excludePostBootSystemProps { @ ...
ModelNode toResolve = unresolved . clone ( ) ; ModelNode sysProps = null ; if ( excludePostBootSystemProps && toResolve . hasDefined ( SYSTEM_PROPERTY ) ) { sysProps = toResolve . remove ( SYSTEM_PROPERTY ) ; } try { ModelNode result = expressionResolver . resolveExpressions ( toResolve ) ; if ( sysProps != null ) { Mo...
public class ExampleDetectDescribe { /** * For some features , there are pre - made implementations of DetectDescribePoint . This has only been done * in situations where there was a performance advantage or that it was a very common combination . */ public static < T extends ImageGray < T > , TD extends TupleDesc > ...
return ( DetectDescribePoint ) FactoryDetectDescribe . surfStable ( new ConfigFastHessian ( 1 , 2 , 200 , 1 , 9 , 4 , 4 ) , null , null , imageType ) ; // return ( DetectDescribePoint ) FactoryDetectDescribe . sift ( new ConfigCompleteSift ( - 1,5,300 ) ) ;
public class HtmlAdaptorServlet { /** * Invoke an operation on a MBean * @ param name The name of the bean * @ param index The operation index * @ param args The operation arguments * @ return The operation result * @ exception PrivilegedExceptionAction Thrown if the operation cannot be performed */ private O...
return AccessController . doPrivileged ( new PrivilegedExceptionAction < OpResultInfo > ( ) { public OpResultInfo run ( ) throws Exception { return Server . invokeOp ( name , index , args ) ; } } ) ;
public class IOUtil { /** * Copies all available bytes from a { @ linkplain ByteBuffer } to a { @ linkplain OutputStream } . * @ param dst the { @ linkplain OutputStream } to copy to . * @ param buffer the { @ linkplain ByteBuffer } to copy from . * @ return the number of copied bytes . * @ throws IOException i...
int remaining = buffer . remaining ( ) ; int copied = 0 ; if ( remaining > 0 ) { if ( buffer . hasArray ( ) ) { byte [ ] bufferArray = buffer . array ( ) ; int bufferArrayOffset = buffer . arrayOffset ( ) ; int bufferPosition = buffer . position ( ) ; dst . write ( bufferArray , bufferArrayOffset + bufferPosition , rem...
public class InstrumentStreamableTask { /** * Instruments the supplied { @ link Streamable } implementing class . */ protected void processStreamable ( File source , CtClass clazz ) throws NotFoundException { } }
ArrayList < CtField > fields = Lists . newArrayList ( ) ; for ( CtField field : clazz . getDeclaredFields ( ) ) { int modifiers = field . getModifiers ( ) ; if ( Modifier . isStatic ( modifiers ) || Modifier . isTransient ( modifiers ) || ! ( Modifier . isProtected ( modifiers ) || Modifier . isPrivate ( modifiers ) ) ...
public class Utils { /** * @ param cronExpression : A cron expression is a string separated by white space , to provide a * parser and evaluator for Quartz cron expressions . * @ return : org . quartz . CronExpression object . * TODO : Currently , we have to transform Joda Timezone to Java Timezone due to CronExp...
if ( cronExpression != null ) { try { final CronExpression ce = new CronExpression ( cronExpression ) ; ce . setTimeZone ( TimeZone . getTimeZone ( timezone . getID ( ) ) ) ; return ce ; } catch ( final ParseException pe ) { logger . error ( "this cron expression {" + cronExpression + "} can not be parsed. " + "Please ...
public class AbstractTokenizingFilter { /** * Adds a term , if one exists , from the tokens collection . * @ return whether or not a new term was added */ protected boolean addTerm ( ) { } }
final boolean termAdded = ! tokens . isEmpty ( ) ; if ( termAdded ) { final String term = tokens . pop ( ) ; clearAttributes ( ) ; termAtt . append ( term ) ; } return termAdded ;
public class StatementMetaData { /** * 设置挂在DAO方法上的属性 * @ param name * @ param value */ public void setAttribute ( String name , Object value ) { } }
if ( attributes == null ) { synchronized ( this ) { if ( attributes == null ) { attributes = new ConcurrentHashMap < String , Object > ( 4 ) ; } } } this . attributes . put ( name , value ) ;
public class OperationImpl { /** * Set some arguments for an operation into the given byte buffer . */ protected final void setArguments ( ByteBuffer bb , Object ... args ) { } }
boolean wasFirst = true ; for ( Object o : args ) { if ( wasFirst ) { wasFirst = false ; } else { bb . put ( ( byte ) ' ' ) ; } bb . put ( KeyUtil . getKeyBytes ( String . valueOf ( o ) ) ) ; } bb . put ( CRLF ) ;
public class ResourceIndexImpl { /** * { @ inheritDoc } */ public int countTriples ( String queryLang , String tripleQuery , int limit , boolean distinct ) throws TrippiException { } }
return _writer . countTriples ( queryLang , tripleQuery , limit , distinct ) ;
public class ProjectService { /** * get project from a resource * @ param resource * @ return */ public static Project getProject ( Resource resource ) { } }
Project retval = new Project ( ) ; retval . setUri ( resource . getUri ( ) ) ; retval . setUsername ( resource . getUsername ( ) ) ; retval . setPassword ( resource . getPassword ( ) ) ; retval . setBranchTagName ( resource . getBranchTagName ( ) ) ; return retval ;
public class Collections { /** * Get an Iterator that returns the same elements returned by the supplied Iterator , but in a * completely random order . */ public static < T > Iterator < T > getRandomIterator ( Iterator < T > itr ) { } }
ArrayList < T > list = new ArrayList < T > ( ) ; CollectionUtil . addAll ( list , itr ) ; java . util . Collections . shuffle ( list ) ; return getUnmodifiableIterator ( list ) ;
public class AsyncMethodWrapper { /** * F743-761 */ private boolean isApplicationException ( Throwable ex , EJBMethodInfoImpl methodInfo ) { } }
final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isApplicationException : " + ex . getClass ( ) . getName ( ) + ", " + methodInfo ) ; // d660332 if ( ex instanceof Exception && ( ! ContainerProperties . DeclaredUncheckedAreSystemExceptio...
public class SqlQueryStatement { /** * Appends the ORDER BY clause for the Query . * < br > * If the orderByField is found in the list of selected fields it ' s index is added . * Otherwise it ' s name is added . * @ param orderByFields * @ param selectedFields the names of the fields in the SELECT clause *...
if ( orderByFields == null || orderByFields . size ( ) == 0 ) { return ; } buf . append ( " ORDER BY " ) ; for ( int i = 0 ; i < orderByFields . size ( ) ; i ++ ) { FieldHelper cf = ( FieldHelper ) orderByFields . get ( i ) ; int colNumber = selectedFields . indexOf ( cf . name ) ; if ( i > 0 ) { buf . append ( "," ) ;...
public class UIComponent { /** * < p class = " changed _ added _ 2_0 " > Push the current * < code > UIComponent < / code > < code > this < / code > to the { @ link FacesContext } * attribute map using the key { @ link # CURRENT _ COMPONENT } saving the previous * < code > UIComponent < / code > associated with {...
if ( context == null ) { throw new NullPointerException ( ) ; } if ( null == component ) { component = this ; } Map < Object , Object > contextAttributes = context . getAttributes ( ) ; ArrayDeque < UIComponent > componentELStack = _getComponentELStack ( _CURRENT_COMPONENT_STACK_KEY , contextAttributes ) ; componentELS...
public class NameUtil { /** * Generates a readable name for this type . */ public static String getName ( TypeMirror type ) { } }
StringBuilder sb = new StringBuilder ( ) ; buildTypeName ( type , sb ) ; return sb . toString ( ) ;
public class Indexer { /** * Gets the column family of the index table based on the given column family and qualifier . * @ param columnFamily Presto column family * @ param columnQualifier Presto column qualifier * @ return ByteBuffer of the given index column family */ public static ByteBuffer getIndexColumnFam...
return wrap ( ArrayUtils . addAll ( ArrayUtils . add ( columnFamily , UNDERSCORE ) , columnQualifier ) ) ;
public class PubSubMessageItemStream { /** * Gives signal to deleteMsgsWithNoReferences ( ) to gracefully exit . This happens in two cases * ( i ) When ME is stopped and ( ii ) When the destination is deleted * @ param hasToStop */ public void stopDeletingMsgsWihoutReferencesTask ( boolean hasToStop ) { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "stopDeletingMsgsWihoutReferencesTask" , hasToStop ) ; this . HasToStop = hasToStop ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "stopDeletingMsgsWihoutReferencesTask" , ha...
public class SasFileParser { /** * The function to convert the array of bytes that stores the data of a row into an array of objects . * Each object corresponds to a table cell . * @ param rowOffset - the offset of the row in cachedPage . * @ param rowLength - the length of the row . * @ param columnNames - lis...
Object [ ] rowElements ; if ( columnNames != null ) { rowElements = new Object [ columnNames . size ( ) ] ; } else { rowElements = new Object [ ( int ) sasFileProperties . getColumnsCount ( ) ] ; } byte [ ] source ; int offset ; if ( sasFileProperties . isCompressed ( ) && rowLength < sasFileProperties . getRowLength (...
public class CheckArg { /** * Check that the argument is not less than the supplied value * @ param argument The argument * @ param notLessThanValue the value that is to be used to check the value * @ param name The name of the argument * @ throws IllegalArgumentException If argument greater than or equal to th...
if ( argument < notLessThanValue ) { throw new IllegalArgumentException ( CommonI18n . argumentMayNotBeLessThan . text ( name , argument , notLessThanValue ) ) ; }
public class AlertService { /** * Creates a new alert . * @ param alert The alert to create with an un - populated ID field . * @ return The new alert having the ID field populated . * @ throws IOException If the server cannot be reached . * @ throws TokenExpiredException If the token sent along with the reques...
String requestUrl = RESOURCE ; ArgusResponse response = getClient ( ) . executeHttpRequest ( ArgusHttpClient . RequestType . POST , requestUrl , alert ) ; assertValidResponse ( response , requestUrl ) ; return fromJson ( response . getResult ( ) , Alert . class ) ;
public class GLUtil { /** * Returns the next largest power of two , or zero if x is already a power of two . * TODO ( jgw ) : Is there no better way to do this than all this bit twiddling ? */ public static int nextPowerOfTwo ( int x ) { } }
assert x < 0x10000 ; int bit = 0x8000 , highest = - 1 , count = 0 ; for ( int i = 15 ; i >= 0 ; -- i , bit >>= 1 ) { if ( ( x & bit ) != 0 ) { ++ count ; if ( highest == - 1 ) { highest = i ; } } } if ( count <= 1 ) { return 0 ; } return 1 << ( highest + 1 ) ;
public class NetUtil { /** * 获取本机所有网卡 * @ return 所有网卡 , 异常返回 < code > null < / code > * @ since 3.0.1 */ public static Collection < NetworkInterface > getNetworkInterfaces ( ) { } }
Enumeration < NetworkInterface > networkInterfaces = null ; try { networkInterfaces = NetworkInterface . getNetworkInterfaces ( ) ; } catch ( SocketException e ) { return null ; } return CollectionUtil . addAll ( new ArrayList < NetworkInterface > ( ) , networkInterfaces ) ;
public class InternalGosuInit { /** * single module ( i . e . runtime ) */ public void initializeRuntime ( IExecutionEnvironment execEnv , List < ? extends GosuPathEntry > pathEntries , String ... discretePackages ) { } }
( ( ExecutionEnvironment ) execEnv ) . initializeDefaultSingleModule ( pathEntries , Collections . emptyList ( ) , discretePackages ) ;
public class OpenPgpManager { /** * Create a { @ link PubkeyElement } which contains the given { @ code data } base64 encoded . * @ param bytes byte representation of an OpenPGP public key * @ param date date of creation of the element * @ return { @ link PubkeyElement } containing the key */ private static Pubke...
return new PubkeyElement ( new PubkeyElement . PubkeyDataElement ( Base64 . encode ( bytes ) ) , date ) ;
public class GCMRKImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public void eUnset ( int featureID ) { } }
switch ( featureID ) { case AfplibPackage . GCMRK__RG : getRg ( ) . clear ( ) ; return ; } super . eUnset ( featureID ) ;
public class FileUtils { /** * Sorts file list , using this rules : directories first , sorted using provided comparator , then files sorted using provided comparator . * @ param files list to sort * @ param comparator comparator used to sort files and directories list * @ return sorted file list */ public static...
return sortFiles ( files , comparator , false ) ;
public class HttpUpload { public static void upload ( HttpURLConnection conn , List < Entry < String , String > > fileList , List < Param > paramList ) throws IOException { } }
long time = System . currentTimeMillis ( ) ; String boundary = "Droid4jFormBoundary" + time ; boundary = "WebKitFormBoundary7Ihe6KrrkF27C7DX" ; // conn . setRequestProperty ( " Charset " , " UTF - 8 " ) ; conn . setRequestProperty ( "Content-Type" , "multipart/form-data; boundary=" + boundary ) ; OutputStream output = ...
public class Hierarchy { /** * Only looks in current processes ( not archived ) . */ public List < Process > findCalledProcesses ( Process mainproc , ProgressMonitor ... monitors ) throws IOException { } }
List < Process > processes = new ArrayList < > ( ) ; for ( String pkg : getPackageProcesses ( ) . keySet ( ) ) { for ( File procFile : getPackageProcesses ( ) . get ( pkg ) ) { processes . add ( loadProcess ( pkg , procFile , true ) ) ; } } return ProcessHierarchy . findInvoked ( mainproc , processes ) ;
public class ConvertUtil { /** * Converts any value to < code > Double < / code > . * @ param value value to convert . * @ return converted double . * @ throws ConversionException if the conversion failed */ public static Double toDouble ( Object value ) throws ConversionException { } }
if ( value == null ) { return null ; } else if ( value instanceof Number ) { return ( ( Number ) value ) . doubleValue ( ) ; } else { NumberFormat nf = new DecimalFormat ( ) ; try { return nf . parse ( value . toString ( ) ) . doubleValue ( ) ; } catch ( ParseException e ) { throw new ConversionException ( "failed to c...
public class ShippingStatesUrl { /** * Get Resource Url for GetStates * @ param profileCode The unique , user - defined code of the profile with which the shipping state is associated . * @ return String Resource Url */ public static MozuUrl getStatesUrl ( String profileCode ) { } }
UrlFormatter formatter = new UrlFormatter ( "/api/commerce/shipping/admin/profiles/{profilecode}/shippingstates" ) ; formatter . formatUrl ( "profileCode" , profileCode ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ;
public class VisibleBufferedInputStream { /** * Ensures that the buffer contains at least n bytes . This method invalidates the buffer and index * fields . * @ param n The amount of bytes to ensure exists in buffer * @ return true if required bytes are available and false if EOF * @ throws IOException If readin...
int required = n - endIndex + index ; while ( required > 0 ) { if ( ! readMore ( required ) ) { return false ; } required = n - endIndex + index ; } return true ;
public class AbstractClient { /** * { @ inheritDoc } */ @ Override public Client accept ( MediaType ... types ) { } }
for ( MediaType mt : types ) { possiblyAddHeader ( HttpHeaders . ACCEPT , JAXRSUtils . mediaTypeToString ( mt ) ) ; } return this ;
public class IdentificationMsg { /** * Maps ADS - B encoded to readable characters * @ param digits array of encoded digits * @ return array of decoded characters */ private static char [ ] mapChar ( byte [ ] digits ) { } }
char [ ] result = new char [ digits . length ] ; for ( int i = 0 ; i < digits . length ; i ++ ) result [ i ] = mapChar ( digits [ i ] ) ; return result ;
public class RepositoryDownloadUtil { /** * Gets the version of the resource using the getAppliesToVersions function . * @ param installResource - resource in a repository * @ return - the version of installResource */ public static String getProductVersion ( RepositoryResource installResource ) { } }
String resourceVersion = null ; try { Collection < ProductDefinition > pdList = new ArrayList < ProductDefinition > ( ) ; for ( ProductInfo pi : ProductInfo . getAllProductInfo ( ) . values ( ) ) { pdList . add ( new ProductInfoProductDefinition ( pi ) ) ; } resourceVersion = installResource . getAppliesToVersions ( pd...
public class ClassGenericsUtil { /** * Returns a new instance of the given type for the specified className . * If the class for className is not found , the instantiation is tried using * the package of the given type as package of the given className . * This is a weaker type checked version of " { @ link # ins...
// TODO : can we do a verification that type conforms to T somehow ? // ( probably not because generics are implemented via erasure . try { try { return ( ( Class < T > ) type ) . cast ( CLASSLOADER . loadClass ( className ) . newInstance ( ) ) ; } catch ( ClassNotFoundException e ) { // try package of type return ( ( ...
public class WebXmlTemplate { /** * Public */ public void populateFromObj ( ProjectObj obj ) { } }
// FIXME : this needs something . . . List < ServletDesc > servlets = new ArrayList < ServletDesc > ( ) ; for ( PackageObj pkg : obj . getPackages ( ) ) { for ( InterfaceObj iface : pkg . getInterfaces ( ) ) { // servlets . add ( new ServletDesc ( iface . getCycName ( ) , iface . getFullPackageName ( ) ) ) ; servlets ....
public class HTMLReport { /** * Write top - level index . html * @ param poolNames The pool names * @ param statuses The overall status of each pool * @ param ccmStatus The status of the CCM * @ param ccmPoolStatuses The CCM status of the pools * @ param version The version information * @ param fw The file...
writeString ( fw , "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"" ) ; writeEOL ( fw ) ; writeString ( fw , " \"http://www.w3.org/TR/html4/loose.dtd\">" ) ; writeEOL ( fw ) ; writeString ( fw , "<html>" ) ; writeEOL ( fw ) ; writeString ( fw , "<head>" ) ; writeEOL ( fw ) ; write...
public class Descriptor { /** * Partially matches this descriptor to another descriptor . Fields that contain * " * " or null are excluded from the match . * @ param descriptor the descriptor to match this one against . * @ return true if descriptors match and false otherwise * @ see # exactMatch ( Descriptor )...
return matchField ( _group , descriptor . getGroup ( ) ) && matchField ( _type , descriptor . getType ( ) ) && matchField ( _kind , descriptor . getKind ( ) ) && matchField ( _name , descriptor . getName ( ) ) && matchField ( _version , descriptor . getVersion ( ) ) ;
public class DynamoDBReflector { /** * Returns the attribute name corresponding to the given getter method . */ String getAttributeName ( Method getter ) { } }
String attributeName ; readLockAttrName . lock ( ) ; try { attributeName = attributeNameCache . get ( getter ) ; } finally { readLockAttrName . unlock ( ) ; } if ( attributeName != null ) return attributeName ; DynamoDBHashKey hashKeyAnnotation = ReflectionUtils . getAnnotationFromGetterOrField ( getter , DynamoDBHashK...