signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class UCSReader { /** * Close the stream . Once a stream has been closed , further < code > read < / code > , < code > ready
* < / code > , < code > mark < / code > , or < code > reset < / code > invocations will throw an IOException .
* Closing a previously - closed stream , however , has no effect .
* @ ... | fInputStream . close ( ) ; fInputStream = null ; fCharBuf = null ; fBuffer = null ; |
public class CompareFixture { /** * Determines number of differences ( substrings that are not equal ) between two strings .
* @ param first first string to compare .
* @ param second second string to compare .
* @ return number of different substrings . */
public int countDifferencesBetweenAnd ( String first , S... | if ( first == null ) { if ( second == null ) { return 0 ; } else { first = "" ; } } else if ( second == null ) { second = "" ; } LinkedList < DiffMatchPatch . Diff > diffs = getDiffs ( first , second ) ; int diffCount = 0 ; for ( DiffMatchPatch . Diff diff : diffs ) { if ( diff . operation != DiffMatchPatch . Operation... |
public class policymap { /** * Use this API to fetch filtered set of policymap resources .
* filter string should be in JSON format . eg : " port : 80 , servicetype : HTTP " . */
public static policymap [ ] get_filtered ( nitro_service service , String filter ) throws Exception { } } | policymap obj = new policymap ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; policymap [ ] response = ( policymap [ ] ) obj . getfiltered ( service , option ) ; return response ; |
public class MeteorAuthCommands { /** * Sends password reset mail to specified email address
* @ param email email address of user */
public void forgotPassword ( String email ) { } } | if ( email == null ) { return ; } Object [ ] methodArgs = new Object [ 1 ] ; Map < String , Object > options = new HashMap < > ( ) ; methodArgs [ 0 ] = options ; options . put ( "email" , email ) ; getDDP ( ) . call ( "forgotPassword" , methodArgs , new DDPListener ( ) { @ Override public void onResult ( Map < String ,... |
public class BigtableSession { /** * Initializes bigtableTableAdminClient based on flag to use GCJ adapter , available in
* { @ link BigtableOptions } .
* @ return a { @ link BigtableTableAdminClientWrapper } object .
* @ throws java . io . IOException if any . */
public synchronized IBigtableTableAdminClient get... | if ( options . useGCJClient ( ) ) { if ( adminGCJClient == null ) { com . google . cloud . bigtable . admin . v2 . BigtableTableAdminClient adminClientV2 = com . google . cloud . bigtable . admin . v2 . BigtableTableAdminClient . create ( adminSettings ) ; BaseBigtableTableAdminClient baseAdminClientV2 = BaseBigtableTa... |
public class CachedDAO { public static String keyFromObjs ( Object ... objs ) { } } | String key ; if ( objs . length == 1 && objs [ 0 ] instanceof String ) { key = ( String ) objs [ 0 ] ; } else { StringBuilder sb = new StringBuilder ( ) ; boolean first = true ; for ( Object o : objs ) { if ( o != null ) { if ( first ) { first = false ; } else { sb . append ( '|' ) ; } sb . append ( o . toString ( ) ) ... |
public class Chunk { /** * Sets the color and the size of the background < CODE > Chunk < / CODE > .
* @ param color
* the color of the background
* @ param extraLeft
* increase the size of the rectangle in the left
* @ param extraBottom
* increase the size of the rectangle in the bottom
* @ param extraRi... | return setAttribute ( BACKGROUND , new Object [ ] { color , new float [ ] { extraLeft , extraBottom , extraRight , extraTop } } ) ; |
public class PagedLaterAdapter { /** * Unfortunately we need to parse the url to create a new GraphRequest < ? > .
* It ' s not strictly necessary ; we could create a new type of GraphRequest that
* merely issues the http request as - is , but this would eliminate any future
* option of grouping these requests . ... | // Parse the url to create a new GraphRequest < Paged < T > > .
URLParser parser = new URLParser ( pagedUrl ) ; // Need to remove the access token , that gets added back later and isn ' t
// relevant for grouping .
parser . getParams ( ) . remove ( "access_token" ) ; return this . batcher . paged ( parser . getPath ( )... |
public class FNCImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setPatTech ( Integer newPatTech ) { } } | Integer oldPatTech = patTech ; patTech = newPatTech ; if ( eNotificationRequired ( ) ) eNotify ( new ENotificationImpl ( this , Notification . SET , AfplibPackage . FNC__PAT_TECH , oldPatTech , patTech ) ) ; |
public class ReflectionUtils { /** * Helper method to find the field info by its name from the passed in list of info .
* @ param infoList cannot be < code > null < / code > .
* @ param name cannot be < code > null < / code > or empty .
* @ return the info or < code > null < / code > if not found . */
public stat... | if ( infoList == null ) { throw new IllegalArgumentException ( "infoList cannot be null." ) ; } if ( StringUtils . isBlank ( name ) ) { throw new IllegalArgumentException ( "name cannot be null or empty." ) ; } ReflectedInfo result = null ; for ( ReflectedInfo info : infoList ) { if ( info . getField ( ) == null ) { co... |
public class Matrix4f { /** * / * ( non - Javadoc )
* @ see org . joml . Matrix4fc # transpose3x3 ( org . joml . Matrix4f ) */
public Matrix4f transpose3x3 ( Matrix4f dest ) { } } | float nm00 = m00 ; float nm01 = m10 ; float nm02 = m20 ; float nm10 = m01 ; float nm11 = m11 ; float nm12 = m21 ; float nm20 = m02 ; float nm21 = m12 ; float nm22 = m22 ; dest . _m00 ( nm00 ) ; dest . _m01 ( nm01 ) ; dest . _m02 ( nm02 ) ; dest . _m10 ( nm10 ) ; dest . _m11 ( nm11 ) ; dest . _m12 ( nm12 ) ; dest . _m20... |
public class EIMImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
@ Override public boolean eIsSet ( int featureID ) { } } | switch ( featureID ) { case AfplibPackage . EIM__IDO_NAME : return IDO_NAME_EDEFAULT == null ? idoName != null : ! IDO_NAME_EDEFAULT . equals ( idoName ) ; case AfplibPackage . EIM__TRIPLETS : return triplets != null && ! triplets . isEmpty ( ) ; } return super . eIsSet ( featureID ) ; |
public class CmsADEManager { /** * Creates an element from its serialized data . < p >
* @ param data the serialized data
* @ return the restored element bean
* @ throws JSONException if the serialized data got corrupted */
protected CmsContainerElementBean elementFromJson ( JSONObject data ) throws JSONException... | CmsUUID element = new CmsUUID ( data . getString ( FavListProp . ELEMENT . name ( ) . toLowerCase ( ) ) ) ; CmsUUID formatter = null ; if ( data . has ( FavListProp . FORMATTER . name ( ) . toLowerCase ( ) ) ) { formatter = new CmsUUID ( data . getString ( FavListProp . FORMATTER . name ( ) . toLowerCase ( ) ) ) ; } Ma... |
public class SecurityContextImpl { /** * If any of the required resources is not accessible , overall access will be rejected
* @ return */
public AuthorisationDecision getReadPriviledge ( ) { } } | return checkPriviledge ( new Priviledge ( ) { @ Override public boolean isGranted ( Constraints c ) { boolean readable = c . isReadResource ( ) ; if ( ! readable ) Log . info ( "read privilege denied for: " + c . getResourceAddress ( ) ) ; return readable ; } } , false ) ; |
public class AuthorizationCommandChecker { /** * delete permission / / / / / */
public void checkDeleteHistoricTaskInstance ( HistoricTaskInstanceEntity task ) { } } | // deleting unexisting historic task instance should be silently ignored
// see javaDoc HistoryService . deleteHistoricTaskInstance
if ( task != null ) { if ( task . getProcessDefinitionKey ( ) != null ) { getAuthorizationManager ( ) . checkAuthorization ( DELETE_HISTORY , PROCESS_DEFINITION , task . getProcessDefiniti... |
public class ObjectUtils { /** * public because it ' s used by other packages that use Duke */
public static String makePropertyName ( String name ) { } } | char [ ] buf = new char [ name . length ( ) + 3 ] ; int pos = 0 ; buf [ pos ++ ] = 's' ; buf [ pos ++ ] = 'e' ; buf [ pos ++ ] = 't' ; for ( int ix = 0 ; ix < name . length ( ) ; ix ++ ) { char ch = name . charAt ( ix ) ; if ( ix == 0 ) ch = Character . toUpperCase ( ch ) ; else if ( ch == '-' ) { ix ++ ; if ( ix == na... |
public class IOHelper { /** * Reads the data from the input stream and writes to the
* output stream .
* @ param inputStream
* The inputStream to read from
* @ param outputStream
* The output stream to write to
* @ throws IOException
* Any IO exception */
public static void readAndWriteStreams ( InputStre... | byte [ ] buffer = new byte [ 5000 ] ; int read = - 1 ; try { do { // read next buffer
read = inputStream . read ( buffer ) ; if ( read != - 1 ) { // write to in memory stream
outputStream . write ( buffer , 0 , read ) ; } } while ( read != - 1 ) ; } finally { // close streams
IOHelper . closeResource ( inputStream ) ; ... |
public class ChatDirector { /** * Returns true if < code > enteredCommand < / code > equals or is a prefix of
* < code > handlerCommand < / code > and if the handler is available for < code > user < / code > . */
protected boolean isCommandPrefix ( String enteredCommand , String handlerCommand , CommandHandler handle... | return handlerCommand . startsWith ( enteredCommand ) && handler . checkAccess ( user ) ; |
public class Requirement { /** * Evaluates a reverse polish notation token list */
private static Requirement evaluateReversePolishNotation ( Iterator < Tokenizer . Token > iterator , Semver . SemverType type ) { } } | try { Tokenizer . Token token = iterator . next ( ) ; if ( token . type == Tokenizer . TokenType . VERSION ) { if ( "*" . equals ( token . value ) || ( type == Semver . SemverType . NPM && "latest" . equals ( token . value ) ) ) { // Special case for " * " and " latest " in NPM
return new Requirement ( new Range ( "0.0... |
public class UrlValidator { /** * { @ inheritDoc } check if given string is a valid url .
* @ see javax . validation . ConstraintValidator # isValid ( java . lang . Object ,
* javax . validation . ConstraintValidatorContext ) */
@ Override public final boolean isValid ( final String pvalue , final ConstraintValidat... | if ( StringUtils . isEmpty ( pvalue ) ) { return true ; } if ( pvalue . length ( ) > LENGTH_URL ) { // url is to long , but that ' s handled by size annotation
return true ; } return org . apache . commons . validator . routines . UrlValidator . getInstance ( ) . isValid ( pvalue ) ; |
public class FreeVariablesChecker { /** * * * * * * Defaults * * * * * */
@ Override public LexNameSet defaultSBinaryExp ( SBinaryExp exp , FreeVarInfo info ) throws AnalysisException { } } | LexNameSet names = exp . getLeft ( ) . apply ( this , info ) ; names . addAll ( exp . getRight ( ) . apply ( this , info ) ) ; return names ; |
public class Utils { /** * Trims off all time information , effectively setting it to midnight
* Makes it easier to compare at just the day level
* @ param calendar The Calendar object to trim
* @ return The trimmed Calendar object */
public static Calendar trimToMidnight ( Calendar calendar ) { } } | calendar . set ( Calendar . HOUR_OF_DAY , 0 ) ; calendar . set ( Calendar . MINUTE , 0 ) ; calendar . set ( Calendar . SECOND , 0 ) ; calendar . set ( Calendar . MILLISECOND , 0 ) ; return calendar ; |
public class MainFrame { /** * GEN - LAST : event _ menuFindTextActionPerformed */
private void menuEditMenuSelected ( javax . swing . event . MenuEvent evt ) { } } | // GEN - FIRST : event _ menuEditMenuSelected
final TabTitle title = this . getFocusedTab ( ) ; updateMenuItemsForProvider ( title == null ? null : title . getProvider ( ) ) ; this . menuEditShowTreeContextMenu . setEnabled ( this . explorerTree . hasSelectedItem ( ) ) ; |
public class ModbusRTUTransport { /** * Read the data for a request of a given fixed size
* @ param byteCount Byte count excluding the 2 byte CRC
* @ param out Output buffer to populate
* @ throws IOException If data cannot be read from the port */
private void readRequestData ( int byteCount , BytesOutputStream ... | byteCount += 2 ; byte inpBuf [ ] = new byte [ byteCount ] ; readBytes ( inpBuf , byteCount ) ; out . write ( inpBuf , 0 , byteCount ) ; |
public class BuildsInner { /** * Gets the detailed information for a given build .
* @ param resourceGroupName The name of the resource group to which the container registry belongs .
* @ param registryName The name of the container registry .
* @ param buildId The build ID .
* @ throws IllegalArgumentException... | return getWithServiceResponseAsync ( resourceGroupName , registryName , buildId ) . map ( new Func1 < ServiceResponse < BuildInner > , BuildInner > ( ) { @ Override public BuildInner call ( ServiceResponse < BuildInner > response ) { return response . body ( ) ; } } ) ; |
public class Media { /** * Get first ( and best - match ) rendition that was resolved during media handler processing
* @ return Rendition */
public Rendition getRendition ( ) { } } | if ( this . renditions == null || this . renditions . isEmpty ( ) ) { return null ; } return this . renditions . iterator ( ) . next ( ) ; |
public class SinglePublicKeyAuthenticator { /** * { @ inheritDoc } */
public boolean authenticate ( String pUser , PublicKey pKey , ServerSession pSession ) { } } | return user != null && user . equals ( pUser ) && allowedKey . equals ( pKey ) ; |
public class DataTypeUtil { /** * Set the allocation mode for the nd4j context
* The value must be one of : heap , java cpp , or direct
* or an @ link { IllegalArgumentException } is thrown
* @ param allocationModeForContext */
public static void setDTypeForContext ( DataType allocationModeForContext ) { } } | try { lock . writeLock ( ) . lock ( ) ; dtype = allocationModeForContext ; setDTypeForContext ( getDTypeForName ( allocationModeForContext ) ) ; } finally { lock . writeLock ( ) . unlock ( ) ; } |
public class system { /** * Navigate to an activity . < br >
* e . g . navigateToActivity ( context , SecondActivity . class )
* @ param A From Activity
* @ param B Destination Activity */
public static void navigateToActivity ( Context A , Class < ? > B ) { } } | Intent myIntent = new Intent ( A , B ) ; A . startActivity ( myIntent ) ; |
public class WorkbookWriter { /** * Sets current sheet name to given name .
* @ param name
* of a sheet
* @ return this { @ link WorkbookWriter } */
public WorkbookWriter setSheetName ( @ NonNull String name ) { } } | workbook . setSheetName ( workbook . getSheetIndex ( sheet . getSheetName ( ) ) , name ) ; return this ; |
public class PurchaseScheduledInstancesResult { /** * Information about the Scheduled Instances .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setScheduledInstanceSet ( java . util . Collection ) } or { @ link # withScheduledInstanceSet ( java . util . Col... | if ( this . scheduledInstanceSet == null ) { setScheduledInstanceSet ( new com . amazonaws . internal . SdkInternalList < ScheduledInstance > ( scheduledInstanceSet . length ) ) ; } for ( ScheduledInstance ele : scheduledInstanceSet ) { this . scheduledInstanceSet . add ( ele ) ; } return this ; |
public class ChannelManager { /** * Ensures that the channel manager has enough buffers to execute the given task .
* If there is less than one buffer per channel available , an InsufficientResourcesException will be thrown ,
* because of possible deadlocks . With more then one buffer per channel , deadlock - freed... | Environment env = task . getEnvironment ( ) ; int numBuffers = this . globalBufferPool . numBuffers ( ) ; // existing channels + channels of the task
int numChannels = this . channels . size ( ) + env . getNumberOfOutputChannels ( ) + env . getNumberOfInputChannels ( ) ; // need at least one buffer per channel
if ( num... |
public class StaticTypeCheckingSupport { /** * Checks that excess arguments match the vararg signature parameter .
* @ param params
* @ param args
* @ return - 1 if no match , 0 if all arguments matches the vararg type and > 0 if one or more vararg argument is
* assignable to the vararg type , but still not an ... | // we already know parameter length is bigger zero and last is a vargs
// the excess arguments are all put in an array for the vargs call
// so check against the component type
int dist = 0 ; ClassNode vargsBase = params [ params . length - 1 ] . getType ( ) . getComponentType ( ) ; for ( int i = params . length ; i < ... |
public class TileMultiFrameImage { /** * documentation inherited from interface */
public void paintFrame ( Graphics2D g , int index , int x , int y ) { } } | _source . getTile ( index ) . paint ( g , x , y ) ; |
public class RdbMirrorDbSyncService { /** * 初始化表配置
* @ param key 配置key : destination . database . table
* @ param baseConfigMap db sync config
* @ param dml DML */
private void initMappingConfig ( String key , MappingConfig baseConfigMap , MirrorDbConfig mirrorDbConfig , Dml dml ) { } } | MappingConfig mappingConfig = mirrorDbConfig . getTableConfig ( ) . get ( key ) ; if ( mappingConfig == null ) { // 构造表配置
mappingConfig = new MappingConfig ( ) ; mappingConfig . setDataSourceKey ( baseConfigMap . getDataSourceKey ( ) ) ; mappingConfig . setDestination ( baseConfigMap . getDestination ( ) ) ; mappingCon... |
public class SslHandler { /** * Always prefer a direct buffer when it ' s pooled , so that we reduce the number of memory copies
* in { @ link OpenSslEngine } . */
private ByteBuf allocate ( ChannelHandlerContext ctx , int capacity ) { } } | ByteBufAllocator alloc = ctx . alloc ( ) ; if ( engineType . wantsDirectBuffer ) { return alloc . directBuffer ( capacity ) ; } else { return alloc . buffer ( capacity ) ; } |
public class GeoJsonToAssembler { /** * Creates a multipoint object starting from a transfer object .
* @ param input the multipoint transfer object
* @ param crsId the crs id to use ( ignores the crs of the input ) . If null , uses the crs of the input .
* @ return the corresponding geometry
* @ throws Illegal... | if ( input == null ) { return null ; } crsId = getCrsId ( input , crsId ) ; isValid ( input ) ; Point [ ] points = new Point [ input . getCoordinates ( ) . length ] ; for ( int i = 0 ; i < points . length ; i ++ ) { points [ i ] = createPoint ( input . getCoordinates ( ) [ i ] , crsId ) ; } return new MultiPoint ( poin... |
public class ObjectBank { /** * Can be slow . Usage not recommended . */
@ SuppressWarnings ( { } } | "SuspiciousToArrayCall" } ) public < T > T [ ] toArray ( T [ ] o ) { Iterator < E > iter = iterator ( ) ; ArrayList < E > al = new ArrayList < E > ( ) ; while ( iter . hasNext ( ) ) { al . add ( iter . next ( ) ) ; } return al . toArray ( o ) ; |
public class TaskProxy { /** * Log this task in under this ( new ) user .
* @ param strUserName The user to log this task in under
* @ param strPassword The password ( NOTE : this is encrypted - do not send clear text ) .
* @ exception Throw an exception if logon is not successful .
* @ return The security map ... | BaseTransport transport = this . createProxyTransport ( LOGIN ) ; transport . addParam ( Params . USER_NAME , strUserName ) ; transport . addParam ( Params . PASSWORD , strPassword ) ; Object strReturn = transport . sendMessageAndGetReply ( ) ; Object objReturn = transport . convertReturnObject ( strReturn ) ; return (... |
public class Utils { /** * Note that this is somewhat - improperly used from Verify . java as well . */
private static String format ( String template , @ javax . annotation . Nullable Object ... args ) { } } | // If no arguments return the template .
if ( args == null ) { return template ; } // start substituting the arguments into the ' % s ' placeholders
StringBuilder builder = new StringBuilder ( template . length ( ) + 16 * args . length ) ; int templateStart = 0 ; int i = 0 ; while ( i < args . length ) { int placeholde... |
public class ServerMappingController { /** * Updates the dest host header in the server redirects
* @ param model
* @ param id
* @ param hostHeader
* @ return
* @ throws Exception */
@ RequestMapping ( value = "api/edit/server/{id}/host" , method = RequestMethod . POST ) public @ ResponseBody ServerRedirect u... | ServerRedirectService . getInstance ( ) . setHostHeader ( hostHeader , id ) ; return ServerRedirectService . getInstance ( ) . getRedirect ( id ) ; |
public class InternalXbaseParser { /** * InternalXbase . g : 1242:1 : ruleIdOrSuper : ( ( rule _ _ IdOrSuper _ _ Alternatives ) ) ; */
public final void ruleIdOrSuper ( ) throws RecognitionException { } } | int stackSize = keepStackSize ( ) ; try { // InternalXbase . g : 1246:2 : ( ( ( rule _ _ IdOrSuper _ _ Alternatives ) ) )
// InternalXbase . g : 1247:2 : ( ( rule _ _ IdOrSuper _ _ Alternatives ) )
{ // InternalXbase . g : 1247:2 : ( ( rule _ _ IdOrSuper _ _ Alternatives ) )
// InternalXbase . g : 1248:3 : ( rule _ _ I... |
public class JDBCResultSet { /** * # ifdef JAVA4 */
public void updateClob ( int columnIndex , java . sql . Clob x ) throws SQLException { } } | if ( x instanceof JDBCClobClient ) { throw Util . sqlException ( ErrorCode . JDBC_INVALID_ARGUMENT , "invalid Clob" ) ; } startUpdate ( columnIndex ) ; preparedStatement . setClobParameter ( columnIndex , x ) ; |
public class ClosureCheckModule { /** * Is this the LHS of a goog . module export ? i . e . Either " exports " or " exports . name " */
private boolean isExportLhs ( Node lhs ) { } } | if ( ! lhs . isQualifiedName ( ) ) { return false ; } return lhs . matchesQualifiedName ( "exports" ) || ( lhs . isGetProp ( ) && lhs . getFirstChild ( ) . matchesQualifiedName ( "exports" ) ) ; |
public class MemcmpDecoder { /** * A int was written by flipping the sign bit , and writing it as a big endian
* int .
* To decode , we do the reverse , flipping the sign bit , and reading the int
* from the bytes .
* @ return The decoded int . */
@ Override public int readInt ( ) throws IOException { } } | byte [ ] intBytes = new byte [ 4 ] ; int i = in . read ( intBytes ) ; if ( i < 4 ) { throw new EOFException ( ) ; } intBytes [ 0 ] = ( byte ) ( intBytes [ 0 ] ^ 0x80 ) ; int value = 0 ; for ( int j = 0 ; j < intBytes . length ; ++ j ) { value = ( value << 8 ) + ( intBytes [ j ] & 0xff ) ; } return value ; |
public class Authenticator { /** * Ask the authenticator that has been registered with the system
* for a password .
* First , if there is a security manager , its { @ code checkPermission }
* method is called with a
* { @ code NetPermission ( " requestPasswordAuthentication " ) } permission .
* This may resu... | SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { NetPermission requestPermission = new NetPermission ( "requestPasswordAuthentication" ) ; sm . checkPermission ( requestPermission ) ; } Authenticator a = theAuthenticator ; if ( a == null ) { return null ; } else { synchronized ( a ) { a . rese... |
public class DayCountConvention_30E_360_ISDA { /** * / * ( non - Javadoc )
* @ see net . finmath . time . daycount . DayCountConventionInterface # getDaycount ( org . threeten . bp . LocalDate , org . threeten . bp . LocalDate ) */
@ Override public double getDaycount ( LocalDate startDate , LocalDate endDate ) { } } | if ( startDate . isAfter ( endDate ) ) { return - getDaycount ( endDate , startDate ) ; } int startDateDay = startDate . getDayOfMonth ( ) ; int startDateMonth = startDate . getMonthValue ( ) ; int startDateYear = startDate . getYear ( ) ; int endDateDay = endDate . getDayOfMonth ( ) ; int endDateMonth = endDate . getM... |
public class PropsUtils { /** * Convert json String to Prop Object
* @ param json json formatted string
* @ return a new constructed Prop Object
* @ throws IOException exception on parsing json string to prop object */
public static Props fromJSONString ( final String json ) throws IOException { } } | final Map < String , String > obj = ( Map < String , String > ) JSONUtils . parseJSONFromString ( json ) ; final Props props = new Props ( null , obj ) ; return props ; |
public class DescribeAgentsResult { /** * Lists agents or the Connector by ID or lists all agents / Connectors associated with your user account if you did
* not specify an agent / Connector ID . The output includes agent / Connector IDs , IP addresses , media access control
* ( MAC ) addresses , agent / Connector ... | if ( agentsInfo == null ) { this . agentsInfo = null ; return ; } this . agentsInfo = new java . util . ArrayList < AgentInfo > ( agentsInfo ) ; |
public class BaseTangramEngine { /** * Bind a recyclerView to Tangram . After calling this , { @ link GroupBasicAdapter } , { @ link VirtualLayoutManager } are auto binded .
* @ param view A plain recyclerView with no adapter or layoutManager binded . */
public void bindView ( @ NonNull final RecyclerView view ) { } ... | // noinspection ConstantConditions
Preconditions . checkArgument ( view != null , "view must not be null" ) ; if ( mContentView != null ) { mContentView . setAdapter ( null ) ; mContentView . setLayoutManager ( null ) ; } this . mContentView = view ; this . mContentView . setLayoutManager ( mLayoutManager ) ; mLayoutMa... |
public class Http2FrameCodec { /** * Iterates over all active HTTP / 2 streams .
* < p > This method must not be called outside of the event loop . */
final void forEachActiveStream ( final Http2FrameStreamVisitor streamVisitor ) throws Http2Exception { } } | assert ctx . executor ( ) . inEventLoop ( ) ; connection ( ) . forEachActiveStream ( new Http2StreamVisitor ( ) { @ Override public boolean visit ( Http2Stream stream ) { try { return streamVisitor . visit ( ( Http2FrameStream ) stream . getProperty ( streamKey ) ) ; } catch ( Throwable cause ) { onError ( ctx , false ... |
public class Vector4d { /** * Set this { @ link Vector4d } to the values of the given < code > v < / code > .
* @ param v
* the vector whose values will be copied into this
* @ return this */
public Vector4d set ( Vector4fc v ) { } } | return set ( v . x ( ) , v . y ( ) , v . z ( ) , v . w ( ) ) ; |
public class ViewPagerEx { /** * Fake drag by an offset in pixels . You must have called { @ link # beginFakeDrag ( ) } first .
* @ param xOffset Offset in pixels to drag by .
* @ see # beginFakeDrag ( )
* @ see # endFakeDrag ( ) */
public void fakeDragBy ( float xOffset ) { } } | if ( ! mFakeDragging ) { throw new IllegalStateException ( "No fake drag in progress. Call beginFakeDrag first." ) ; } mLastMotionX += xOffset ; float oldScrollX = getScrollX ( ) ; float scrollX = oldScrollX - xOffset ; final int width = getClientWidth ( ) ; float leftBound = width * mFirstOffset ; float rightBound = w... |
public class AWSIoT1ClickDevicesClient { /** * Adds device ( s ) to your account ( i . e . , claim one or more devices ) if and only if you received a claim code with
* the device ( s ) .
* @ param claimDevicesByClaimCodeRequest
* @ return Result of the ClaimDevicesByClaimCode operation returned by the service . ... | request = beforeClientExecution ( request ) ; return executeClaimDevicesByClaimCode ( request ) ; |
public class NameResolution { /** * Apply this name resolver to a given WyilFile .
* @ param wf */
public boolean apply ( ) { } } | // FIXME : need to make this incremental
// Create initial set of patches .
List < Patch > patches = resolver . apply ( target ) ; // Keep iterating until all patches are resolved
while ( patches . size ( ) > 0 ) { // Create importer
Importer importer = new Importer ( target , true ) ; // Now continue importing until p... |
public class JmsConnectionFactoryImpl { @ Override public void setReference ( Reference reference ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "setReference" , reference ) ; jcaConnectionFactory . setReference ( reference ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "setReference" ) ; |
public class EclipseIndexWriter { /** * Replace the file extension .
* @ param aFileName file name to be replaced
* @ return replaced file name */
private String replaceExtName ( final String aFileName ) { } } | final int index = aFileName . indexOf ( SHARP ) ; if ( aFileName . startsWith ( SHARP ) ) { return aFileName ; } else if ( index != - 1 ) { final String fileName = aFileName . substring ( 0 , index ) ; final int fileExtIndex = fileName . lastIndexOf ( DOT ) ; return ( fileExtIndex != - 1 ) ? fileName . substring ( 0 , ... |
public class CudaAffinityManager { /** * This method replicates given DataBuffer , and places it to target device .
* @ param deviceId target deviceId
* @ param buffer
* @ return */
@ Override public DataBuffer replicateToDevice ( Integer deviceId , DataBuffer buffer ) { } } | if ( buffer == null ) return null ; int currentDeviceId = AtomicAllocator . getInstance ( ) . getDeviceId ( ) ; if ( currentDeviceId != deviceId ) { Nd4j . getMemoryManager ( ) . releaseCurrentContext ( ) ; NativeOpsHolder . getInstance ( ) . getDeviceNativeOps ( ) . setDevice ( deviceId ) ; Nd4j . getAffinityManager (... |
public class HelpProcessor { /** * Excludes resources under the META - INF folder and checks the resource against the help set
* pattern , saving a path reference if it matches . */
@ Override public boolean transform ( IResource resource ) throws Exception { } } | String path = resource . getSourcePath ( ) ; if ( path . startsWith ( "META-INF/" ) ) { return false ; } if ( hsFile == null && loader . isHelpSetFile ( path ) ) { hsFile = getResourceBase ( ) + resource . getTargetPath ( ) ; } return super . transform ( resource ) ; |
public class PackageFrameWriter { /** * Add specific class kind listing . Also add label to the listing .
* @ param list list of specific class kinds , namely Class or Interface or Exception or Error
* @ param labelContent content tree of the label to be added
* @ param contentTree the content tree to which the c... | SortedSet < TypeElement > tset = utils . filterOutPrivateClasses ( list , configuration . javafx ) ; if ( ! tset . isEmpty ( ) ) { boolean printedHeader = false ; HtmlTree htmlTree = ( configuration . allowTag ( HtmlTag . SECTION ) ) ? HtmlTree . SECTION ( ) : contentTree ; HtmlTree ul = new HtmlTree ( HtmlTag . UL ) ;... |
public class InterpretedContainerImpl { /** * { @ inheritDoc } */
@ Override public Container getEnclosingContainer ( ) { } } | com . ibm . wsspi . artifact . ArtifactContainer parent = delegate . getEnclosingContainer ( ) ; if ( parent != null ) { if ( this . isRoot ( ) ) { // the parent is in a different root so find out all the information we need about this root
RootInformation rootInformation = this . getRootInformation ( parent , parent )... |
public class SystemConfiguration { /** * Returns for given parameter < i > _ uuid < / i > the instance of class
* { @ link SystemConfiguration } .
* @ param _ uuid uuid of the system configuration
* @ return instance of class { @ link SystemConfiguration }
* @ throws CacheReloadException on error */
public stat... | final Cache < UUID , SystemConfiguration > cache = InfinispanCache . get ( ) . < UUID , SystemConfiguration > getCache ( SystemConfiguration . UUIDCACHE ) ; if ( ! cache . containsKey ( _uuid ) ) { SystemConfiguration . getSystemConfigurationFromDB ( SystemConfiguration . SQL_UUID , String . valueOf ( _uuid ) ) ; } ret... |
public class FastMoney { /** * Static factory method for creating a new instance of { @ link FastMoney } .
* @ param currencyCode The target currency as currency code .
* @ param number The numeric part , not null .
* @ return A new instance of { @ link FastMoney } . */
public static FastMoney of ( Number number ... | CurrencyUnit currency = Monetary . getCurrency ( currencyCode ) ; return of ( number , currency ) ; |
public class Gauge { /** * Sets the threshold of the gauge to the given value . The value
* will be clamped to the range of the gauge .
* @ param THRESHOLD */
public void setThreshold ( final double THRESHOLD ) { } } | originalThreshold = THRESHOLD ; if ( null == threshold ) { _threshold = Helper . clamp ( getMinValue ( ) , getMaxValue ( ) , THRESHOLD ) ; fireUpdateEvent ( RESIZE_EVENT ) ; } else { threshold . set ( THRESHOLD ) ; } |
public class CERTConverter { /** * Builds a CERT record from a Certificate associated with a key also in DNS */
public static CERTRecord buildRecord ( Name name , int dclass , long ttl , Certificate cert , int tag , int alg ) { } } | int type ; byte [ ] data ; try { if ( cert instanceof X509Certificate ) { type = CERTRecord . PKIX ; data = cert . getEncoded ( ) ; } else return null ; return new CERTRecord ( name , dclass , ttl , type , tag , alg , data ) ; } catch ( CertificateException e ) { if ( Options . check ( "verboseexceptions" ) ) System . ... |
public class MoneyUtils { /** * Adds two { @ code BigMoney } objects , handling null .
* This returns { @ code money1 + money2 } where null is ignored .
* If both input values are null , then null is returned .
* @ param money1 the first money instance , null returns money2
* @ param money2 the first money inst... | if ( money1 == null ) { return money2 ; } if ( money2 == null ) { return money1 ; } return money1 . plus ( money2 ) ; |
public class Flowable { /** * Converts an Array into a Publisher that emits the items in the Array .
* < img width = " 640 " height = " 315 " src = " https : / / raw . github . com / wiki / ReactiveX / RxJava / images / rx - operators / from . png " alt = " " >
* < dl >
* < dt > < b > Backpressure : < / b > < / d... | ObjectHelper . requireNonNull ( items , "items is null" ) ; if ( items . length == 0 ) { return empty ( ) ; } if ( items . length == 1 ) { return just ( items [ 0 ] ) ; } return RxJavaPlugins . onAssembly ( new FlowableFromArray < T > ( items ) ) ; |
public class SystemUtils { /** * Returns the process ID , via an awful hack . */
public static int getPID ( ) throws IOException { } } | // note that we ask Perl for " ppid " - - process ID of parent - - that ' s us
String [ ] cmd = new String [ ] { "perl" , "-e" , "print getppid() . \"\\n\";" } ; StringBuilder out = new StringBuilder ( ) ; runShellCommand ( cmd , out ) ; return Integer . parseInt ( out . toString ( ) ) ; |
public class TableTools { /** * 设置表格边框
* @ param table
* @ param size */
public static void borderTable ( XWPFTable table , int size ) { } } | CTTblPr tblPr = getTblPr ( table ) ; CTTblBorders tblBorders = tblPr . getTblBorders ( ) ; BigInteger borderSize = BigInteger . valueOf ( size ) ; tblBorders . getBottom ( ) . setSz ( borderSize ) ; tblBorders . getLeft ( ) . setSz ( borderSize ) ; tblBorders . getTop ( ) . setSz ( borderSize ) ; tblBorders . getRight ... |
public class TreeModelUtils { /** * This method returns nearest words for target word , based on tree structure .
* This method is recommended to use if you ' re going to call for nearest words multiple times .
* VPTree will be built upon firt call to this method
* @ param label label of element we ' re looking n... | if ( ! vocabCache . hasToken ( label ) ) return new ArrayList < > ( ) ; Collection < String > collection = wordsNearest ( Arrays . asList ( label ) , new ArrayList < String > ( ) , n + 1 ) ; if ( collection . contains ( label ) ) collection . remove ( label ) ; return collection ; |
public class FreezeHandler { /** * suit handler signature requirements */
private void write ( String s ) throws SAXException { } } | try { out . write ( s ) ; out . flush ( ) ; } catch ( IOException ioException ) { throw new SAXParseException ( "I/O error" , documentLocator , ioException ) ; } |
public class ListenerCallQueue { /** * Executes all listeners { @ linkplain # add added } prior to this call , serially and in order . */
void execute ( ) { } } | boolean scheduleTaskRunner = false ; synchronized ( this ) { if ( ! isThreadScheduled ) { isThreadScheduled = true ; scheduleTaskRunner = true ; } } if ( scheduleTaskRunner ) { try { executor . execute ( this ) ; } catch ( RuntimeException e ) { // reset state in case of an error so that later calls to execute will act... |
public class Matrix4 { /** * Sets this to a skew by the specified amount relative to the given plane .
* @ return a reference to this matrix , for chaining . */
public Matrix4 setToSkew ( IPlane plane , IVector3 amount ) { } } | return setToSkew ( plane . normal ( ) , plane . constant ( ) , amount ) ; |
public class CSVParserBuilder { /** * Use supplied header and do not take header from the source .
* @ param header - header fields
* @ return this parser builder */
public CSVParserBuilder < T , K > usingExplicitHeader ( String ... header ) { } } | Objects . requireNonNull ( subsetView ) ; this . subsetView = FieldSubsetView . forExplicitHeader ( subsetView . getFieldSubset ( ) , header ) ; return this ; |
public class HelpWriter { /** * Generate the help file contents .
* @ throws DocFileIOException if there is a problem while generating the documentation */
protected void generateHelpFile ( ) throws DocFileIOException { } } | String title = configuration . getText ( "doclet.Window_Help_title" ) ; HtmlTree body = getBody ( true , getWindowTitle ( title ) ) ; HtmlTree htmlTree = ( configuration . allowTag ( HtmlTag . HEADER ) ) ? HtmlTree . HEADER ( ) : body ; addTop ( htmlTree ) ; addNavLinks ( true , htmlTree ) ; if ( configuration . allowT... |
public class DFSClient { /** * Call
* { @ link # create ( String , FsPermission , boolean , short , long , Progressable , int ) }
* with default permission .
* @ see FsPermission # getDefault ( ) */
public OutputStream create ( String src , boolean overwrite , short replication , long blockSize , Progressable pro... | return create ( src , FsPermission . getDefault ( ) , overwrite , replication , blockSize , progress , buffersize ) ; |
public class FactoryCache { /** * Provides an iterator over all available factories . */
@ Override public Iterator < Map . Entry < String , PrefabValueFactory < ? > > > iterator ( ) { } } | return cache . entrySet ( ) . iterator ( ) ; |
public class BTreeIndex { /** * Initializes the BTreeIndex using information from the given footer .
* @ param footer A ByteArraySegment representing the footer that was written with the last update .
* @ param footerOffset The offset within the data source where the footer is located at .
* @ param indexLength T... | if ( footer . getLength ( ) != FOOTER_LENGTH ) { throw new IllegalDataFormatException ( String . format ( "Wrong footer length. Expected %s, actual %s." , FOOTER_LENGTH , footer . getLength ( ) ) ) ; } long rootPageOffset = getRootPageOffset ( footer ) ; int rootPageLength = getRootPageLength ( footer ) ; if ( rootPage... |
public class IconicsAnimationProcessor { /** * Adds a pause listener to this processor .
* @ param listener the listener to be added to the current set of pause listeners
* for this processor . */
@ RequiresApi ( Build . VERSION_CODES . KITKAT ) @ NonNull public IconicsAnimationProcessor addPauseListener ( @ NonNul... | if ( mPauseListeners == null ) { mPauseListeners = new ArrayList < > ( ) ; if ( mProxyPauseListener == null ) { initProxyPauseListener ( ) ; } mAnimator . addPauseListener ( ( Animator . AnimatorPauseListener ) mProxyPauseListener ) ; } mPauseListeners . add ( listener ) ; return this ; |
public class DataStoreModule { /** * Expose this provider so that DatabusModule can wire in this annotation , which only cares about SoR clusters */
@ Provides @ Singleton @ Exposed @ DatabusClusterInfo Collection < ClusterInfo > provideCassandraClusterInfo ( Collection < ClusterInfo > clusterInfos ) { } } | return clusterInfos ; |
public class FSDirectory { /** * Update quota of each inode in the inodes array from the position of startPos to
* the position of endPos . But it won ' t throw out the QuotaExceededException . */
private void updateCountNoQuotaCheck ( INode [ ] inodes , int startPos , int endPos , long nsDelta , long dsDelta ) { } } | try { updateCount ( inodes , startPos , endPos , nsDelta , dsDelta , false ) ; } catch ( QuotaExceededException e ) { NameNode . LOG . warn ( "FSDirectory.updateCountNoQuotaCheck - unexpected " , e ) ; } |
public class InternalPropertiesDao { /** * No streaming of value */
public Optional < String > selectByKey ( DbSession dbSession , String key ) { } } | checkKey ( key ) ; InternalPropertiesMapper mapper = getMapper ( dbSession ) ; InternalPropertyDto res = enforceSingleElement ( key , mapper . selectAsText ( singletonList ( key ) ) ) ; if ( res == null ) { return Optional . empty ( ) ; } if ( res . isEmpty ( ) ) { return OPTIONAL_OF_EMPTY_STRING ; } if ( res . getValu... |
public class Import { /** * Imports an openfst text format and serializes it as java binary model Several files are imported as follows : -
* basename . input . syms - basename . output . syms - basename . fst . txt
* args [ 0 ] openfst ' s files basename
* args [ 1 ] the java binary model filename */
public stat... | if ( args . length < 2 ) { System . err . println ( "Input and output files not provided" ) ; System . err . println ( "You need to provide both the input binary openfst model" ) ; System . err . println ( "and the output serialized java fst model." ) ; System . exit ( 1 ) ; } MutableFst fst = Convert . importFst ( arg... |
public class TypeValidator { /** * Expect the type to be a string , or a type convertible to string . If the expectation is not met ,
* issue a warning at the provided node ' s source code position . */
void expectString ( Node n , JSType type , String msg ) { } } | if ( ! type . matchesStringContext ( ) ) { mismatch ( n , msg , type , STRING_TYPE ) ; } |
public class JcrLockManager { /** * Unlocks all locks corresponding to the tokens held by the supplied session .
* @ throws RepositoryException if the session is not live */
final void cleanLocks ( ) throws RepositoryException { } } | // clean the session - scoped locks : unlock all the nodes and remove the lock tokens from the system area
Set < String > cleanedTokens = lockManager . cleanLocks ( session ) ; if ( lockTokens . isEmpty ( ) ) { return ; } // clean all open - scoped locks created via this session
for ( String lockToken : lockTokens ) { ... |
public class SimpleCompareFileExtensions { /** * Compare files by last modified .
* @ param sourceFile
* the source file
* @ param fileToCompare
* the file to compare
* @ return true if the last modified are equal , otherwise false . */
public static boolean compareFilesByLastModified ( final File sourceFile ... | return CompareFileExtensions . compareFiles ( sourceFile , fileToCompare , true , true , true , false , true , true ) . getLastModifiedEquality ( ) ; |
public class CodecCollector { /** * Merge doc lists .
* @ param a
* the a
* @ param b
* the b
* @ return the integer [ ] */
private static Integer [ ] mergeDocLists ( Integer [ ] a , Integer [ ] b ) { } } | Integer [ ] answer = new Integer [ a . length + b . length ] ; int i = 0 ; int j = 0 ; int k = 0 ; Integer tmp ; while ( i < a . length && j < b . length ) { tmp = a [ i ] < b [ j ] ? a [ i ++ ] : b [ j ++ ] ; for ( ; i < a . length && a [ i ] . equals ( tmp ) ; i ++ ) ; for ( ; j < b . length && b [ j ] . equals ( tmp... |
public class AddInstanceGroupsResult { /** * Instance group IDs of the newly created instance groups .
* @ param instanceGroupIds
* Instance group IDs of the newly created instance groups . */
public void setInstanceGroupIds ( java . util . Collection < String > instanceGroupIds ) { } } | if ( instanceGroupIds == null ) { this . instanceGroupIds = null ; return ; } this . instanceGroupIds = new com . amazonaws . internal . SdkInternalList < String > ( instanceGroupIds ) ; |
public class PasswordEditText { /** * Obtains all attributes from a specific attribute set .
* @ param attributeSet
* The attribute set , the attributes should be obtained from , as an instance of the type
* { @ link AttributeSet } or null , if no attributes should be obtained */
private void obtainStyledAttribut... | TypedArray typedArray = getContext ( ) . obtainStyledAttributes ( attributeSet , R . styleable . PasswordEditText ) ; try { obtainPasswordVerificationPrefix ( typedArray ) ; } finally { typedArray . recycle ( ) ; } |
public class BaseHybridHashTable { /** * This method makes sure that at least a certain number of memory segments is in the list of
* free segments .
* Free memory can be in the list of free segments , or in the return - queue where segments used
* to write behind are
* put . The number of segments that are in ... | if ( minRequiredAvailable > this . availableMemory . size ( ) + this . buildSpillRetBufferNumbers ) { throw new IllegalArgumentException ( "More buffers requested available than totally available." ) ; } try { while ( this . availableMemory . size ( ) < minRequiredAvailable ) { this . availableMemory . add ( this . bui... |
public class ReduceOps { /** * Constructs a { @ code TerminalOp } that implements a mutable reduce on
* { @ code int } values .
* @ param < R > The type of the result
* @ param supplier a factory to produce a new accumulator of the result type
* @ param accumulator a function to incorporate an int into an
* a... | Objects . requireNonNull ( supplier ) ; Objects . requireNonNull ( accumulator ) ; Objects . requireNonNull ( combiner ) ; class ReducingSink extends Box < R > implements AccumulatingSink < Integer , R , ReducingSink > , Sink . OfInt { @ Override public void begin ( long size ) { state = supplier . get ( ) ; } @ Overri... |
public class EventSubscriptionMarshaller { /** * Marshall the given parameter object . */
public void marshall ( EventSubscription eventSubscription , ProtocolMarshaller protocolMarshaller ) { } } | if ( eventSubscription == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( eventSubscription . getCustomerAwsId ( ) , CUSTOMERAWSID_BINDING ) ; protocolMarshaller . marshall ( eventSubscription . getCustSubscriptionId ( ) , CUSTSUBSCRIPTIONID... |
public class TabbedPaneTargetDragAdapter { /** * { @ inheritDoc } */
@ Override public void dragDropped ( final DragEvent dragEvent ) { } } | // System . out . println ( " drag DROPPED " ) ;
/* data dropped */
/* if there is a string data on dragboard , read it and use it */
final Dragboard db = dragEvent . getDragboard ( ) ; boolean success = false ; if ( db . hasContent ( CustomDataFormat . DOCKABLE ) ) { final Dockable serializedTab = ( Dockable ) db . ge... |
public class Flow { /** * Compares two Flow objects on the basis of their FlowKeys
* @ param otherFlow
* @ return 0 if the FlowKeys are equal ,
* 1 if this FlowKey greater than other FlowKey ,
* - 1 if this FlowKey is less than other FlowKey */
@ Override public int compareTo ( Flow otherFlow ) { } } | if ( otherFlow == null ) { return - 1 ; } return new CompareToBuilder ( ) . append ( this . key , otherFlow . getFlowKey ( ) ) . toComparison ( ) ; |
public class DefaultSources { /** * Get ConfigSources found using the ServiceLoader pattern - both directly
* as found ConfigSources and those found via found ConfigSourceProviders '
* getConfigSources method .
* @ param classloader
* @ return */
public static ArrayList < ConfigSource > getDiscoveredSources ( C... | ArrayList < ConfigSource > sources = new ArrayList < > ( ) ; // load config sources using the service loader
try { ServiceLoader < ConfigSource > sl = ServiceLoader . load ( ConfigSource . class , classloader ) ; for ( ConfigSource source : sl ) { sources . add ( source ) ; } } catch ( ServiceConfigurationError e ) { t... |
public class JsonWriter { /** * Writes an iterable
* @ param value the iterable to be written
* @ return This structured writer
* @ throws IOException Something went wrong writing */
public JsonWriter value ( @ NonNull Iterable < ? > value ) throws IOException { } } | Preconditions . checkArgument ( inArray ( ) || writeStack . peek ( ) == JsonTokenType . NAME , "Expecting an array or a name, but found " + writeStack . peek ( ) ) ; popIf ( JsonTokenType . NAME ) ; beginArray ( ) ; for ( Object o : value ) { value ( o ) ; } endArray ( ) ; return this ; |
public class DisambiguateProperties { /** * Records that this property could be referenced from any interface that this type inherits from .
* < p > If the property p is defined only on a subtype of constructor , then this method has no
* effect . But we tried modifying getTypeWithProperty to tell us when the retur... | Iterable < ObjectType > interfaces = ancestorInterfaces . get ( constructor ) ; if ( interfaces == null ) { interfaces = constructor . getAncestorInterfaces ( ) ; ancestorInterfaces . put ( constructor , interfaces ) ; } for ( ObjectType itype : interfaces ) { JSType top = getTypeWithProperty ( p . name , itype ) ; if ... |
public class PatternFinderResultSwingRenderer { /** * A main method that will display the results of a few example pattern
* finder analyzers . Useful for tweaking the charts and UI .
* @ param args */
public static void main ( final String [ ] args ) { } } | LookAndFeelManager . get ( ) . init ( ) ; final Injector injector = Guice . createInjector ( new DCModuleImpl ( ) ) ; // run a small job
final AnalysisJobBuilder ajb = injector . getInstance ( AnalysisJobBuilder . class ) ; final Datastore ds = injector . getInstance ( DatastoreCatalog . class ) . getDatastore ( "order... |
public class CreateFleetRequest { /** * Range of IP addresses and port settings that permit inbound traffic to access game sessions that running on the
* fleet . For fleets using a custom game build , this parameter is required before game sessions running on the fleet
* can accept connections . For Realtime Server... | if ( eC2InboundPermissions == null ) { this . eC2InboundPermissions = null ; return ; } this . eC2InboundPermissions = new java . util . ArrayList < IpPermission > ( eC2InboundPermissions ) ; |
public class LiteDeviceResolver { /** * Wrapper method for allow subclassing platform based resolution */
protected Device resolveWithPlatform ( DeviceType deviceType , DevicePlatform devicePlatform ) { } } | return LiteDevice . from ( deviceType , devicePlatform ) ; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.