signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class Scheduler { public static Collection < TimeSlot > calculateAvailableSots ( Collection < TimeInterval > takenTimeSlots , Date date , int intervalSeconds , Time startTime , Time endTime ) { } }
Day day = new Day ( date ) ; Collection < TimeSlot > allTimeSlots = calculateTimeSots ( day , intervalSeconds , startTime , endTime ) ; if ( takenTimeSlots == null || takenTimeSlots . isEmpty ( ) ) return allTimeSlots ; TimeSlot timeSlot = null ; TreeSet < TimeSlot > availableSlots = new TreeSet < TimeSlot > ( ) ; for ...
public class Route53AutoNamingRegistrationClient { /** * These are convenience methods to help cleanup things like integration test data . * @ param serviceId service id from AWS to delete */ public void deleteService ( String serviceId ) { } }
DeleteServiceRequest deleteServiceRequest = new DeleteServiceRequest ( ) . withId ( serviceId ) ; getDiscoveryClient ( ) . deleteService ( deleteServiceRequest ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcBoundaryEdgeCondition ( ) { } }
if ( ifcBoundaryEdgeConditionEClass == null ) { ifcBoundaryEdgeConditionEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 49 ) ; } return ifcBoundaryEdgeConditionEClass ;
public class ThreadDumps { /** * Dumps all of the threads ' current information to an output stream . * @ param out an output stream . * @ throws UnsupportedEncodingException if the utf - 8 encoding is not supported . */ @ edu . umd . cs . findbugs . annotations . SuppressWarnings ( value = { } }
"VA_FORMAT_STRING_USES_NEWLINE" } , justification = "We don't want platform specific" ) public static void threadDump ( OutputStream out ) throws UnsupportedEncodingException { final PrintWriter writer = new PrintWriter ( new OutputStreamWriter ( out , "utf-8" ) , true ) ; ThreadMXBean mbean = ManagementFactory . getTh...
public class dnskey { /** * Use this API to create dnskey . */ public static base_response create ( nitro_service client , dnskey resource ) throws Exception { } }
dnskey createresource = new dnskey ( ) ; createresource . zonename = resource . zonename ; createresource . keytype = resource . keytype ; createresource . algorithm = resource . algorithm ; createresource . keysize = resource . keysize ; createresource . filenameprefix = resource . filenameprefix ; return createresour...
public class ChannelFrameworkImpl { /** * Setter method for the number of chain restart attempts . * @ param value * @ throws NumberFormatException * if the value is not a number or is less than zero */ public void setChainStartRetryAttempts ( Object value ) throws NumberFormatException { } }
if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Setting chain start retry attempts [" + value + "]" ) ; } try { int num = MetatypeUtils . parseInteger ( PROPERTY_CONFIG_ALIAS , PROPERTY_CHAIN_START_RETRY_ATTEMPTS , value , chainStartRetryAttempts ) ; if ( - 1 <= num ) { t...
public class ApiOvhDomain { /** * Get this object properties * REST : GET / domain / zone / { zoneName } / record / { id } * @ param zoneName [ required ] The internal name of your zone * @ param id [ required ] Id of the object */ public OvhRecord zone_zoneName_record_id_GET ( String zoneName , Long id ) throws ...
String qPath = "/domain/zone/{zoneName}/record/{id}" ; StringBuilder sb = path ( qPath , zoneName , id ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhRecord . class ) ;
public class PropertyFilter { /** * Return the value of a property via reflection . * @ param obj * Object to retrieve a value from . * @ param property * Name of the property . * @ return Value returned via the getter of the property . */ protected final Object getProperty ( final Object obj , final String p...
if ( ( obj == null ) || ( property == null ) || ( property . trim ( ) . length ( ) == 0 ) ) { return null ; } final String [ ] getterNames = createGetterNames ( property ) ; for ( int i = 0 ; i < getterNames . length ; i ++ ) { final String getter = getterNames [ i ] ; try { final Class cl = obj . getClass ( ) ; final ...
public class CollectionBindings { /** * Creates a number binding that contains the sum of the numbers of the given observable list of numbers . * @ param numbers the observable list of numbers . * @ return a number binding . */ public static NumberBinding sum ( final ObservableList < ? extends Number > numbers ) { ...
return Bindings . createDoubleBinding ( ( ) -> numbers . stream ( ) . mapToDouble ( Number :: doubleValue ) . sum ( ) , numbers ) ;
public class XMLBuilder { /** * Converts attribute map to Attributes class instance . */ private Attributes toAttributes ( Map < String , String > attrs ) { } }
AttributesImpl impl = new AttributesImpl ( ) ; for ( Map . Entry < String , String > attr : attrs . entrySet ( ) ) { impl . addAttribute ( "" , attr . getKey ( ) , "" , "CDATA" , attr . getValue ( ) ) ; } return impl ;
public class DefaultRewriteContentHandler { /** * Extracts link metadata from the DOM elements attributes and resolves them to a { @ link Link } object . * @ param element DOM element * @ return Link metadata */ private Link getAnchorLink ( Element element ) { } }
SyntheticLinkResource resource = new SyntheticLinkResource ( resourceResolver ) ; ValueMap resourceProps = resource . getValueMap ( ) ; // get link metadata from data element boolean foundMetadata = getAnchorMetadataFromData ( resourceProps , element ) ; if ( ! foundMetadata ) { // support for legacy metadata stored in...
public class BoxDeveloperEditionAPIConnection { /** * Authenticates the API connection for Box Developer Edition . */ public void authenticate ( ) { } }
URL url ; try { url = new URL ( this . getTokenURL ( ) ) ; } catch ( MalformedURLException e ) { assert false : "An invalid token URL indicates a bug in the SDK." ; throw new RuntimeException ( "An invalid token URL indicates a bug in the SDK." , e ) ; } String jwtAssertion = this . constructJWTAssertion ( ) ; String u...
public class CopyingConverter { /** * Create a { @ link CopyingConverter } instance that instantiates the target type using the default constructor . * @ param target type which must have an accessible no - arg constructor * @ param < TARGET > * @ return CopyingConverter instance */ public static < TARGET > Copyi...
final Typed < TARGET > targetType = TypeUtils . wrap ( target ) ; return new Fluent < TARGET > ( requireDefaultConstructor ( target ) ) { @ Override public Typed < TARGET > getTargetType ( ) { return targetType ; } } ;
public class DefaultNotifier { /** * ~ Methods * * * * * */ @ Override public void sendNotification ( NotificationContext notificationContext ) { } }
SystemAssert . requireArgument ( notificationContext != null , "Notification context cannot be null." ) ; Map < String , String > additionalFields = new HashMap < > ( ) ; additionalFields . put ( "Notification status" , "Notification created." ) ; _createAnnotation ( notificationContext , additionalFields ) ; sendAddit...
public class PropertiesRecord { /** * Add the behaviors to sync this property to this virtual field . */ public void addPropertiesFieldBehavior ( BaseField fldDisplay , String strProperty ) { } }
BaseField fldProperties = this . getField ( PropertiesRecord . PROPERTIES ) ; FieldListener listener = new CopyConvertersHandler ( new PropertiesConverter ( fldProperties , strProperty ) ) ; listener . setRespondsToMode ( DBConstants . INIT_MOVE , false ) ; listener . setRespondsToMode ( DBConstants . READ_MOVE , false...
public class SYMPART { /** * / * returns tile number between 0 and 8 * returns - 1 if out of any tile , function does * not depend on objFct ! */ public int findTileSYMPART ( double x1 , double x2 ) { } }
int dim ; double [ ] x = new double [ 2 ] ; double h1 ; double omega = Math . PI / 4.0 ; double si = Math . sin ( omega ) ; double co = Math . cos ( omega ) ; x [ 0 ] = x1 ; x [ 1 ] = x2 ; // rotate ( 2 , x ) ; for ( dim = 0 ; dim + 1 < 2 ; dim += 2 ) { h1 = x [ dim ] ; x [ dim ] = co * h1 - si * x [ dim + 1 ] ; x [ di...
public class Mutations { /** * Converts position from coordinates in seq1 ( before mutation ) to coordinates in seq2 ( after mutation ) using this * alignment ( mutations ) . * If letter in provided position is marked as deleted ( deletion ) in this mutations , this method will return { @ code * ( - 1 - imagePosi...
int p , result = seq1Position ; for ( int mut : mutations ) { p = getPosition ( mut ) ; if ( p > seq1Position ) return result ; switch ( mut & MUTATION_TYPE_MASK ) { case RAW_MUTATION_TYPE_DELETION : if ( p == seq1Position ) return - result - 1 ; -- result ; break ; case RAW_MUTATION_TYPE_INSERTION : ++ result ; break ...
public class AWSIotClient { /** * Accepts a pending certificate transfer . The default state of the certificate is INACTIVE . * To check for pending certificate transfers , call < a > ListCertificates < / a > to enumerate your certificates . * @ param acceptCertificateTransferRequest * The input for the AcceptCer...
request = beforeClientExecution ( request ) ; return executeAcceptCertificateTransfer ( request ) ;
public class CompositeBundlePathMappingBuilder { /** * Adds paths to the file path mapping * @ param bundlePathMapping * the bundle path mapping * @ param paths * the paths to add */ private void addFilePathMapping ( BundlePathMapping bundlePathMapping , Set < String > paths ) { } }
for ( String path : paths ) { addFilePathMapping ( bundlePathMapping , path ) ; }
public class Gpio { /** * < p > Priority , Interrupt and Thread Functions < / p > * This function registers a function to received interrupts on the specified pin . The edgeType parameter is either * INT _ EDGE _ FALLING , INT _ EDGE _ RISING , INT _ EDGE _ BOTH or INT _ EDGE _ SETUP . If it is INT _ EDGE _ SETUP t...
// if there is not collection in the array at this pin location , then initialize an array list if ( isrCallbacks [ pin ] == null ) { isrCallbacks [ pin ] = new ArrayList < > ( ) ; } // add provided callback interface to ISR callbacks collection isrCallbacks [ pin ] . add ( callback ) ; return _wiringPiISR ( pin , edge...
public class Gmap3DemoAppManifest { /** * Load all services and entities found in ( the packages and subpackages within ) these modules */ @ Override public List < Class < ? > > getModules ( ) { } }
return Arrays . asList ( Gmap3ApplibModule . class , Gmap3ServiceModule . class , Gmap3UiModule . class , Gmap3DemoFixtureModule . class , Gmap3DemoAppModule . class ) ;
public class InternalXbaseParser { /** * InternalXbase . g : 67:1 : ruleXExpression : ( ruleXAssignment ) ; */ public final void ruleXExpression ( ) throws RecognitionException { } }
int stackSize = keepStackSize ( ) ; try { // InternalXbase . g : 71:2 : ( ( ruleXAssignment ) ) // InternalXbase . g : 72:2 : ( ruleXAssignment ) { // InternalXbase . g : 72:2 : ( ruleXAssignment ) // InternalXbase . g : 73:3 : ruleXAssignment { if ( state . backtracking == 0 ) { before ( grammarAccess . getXExpression...
public class PaymentIntentParams { /** * Create the parameters necessary for confirming a PaymentIntent while attaching * { @ link PaymentMethodCreateParams } data * @ param paymentMethodCreateParams params for the PaymentMethod that will be attached to this * PaymentIntent * @ param clientSecret client secret ...
return new PaymentIntentParams ( ) . setPaymentMethodCreateParams ( paymentMethodCreateParams ) . setClientSecret ( clientSecret ) . setReturnUrl ( returnUrl ) . setSavePaymentMethod ( savePaymentMethod ) ;
public class AbstractMaterialDialogBuilder { /** * Sets the listener , which should be notified , when the dialog has been shown . * @ param listener * The listener , which should be set , as an instance of the type { @ link * DialogInterface . OnShowListener } , or null , if no listener should be set */ public B...
getProduct ( ) . setOnShowListener ( listener ) ; return self ( ) ;
public class RowColumnOps { /** * Swaps the rows < tt > j < / tt > and < tt > k < / tt > in the given matrix . * @ param A the matrix to perform he update on * @ param j the first row to swap * @ param k the second row to swap * @ param start the first column that will be included in the swap ( inclusive ) * ...
double t ; for ( int i = start ; i < to ; i ++ ) { t = A . get ( j , i ) ; A . set ( j , i , A . get ( k , i ) ) ; A . set ( k , i , t ) ; }
public class Sets { /** * Sets target content to be the same as source without clearing the target . * @ param < T > * @ param source * @ param target */ public static final < T > void assign ( Set < T > source , Set < T > target ) { } }
target . retainAll ( source ) ; target . addAll ( source ) ;
public class NormalizerSerializer { /** * Serialize a normalizer to the given file path * @ param normalizer the normalizer * @ param path the destination file path * @ throws IOException */ public void write ( @ NonNull Normalizer normalizer , @ NonNull String path ) throws IOException { } }
try ( OutputStream out = new BufferedOutputStream ( new FileOutputStream ( path ) ) ) { write ( normalizer , out ) ; }
public class CachedGroupMapping { /** * Gets a list of groups for the given user . * @ param user user name * @ return the list of groups that the user belongs to */ public List < String > getGroups ( String user ) throws IOException { } }
if ( ! mCacheEnabled ) { return mService . getGroups ( user ) ; } try { return mCache . get ( user ) ; } catch ( ExecutionException e ) { throw new IOException ( e ) ; }
public class SRTPCryptoContext { /** * Authenticate a packet . Calculated authentication tag is returned . * @ param pkt * the RTP packet to be authenticated * @ param rocIn * Roll - Over - Counter */ private void authenticatePacketHMCSHA1 ( RawPacket pkt , int rocIn ) { } }
ByteBuffer buf = pkt . getBuffer ( ) ; buf . rewind ( ) ; int len = buf . remaining ( ) ; buf . get ( tempBuffer , 0 , len ) ; mac . update ( tempBuffer , 0 , len ) ; rbStore [ 0 ] = ( byte ) ( rocIn >> 24 ) ; rbStore [ 1 ] = ( byte ) ( rocIn >> 16 ) ; rbStore [ 2 ] = ( byte ) ( rocIn >> 8 ) ; rbStore [ 3 ] = ( byte ) ...
public class XsdAsmElements { /** * Creates some class specific methods that all implementations of { @ link XsdAbstractElement } should have , which are : * Constructor ( ElementVisitor visitor ) - Assigns the argument to the visitor field ; * Constructor ( Element parent ) - Assigns the argument to the parent fie...
String classType = getFullClassTypeName ( typeName , apiName ) ; String classTypeDesc = getFullClassTypeNameDesc ( typeName , apiName ) ; String name = firstToLower ( className ) ; FieldVisitor fVisitor = classWriter . visitField ( ACC_PROTECTED + ACC_FINAL , "parent" , elementTypeDesc , "TZ;" , null ) ; fVisitor . vis...
public class JsHdrsImpl { /** * Set the boolean ' value ' of one of the flags in the FLAGS field of th message . * @ param flagBit A byte with a single bit set on , marking the position * of the required flag . * @ param value true if the required flag is to be set on , otherwise false */ private final void setFl...
if ( value ) { flags = ( byte ) ( getFlags ( ) | flagBit ) ; } else { flags = ( byte ) ( getFlags ( ) & ( ~ flagBit ) ) ; }
public class DefaultJsonReader { /** * { @ inheritDoc } */ @ Override public String nextValue ( ) { } }
int p = peeked ; if ( p == PEEKED_NONE ) { p = doPeek ( ) ; } if ( p == PEEKED_NULL ) { peeked = PEEKED_NONE ; return "null" ; } JsonWriter writer = new DefaultJsonWriter ( new StringBuilder ( ) ) ; writer . setLenient ( true ) ; int count = 0 ; do { p = peeked ; if ( p == PEEKED_NONE ) { p = doPeek ( ) ; } if ( p == P...
public class SpatialAnchorsAccountsInner { /** * Creating or Updating a Spatial Anchors Account . * @ param resourceGroupName Name of an Azure resource group . * @ param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account . * @ param spatialAnchorsAccount Spatial Anchors Account parameter ....
return ServiceFuture . fromResponse ( createWithServiceResponseAsync ( resourceGroupName , spatialAnchorsAccountName , spatialAnchorsAccount ) , serviceCallback ) ;
public class Ifc4PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ @ Override public EClass getIfcRelSpaceBoundary2ndLevel ( ) { } }
if ( ifcRelSpaceBoundary2ndLevelEClass == null ) { ifcRelSpaceBoundary2ndLevelEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( Ifc4Package . eNS_URI ) . getEClassifiers ( ) . get ( 562 ) ; } return ifcRelSpaceBoundary2ndLevelEClass ;
public class RandomSplitter { /** * { @ inheritDoc } */ @ Override public TemporalDataModelIF < U , I > [ ] split ( final TemporalDataModelIF < U , I > data ) { } }
@ SuppressWarnings ( "unchecked" ) final TemporalDataModelIF < U , I > [ ] splits = new TemporalDataModelIF [ 2 ] ; splits [ 0 ] = new TemporalDataModel < > ( ) ; // training splits [ 1 ] = new TemporalDataModel < > ( ) ; // test if ( perUser ) { for ( U user : data . getUsers ( ) ) { if ( doSplitPerItems ) { List < I ...
public class DeviceManagerClient { /** * Updates a device registry configuration . * < p > Sample code : * < pre > < code > * try ( DeviceManagerClient deviceManagerClient = DeviceManagerClient . create ( ) ) { * DeviceRegistry deviceRegistry = DeviceRegistry . newBuilder ( ) . build ( ) ; * FieldMask updateM...
UpdateDeviceRegistryRequest request = UpdateDeviceRegistryRequest . newBuilder ( ) . setDeviceRegistry ( deviceRegistry ) . setUpdateMask ( updateMask ) . build ( ) ; return updateDeviceRegistry ( request ) ;
public class AdminToolIntegrityUtil { /** * checks for integrity errors * @ return empty list or errors */ public List < MenuIntegrityError > checkMenuIntegrity ( ) { } }
List < MenuIntegrityError > errorList = new ArrayList < > ( ) ; Map < String , MenuEntry > links = new HashMap < > ( ) ; Map < String , MenuEntry > templates = new HashMap < > ( ) ; // check for duplicates , but only if menu has no submenu , otherwise o // link will be generated for ( AdminComponent comp : adminTool . ...
public class FileUtils { /** * Recursively copies a directory . * @ param sourceDir the source directory * @ param destDir the destination directory , which does not need to already exist * @ param copyOption options to be used for copying files */ public static void recursivelyCopyDirectory ( final File sourceDi...
checkNotNull ( sourceDir ) ; checkNotNull ( destDir ) ; checkArgument ( sourceDir . isDirectory ( ) , "Source directory does not exist" ) ; java . nio . file . Files . createDirectories ( destDir . toPath ( ) ) ; walkFileTree ( sourceDir . toPath ( ) , new CopyFileVisitor ( sourceDir . toPath ( ) , destDir . toPath ( )...
public class CPSpecificationOptionUtil { /** * Removes the cp specification option where groupId = & # 63 ; and key = & # 63 ; from the database . * @ param groupId the group ID * @ param key the key * @ return the cp specification option that was removed */ public static CPSpecificationOption removeByG_K ( long ...
return getPersistence ( ) . removeByG_K ( groupId , key ) ;
public class StatisticsUtil { /** * Aggregates statistical information . * @ param data a list of statistical information * @ return the aggregate of all */ public static Statistics statisticsOf ( List < Statistics > data ) { } }
if ( data . isEmpty ( ) ) return null ; Iterator < Statistics > iterator = data . iterator ( ) ; if ( ! iterator . hasNext ( ) ) { return null ; } Statistics first = null ; while ( first == null && iterator . hasNext ( ) ) { first = iterator . next ( ) ; } if ( first == null ) return null ; int count = first . getCount...
public class FunctionParamBuilder { /** * Add parameters of the given type to the end of the param list . * @ return False if this is called after optional params are added . */ public boolean addRequiredParams ( JSType ... types ) { } }
if ( hasOptionalOrVarArgs ( ) ) { return false ; } for ( JSType type : types ) { newParameter ( type ) ; } return true ;
public class KTypeHashSet { /** * { @ inheritDoc } */ @ Override public < T extends KTypeProcedure < ? super KType > > T forEach ( T procedure ) { } }
if ( hasEmptyKey ) { procedure . apply ( Intrinsics . < KType > empty ( ) ) ; } final KType [ ] keys = Intrinsics . < KType [ ] > cast ( this . keys ) ; for ( int slot = 0 , max = this . mask ; slot <= max ; slot ++ ) { KType existing ; if ( ! Intrinsics . isEmpty ( existing = keys [ slot ] ) ) { procedure . apply ( ex...
public class GenericMethod { /** * Sets the value of parameter with parameterName to parameterValue . This method * does not preserve the initial insertion order . * @ param parameterName name of the parameter * @ param parameterValue value of the parameter * @ since 2.0 */ public void setParameter ( String par...
log . trace ( "enter PostMethod.setParameter(String, String)" ) ; removeParameter ( parameterName ) ; addParameter ( parameterName , parameterValue ) ;
public class CompatibilityMap { /** * Turn an CompatibilityMap into its encoded form * @ return the encoded form as a byte array */ public byte [ ] toEncodedForm ( ) { } }
if ( encodedForm == null ) { encodedForm = new byte [ encodedSize ( ) ] ; ArrayUtil . writeLong ( encodedForm , 0 , accessSchemaId ) ; encode ( encodedForm , new int [ ] { 8 , encodedForm . length } ) ; } return encodedForm ;
public class DDPBroadcastReceiver { /** * Override this to hook into what happens when DDP connect happens * Default behavior is to feed in the resume token if available * @ param ddp DDP singleton */ protected void onDDPConnect ( DDPStateSingleton ddp ) { } }
if ( ! ddp . isLoggedIn ( ) ) { // override this to handle first time connection ( usually to subscribe ) // if we have a login resume token , use it String resumeToken = ddp . getResumeToken ( ) ; if ( resumeToken != null ) { ddp . login ( resumeToken ) ; } }
public class ThrottleableTransport { /** * Only executed if the Allow Throttling checkbox is set in the input ' s configuration . * @ param throttleState current processing system state */ @ Subscribe public void updateThrottleState ( ThrottleState throttleState ) { } }
// Only run if throttling is enabled . if ( ! throttlingAllowed ) { return ; } // check if we are throttled final boolean throttled = determineIfThrottled ( throttleState ) ; if ( currentlyThrottled . get ( ) ) { // no need to unblock if ( throttled ) { return ; } // sanity check if ( blockLatch == null ) { log . error...
public class StartupDatabaseConnection { /** * Separates all key / value pairs of given text string . * < b > Evaluation algorithm : < / b > < br / > * Separates the text by all found commas ( only if in front of the comma is no back slash ) . This are the key / value * pairs . A key / value pair is separated by ...
final Map < String , String > properties = new HashMap < > ( ) ; if ( StringUtils . isNotEmpty ( _text ) ) { // separated all key / value pairs final Pattern pattern = Pattern . compile ( "(([^\\\\,])|(\\\\,)|(\\\\))*" ) ; final Matcher matcher = pattern . matcher ( _text ) ; while ( matcher . find ( ) ) { final String...
public class DObject { /** * Requests that the specified attribute be changed to the specified value . Normally the * generated setter methods should be used but in rare cases a caller may wish to update * distributed fields in a generic manner . */ public void changeAttribute ( String name , Object value ) { } }
Accessor acc = getAccessor ( name ) ; requestAttributeChange ( name , value , acc . get ( this ) ) ; acc . set ( this , value ) ;
public class KTypeVTypeHashMap { /** * Puts all key / value pairs from a given iterable into this map . */ @ Override public int putAll ( Iterable < ? extends KTypeVTypeCursor < ? extends KType , ? extends VType > > iterable ) { } }
final int count = size ( ) ; for ( KTypeVTypeCursor < ? extends KType , ? extends VType > c : iterable ) { put ( c . key , c . value ) ; } return size ( ) - count ;
public class SelectorProvider { /** * Returns the system - wide default selector provider for this invocation of * the Java virtual machine . * < p > The first invocation of this method locates the default provider * object as follows : < / p > * < ol > * < li > < p > If the system property * < tt > java . ...
synchronized ( lock ) { if ( provider != null ) return provider ; /* return AccessController . doPrivileged ( new PrivilegedAction < SelectorProvider > ( ) { public SelectorProvider run ( ) { if ( loadProviderFromProperty ( ) ) return provider ; if ( loadProviderAsService ( ) ) return provider ; provider ...
public class Normalizer2Impl { /** * buffer = = NULL : isNormalized / quickCheck / spanQuickCheckYes */ public int makeFCD ( CharSequence s , int src , int limit , ReorderingBuffer buffer ) { } }
// Note : In this function we use buffer - > appendZeroCC ( ) because we track // the lead and trail combining classes here , rather than leaving it to // the ReorderingBuffer . // The exception is the call to decomposeShort ( ) which uses the buffer // in the normal way . // Tracks the last FCD - safe boundary , befor...
public class NavigationTelemetry { /** * Called when a new { @ link DirectionsRoute } is given in * { @ link MapboxNavigation # startNavigation ( DirectionsRoute ) } . * At this point , navigation has already begun and the { @ link SessionState } * needs to be updated . * @ param directionsRoute new route passe...
SessionState . Builder navigationBuilder = navigationSessionState . toBuilder ( ) . tripIdentifier ( TelemetryUtils . obtainUniversalUniqueIdentifier ( ) ) ; navigationBuilder . currentDirectionRoute ( directionsRoute ) ; eventDispatcher . addMetricEventListeners ( this ) ; if ( isOffRoute ) { // If we are off - route ...
public class DiagnosticsInner { /** * Get Site Analysis . * Get Site Analysis . * @ param resourceGroupName Name of the resource group to which the resource belongs . * @ param siteName Site Name * @ param diagnosticCategory Diagnostic Category * @ param analysisName Analysis Name * @ throws IllegalArgument...
return getSiteAnalysisWithServiceResponseAsync ( resourceGroupName , siteName , diagnosticCategory , analysisName ) . toBlocking ( ) . single ( ) . body ( ) ;
public class DataPointMarshaller { /** * Marshall the given parameter object . */ public void marshall ( DataPoint dataPoint , ProtocolMarshaller protocolMarshaller ) { } }
if ( dataPoint == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( dataPoint . getTimestamp ( ) , TIMESTAMP_BINDING ) ; protocolMarshaller . marshall ( dataPoint . getValue ( ) , VALUE_BINDING ) ; } catch ( Exception e ) { throw new SdkClient...
public class XmlParser { /** * This is just to work around the fact that casting java . util . List < ca . uhn . fhir . model . api . ExtensionDt > to * java . util . List < ? extends org . hl7 . fhir . instance . model . api . IBaseExtension < ? , ? > > seems to be * rejected by the compiler some of the time . */ ...
List < IBaseExtension < ? , ? > > retVal = new ArrayList < IBaseExtension < ? , ? > > ( theList . size ( ) ) ; retVal . addAll ( theList ) ; return retVal ;
public class AgentSession { /** * Allows the addition of a new key - value pair to the agent ' s meta data , if the value is * new data , the revised meta data will be rebroadcast in an agent ' s presence broadcast . * @ param key the meta data key * @ param val the non - null meta data value * @ throws XMPPExc...
synchronized ( this . metaData ) { List < String > oldVals = metaData . get ( key ) ; if ( oldVals == null || ! oldVals . get ( 0 ) . equals ( val ) ) { oldVals . set ( 0 , val ) ; setStatus ( presenceMode , maxChats ) ; } }
public class WMultiTextFieldRenderer { /** * Paints the given WMultiTextField . * @ param component the WMultiTextField to paint . * @ param renderContext the RenderContext to paint to . */ @ Override public void doRender ( final WComponent component , final WebXmlRenderContext renderContext ) { } }
WMultiTextField textField = ( WMultiTextField ) component ; XmlStringBuilder xml = renderContext . getWriter ( ) ; boolean readOnly = textField . isReadOnly ( ) ; String [ ] values = textField . getTextInputs ( ) ; xml . appendTagOpen ( "ui:multitextfield" ) ; xml . appendAttribute ( "id" , component . getId ( ) ) ; xm...
public class AWSApplicationDiscoveryClient { /** * Retrieves attributes for a list of configuration item IDs . * < note > * All of the supplied IDs must be for the same asset type from one of the following : * < ul > * < li > * server * < / li > * < li > * application * < / li > * < li > * process...
request = beforeClientExecution ( request ) ; return executeDescribeConfigurations ( request ) ;
public class FileUtil { /** * 判断是否为文件 , 如果file为null , 则返回false * @ param path 文件 * @ param isFollowLinks 是否跟踪软链 ( 快捷方式 ) * @ return 如果为文件true */ public static boolean isFile ( Path path , boolean isFollowLinks ) { } }
if ( null == path ) { return false ; } final LinkOption [ ] options = isFollowLinks ? new LinkOption [ 0 ] : new LinkOption [ ] { LinkOption . NOFOLLOW_LINKS } ; return Files . isRegularFile ( path , options ) ;
public class DRL6Lexer { /** * $ ANTLR end synpred1 _ DRL6Lexer */ public final boolean synpred1_DRL6Lexer ( ) { } }
state . backtracking ++ ; int start = input . mark ( ) ; try { synpred1_DRL6Lexer_fragment ( ) ; // can never throw exception } catch ( RecognitionException re ) { System . err . println ( "impossible: " + re ) ; } boolean success = ! state . failed ; input . rewind ( start ) ; state . backtracking -- ; state . failed ...
public class BindingsHelper { /** * Provides a mechanism for reading the system property for disabling short * form default bindings . < p > * com . ibm . websphere . ejbcontainer . disableShortDefaultBindings < p > * This property can be used to identify applications for which Short form * default jndi binding...
if ( ContainerProperties . DisableShortDefaultBindings != null ) { if ( ContainerProperties . DisableShortDefaultBindings . size ( ) == 0 ) { // The user specified a " * " which means simple bindings are // disabled for all applications . if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . d...
public class FTPArchiveClient { /** * Creates the listener . * @ return the copy stream listener */ private static CopyStreamListener createListener ( ) { } }
return new CopyStreamListener ( ) { private long megsTotal = 0 ; // @ Override @ Override public void bytesTransferred ( CopyStreamEvent event ) { bytesTransferred ( event . getTotalBytesTransferred ( ) , event . getBytesTransferred ( ) , event . getStreamSize ( ) ) ; } // @ Override @ Override public void bytesTransfe...
public class StorageSnippets { /** * [ VARIABLE 42] */ public Blob getBlobFromStringsWithMetageneration ( String bucketName , String blobName , long blobMetageneration ) { } }
// [ START getBlobFromStringsWithMetageneration ] Blob blob = storage . get ( bucketName , blobName , BlobGetOption . metagenerationMatch ( blobMetageneration ) ) ; // [ END getBlobFromStringsWithMetageneration ] return blob ;
public class MutateInBuilder { /** * Insert into an existing array at a specific position * ( denoted in the path , eg . " sub . array [ 2 ] " ) . * @ param path the path ( including array position ) where to insert the value . * @ param value the value to insert in the array . */ public < T > MutateInBuilder arr...
asyncBuilder . arrayInsert ( path , value ) ; return this ;
public class AbstractEndpointBuilder { /** * Initializes the endpoint . * @ return */ public AbstractEndpointBuilder < T > initialize ( ) { } }
if ( getEndpoint ( ) instanceof InitializingBean ) { try { ( ( InitializingBean ) getEndpoint ( ) ) . afterPropertiesSet ( ) ; } catch ( Exception e ) { throw new CitrusRuntimeException ( "Failed to initialize endpoint" , e ) ; } } return this ;
public class MementoResource { /** * Create a response builder for a TimeGate response . * @ param mementos the list of memento ranges * @ param req the LDP request * @ param baseUrl the base URL * @ return a response builder object */ public ResponseBuilder getTimeGateBuilder ( final SortedSet < Instant > meme...
final String identifier = fromUri ( baseUrl ) . path ( req . getPath ( ) ) . build ( ) . toString ( ) ; return status ( FOUND ) . location ( fromUri ( identifier + "?version=" + req . getDatetime ( ) . getInstant ( ) . getEpochSecond ( ) ) . build ( ) ) . link ( identifier , ORIGINAL + " " + TIMEGATE ) . links ( getMem...
public class Promise { /** * Returns a new Promise that is completed when all of the given Promise * complete . If any of the given Promise complete exceptionally , then the * returned Promise also does so , with a Promise holding this exception as * its cause . * @ param promises * array of Promises * @ re...
if ( promises == null || promises . isEmpty ( ) ) { return Promise . resolve ( ) ; } Promise [ ] array = new Promise [ promises . size ( ) ] ; promises . toArray ( array ) ; return all ( array ) ;
public class WebJars { /** * Checks whether the given file is a WebJar or not ( http : / / www . webjars . org / documentation ) . * The check is based on the presence of { @ literal META - INF / resources / webjars / } directory in the jar file . * @ param file the file . * @ return { @ literal true } if it ' s ...
Set < String > found = new LinkedHashSet < > ( ) ; if ( file . isFile ( ) && file . getName ( ) . endsWith ( ".jar" ) ) { JarFile jar = null ; try { jar = new JarFile ( file ) ; // Fast return if the base structure is not there if ( jar . getEntry ( WEBJAR_LOCATION ) == null ) { return false ; } Enumeration < JarEntry ...
public class CheckFormatMojo { /** * Checks the formatting of the given { @ code file } . The file is read using the given { @ code encoding } and the * violations are reported to the given { @ code violationHandler } . * @ param file the file to check * @ param encoding the encoding to use for reading the { @ co...
Reader in = null ; try { in = new InputStreamReader ( new FileInputStream ( file ) , encoding ) ; SAXParser saxParser = saxParserFactory . newSAXParser ( ) ; IndentCheckSaxHandler handler = new IndentCheckSaxHandler ( file , indentSize , violationHandler ) ; saxParser . parse ( new InputSource ( in ) , handler ) ; } ca...
public class Repartitioner { /** * Randomly shuffle partitions between nodes within every zone . * @ param nextCandidateCluster cluster object . * @ param randomSwapAttempts See RebalanceCLI . * @ param randomSwapSuccesses See RebalanceCLI . * @ param randomSwapZoneIds The set of zoneIds to consider . Each zone...
List < Integer > zoneIds = null ; if ( randomSwapZoneIds . isEmpty ( ) ) { zoneIds = new ArrayList < Integer > ( nextCandidateCluster . getZoneIds ( ) ) ; } else { zoneIds = new ArrayList < Integer > ( randomSwapZoneIds ) ; } List < Integer > nodeIds = new ArrayList < Integer > ( ) ; Cluster returnCluster = Cluster . c...
public class MySQLManager { /** * Creates an instance of MySQLManager that exposes DBforMySQL resource management API entry points . * @ param credentials the credentials to use * @ param subscriptionId the subscription UUID * @ return the MySQLManager */ public static MySQLManager authenticate ( AzureTokenCreden...
return new MySQLManager ( new RestClient . Builder ( ) . withBaseUrl ( credentials . environment ( ) , AzureEnvironment . Endpoint . RESOURCE_MANAGER ) . withCredentials ( credentials ) . withSerializerAdapter ( new AzureJacksonAdapter ( ) ) . withResponseBuilderFactory ( new AzureResponseBuilder . Factory ( ) ) . buil...
public class BuildsInner { /** * Patch the build properties . * @ 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 thrown if parameters...
if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( registr...
public class ConvertBufferedImage { /** * Draws the component into a BufferedImage . * @ param compThe component being drawn into an image . * @ param storage if not null the component is drawn into it , if null a new BufferedImage is created . * @ return image of the component */ public static BufferedImage conv...
if ( storage == null ) storage = new BufferedImage ( comp . getWidth ( ) , comp . getHeight ( ) , BufferedImage . TYPE_INT_RGB ) ; Graphics2D g2 = storage . createGraphics ( ) ; comp . paintComponents ( g2 ) ; return storage ;
public class IPAddressSection { /** * Starting from the first host bit according to the prefix , if the section is a sequence of zeros in both low and high values , * followed by a sequence where low values are zero and high values are 1 , then the section is a subnet prefix . * Note that this includes sections whe...
int segmentCount = sectionSegments . length ; if ( segmentCount == 0 ) { return false ; } IPAddressSegment seg = sectionSegments [ 0 ] ; return ParsedAddressGrouping . isPrefixSubnet ( ( segmentIndex ) -> sectionSegments [ segmentIndex ] . getSegmentValue ( ) , ( segmentIndex ) -> sectionSegments [ segmentIndex ] . get...
public class AbstractObjectTarget { /** * { @ inheritDoc } */ public Set < String > getPropertyNames ( ) { } }
List < PropertyDescriptor > properties = getWriteableProperties ( m_itemClass ) ; Set < String > propertyNames = new HashSet < String > ( properties . size ( ) ) ; for ( PropertyDescriptor pd : properties ) { propertyNames . add ( pd . getName ( ) ) ; } return propertyNames ;
public class MutableDocument { /** * Set a dictionary as a content . Allowed value types are List , Date , Map , Number , null , String , * Array , Blob , and Dictionary . The List and Map must contain only the above types . * Setting the new dictionary content will replace the current data including the existing A...
( ( MutableDictionary ) internalDict ) . setData ( data ) ; return this ;
public class AFPChainer { /** * return the root mean square of the distance matrix between the residues * from the segments that form the given AFP list * this value can be a measurement ( 2 ) for the connectivity of the AFPs * and its calculation is quicker than the measurement ( 1 ) , rmsd * currently only de...
List < AFP > afpSet = afpChain . getAfpSet ( ) ; Matrix disTable1 = afpChain . getDisTable1 ( ) ; Matrix disTable2 = afpChain . getDisTable2 ( ) ; int fragLen = params . getFragLen ( ) ; double afpDisCut = params . getAfpDisCut ( ) ; double disCut = params . getDisCut ( ) ; double fragLenSq = params . getFragLenSq ( ) ...
public class MappingUtil { /** * Remove the given item * @ param columnFamily * column family of the item * @ param item * the item to remove * @ throws Exception * errors */ public < T , K > void remove ( ColumnFamily < K , String > columnFamily , T item ) throws Exception { } }
@ SuppressWarnings ( { "unchecked" } ) Class < T > clazz = ( Class < T > ) item . getClass ( ) ; Mapping < T > mapping = getMapping ( clazz ) ; @ SuppressWarnings ( { "unchecked" } ) Class < K > idFieldClass = ( Class < K > ) mapping . getIdFieldClass ( ) ; // safe - // after // erasure , // this is // all // just // C...
public class PrefixedProperties { /** * ( non - Javadoc ) * @ see java . util . Properties # loadFromXML ( java . io . InputStream ) */ @ Override public void loadFromXML ( final InputStream in ) throws IOException { } }
lock . writeLock ( ) . lock ( ) ; try { properties . loadFromXML ( in ) ; } finally { lock . writeLock ( ) . unlock ( ) ; }
public class MinibatchLbfgs { /** * Creates a minibatch LBFGS trainer that iterates over { @ code batchIterations } * minibatches , where each batch contains { @ code examplesPerMinibatch } examples * and is optimized with LBFGS for { @ code iterationsPerMinibatch } . * @ param numVectorsInApproximation * @ par...
int [ ] minibatchSizeSchedule = new int [ batchIterations ] ; int [ ] maxIterationsPerMinibatch = new int [ batchIterations ] ; Arrays . fill ( minibatchSizeSchedule , examplesPerMinibatch ) ; Arrays . fill ( maxIterationsPerMinibatch , iterationsPerMinibatch ) ; return new MinibatchLbfgs ( numVectorsInApproximation , ...
import java . io . * ; import java . lang . * ; import java . util . * ; import java . math . * ; class Main { /** * Java function to determine the minimum number of operations required * to make two numbers equal . * Examples : * > > > min _ steps _ to _ equate _ numbers ( 2 , 4) * > > > min _ steps _ to _ equ...
if ( num1 > num2 ) { int temp = num1 ; num1 = num2 ; num2 = temp ; } num2 = num2 / gcd ( num1 , num2 ) ; return num2 - 1 ;
public class ChangeTracker { /** * ( See issues iOS # 1020 , # 1267 , Android # 978) */ private boolean isCloudantAuthError ( Response response ) { } }
String server = response . header ( "Server" ) ; // Cloudant could send ` CouchDB / ad97a06 ( Erlang OTP / 17 ) ` as Server header value // Another cloudant server value example : ` CouchDB / 1.0.2 ` if ( server == null || server . indexOf ( "CouchDB/" ) == - 1 ) // ( Accurate as of 5/2016) return false ; // Note : 401...
public class ApiOvhMetrics { /** * Modify a token * REST : PUT / metrics / { serviceName } / token / { tokenId } * @ param description [ required ] New description for your token * @ param serviceName [ required ] Name of your service * @ param tokenId [ required ] ID of the desired token * API beta */ public...
String qPath = "/metrics/{serviceName}/token/{tokenId}" ; StringBuilder sb = path ( qPath , serviceName , tokenId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "description" , description ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp...
public class CommercePriceListAccountRelPersistenceImpl { /** * Returns the first commerce price list account rel in the ordered set where commercePriceListId = & # 63 ; . * @ param commercePriceListId the commerce price list ID * @ param orderByComparator the comparator to order the set by ( optionally < code > nu...
CommercePriceListAccountRel commercePriceListAccountRel = fetchByCommercePriceListId_First ( commercePriceListId , orderByComparator ) ; if ( commercePriceListAccountRel != null ) { return commercePriceListAccountRel ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . app...
public class PushSync { /** * List of SNS platform application ARNs that could be used by clients . * @ return List of SNS platform application ARNs that could be used by clients . */ public java . util . List < String > getApplicationArns ( ) { } }
if ( applicationArns == null ) { applicationArns = new com . amazonaws . internal . SdkInternalList < String > ( ) ; } return applicationArns ;
public class ObjectFactory { /** * Create an instance of { @ link JAXBElement } { @ code < } { @ link DoorType } { @ code > } * @ param value * Java instance representing xml element ' s value . * @ return * the new instance of { @ link JAXBElement } { @ code < } { @ link DoorType } { @ code > } */ @ XmlElement...
return new JAXBElement < DoorType > ( _Door_QNAME , DoorType . class , null , value ) ;
public class BaseSerializer { /** * Serialize a list of IReducers */ public String serializeReducerList ( List < IAssociativeReducer > list ) { } }
ObjectMapper om = getObjectMapper ( ) ; try { return om . writeValueAsString ( new ListWrappers . ReducerList ( list ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; }
public class AbstrCFMLScriptTransformer { /** * Liest ein while Statement ein . < br / > * EBNF : < br / > * < code > spaces condition spaces " ) " spaces block ; < / code > * @ return while Statement * @ throws TemplateException */ private final While whileStatement ( Data data ) throws TemplateException { } }
int pos = data . srcCode . getPos ( ) ; // id String id = variableDec ( data , false ) ; if ( id == null ) { data . srcCode . setPos ( pos ) ; return null ; } if ( id . equalsIgnoreCase ( "while" ) ) { id = null ; data . srcCode . removeSpace ( ) ; if ( ! data . srcCode . forwardIfCurrent ( '(' ) ) { data . srcCode . s...
public class VerificationConditionGenerator { private Context translateStatementBlock ( WyilFile . Stmt . Block block , Context context ) { } }
for ( int i = 0 ; i != block . size ( ) ; ++ i ) { WyilFile . Stmt stmt = block . get ( i ) ; context = translateStatement ( stmt , context ) ; if ( stmt instanceof WyilFile . Stmt . Return ) { return null ; } } return context ;
public class JMEmbeddedElasticsearch { /** * ( non - Javadoc ) * @ see org . elasticsearch . node . Node # start ( ) */ @ Override public Node start ( ) { } }
try { Node node = super . start ( ) ; JMThread . sleep ( 1000 ) ; return node ; } catch ( NodeValidationException e ) { return JMExceptionManager . handleExceptionAndThrowRuntimeEx ( log , e , "start" ) ; }
public class EventsHelper { /** * Bind a function to the mouseup event of each matched element . * @ param jsScope * Scope to use * @ return the jQuery code */ public static ChainableStatement mouseup ( JsScope jsScope ) { } }
return new DefaultChainableStatement ( MouseEvent . MOUSEUP . getEventLabel ( ) , jsScope . render ( ) ) ;
public class Json { /** * Proxy method for getting the Parser and calling parse ( ) . * @ param data JSON byte array to be parsed . * @ param type Deserialized type for the JSON data * @ param < T > Deserialzed object type * @ return The JSON data deserialized */ public static < T > T parse ( byte [ ] data , Ty...
return Holder . parser . parse ( data , type ) ;
public class KieServerHttpRequest { /** * Set the ' Content - Type ' request header to the given value and charset * @ param contentType * @ param charset * @ return this request */ public KieServerHttpRequest contentType ( final String contentType , final String charset ) { } }
if ( charset != null && charset . length ( ) > 0 ) { final String separator = "; " + PARAM_CHARSET + '=' ; return header ( CONTENT_TYPE , contentType + separator + charset ) ; } else return header ( CONTENT_TYPE , contentType ) ;
public class Vector { /** * Subtracts a vector from this one . * @ param vec The other vector * @ return the same vector */ public Vector subtract ( Vector vec ) { } }
x -= vec . x ; y -= vec . y ; z -= vec . z ; return this ;
public class ApiOvhTelephony { /** * Alter this object properties * REST : PUT / telephony / { billingAccount } / line / { serviceName } / phone * @ param body [ required ] New object properties * @ param billingAccount [ required ] The name of your billingAccount * @ param serviceName [ required ] */ public vo...
String qPath = "/telephony/{billingAccount}/line/{serviceName}/phone" ; StringBuilder sb = path ( qPath , billingAccount , serviceName ) ; exec ( qPath , "PUT" , sb . toString ( ) , body ) ;
public class SingletonGrid { @ Override public ImmutableSet < Cell < V > > cells ( ) { } }
return ImmutableSet . < Cell < V > > of ( cell ) ;
public class CmsLocaleManager { /** * Adds a locale to the list of available locales . < p > * @ param localeName the locale to add */ public void addAvailableLocale ( String localeName ) { } }
Locale locale = getLocale ( localeName ) ; // add full variation ( language / country / variant ) if ( ! m_availableLocales . contains ( locale ) ) { m_availableLocales . add ( locale ) ; if ( CmsLog . INIT . isInfoEnabled ( ) ) { CmsLog . INIT . info ( Messages . get ( ) . getBundle ( ) . key ( Messages . INIT_I18N_CO...
public class WeekDay { /** * Returns the corresponding day constant to the specified * java . util . Calendar . DAY _ OF _ WEEK property . * @ param calDay a property value of java . util . Calendar . DAY _ OF _ WEEK * @ return a string , or null if an invalid DAY _ OF _ WEEK property is * specified */ public s...
WeekDay day = null ; switch ( calDay ) { case Calendar . SUNDAY : day = SU ; break ; case Calendar . MONDAY : day = MO ; break ; case Calendar . TUESDAY : day = TU ; break ; case Calendar . WEDNESDAY : day = WE ; break ; case Calendar . THURSDAY : day = TH ; break ; case Calendar . FRIDAY : day = FR ; break ; case Cale...
public class AuthzFacadeImpl { /** * ( non - Javadoc ) * @ see com . att . authz . facade . AuthzFacade # requestNS ( com . att . authz . env . AuthzTrans , javax . servlet . http . HttpServletRequest , javax . servlet . http . HttpServletResponse ) */ @ Override public Result < Void > deleteNS ( AuthzTrans trans , H...
TimeTaken tt = trans . start ( DELETE_NS + ' ' + ns , Env . SUB | Env . ALWAYS ) ; try { Result < Void > rp = service . deleteNS ( trans , ns ) ; switch ( rp . status ) { case OK : setContentType ( resp , nsRequestDF . getOutType ( ) ) ; return Result . ok ( ) ; default : return Result . err ( rp ) ; } } catch ( Except...
public class AccountsInner { /** * Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account . The response includes a link to the next page , if any . * @ param resourceGroupName The name of the Azure resource group that contains the Data Lake Analytics account . * @ param...
return AzureServiceFuture . fromPageResponse ( listDataLakeStoreAccountsSinglePageAsync ( resourceGroupName , accountName , filter , top , skip , expand , select , orderby , count , search , format ) , new Func1 < String , Observable < ServiceResponse < Page < DataLakeStoreAccountInfoInner > > > > ( ) { @ Override publ...