##Enum implementation ###Implementation 1
enum Day
{
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY;
}
###Implementation 1
[general] | |
static=yes | |
writeprotect=No | |
autofallthrough=No | |
clearglobalvars=No | |
priorityjumping=No | |
;------------------------------------------------------ | |
[Default] | |
include=>python |
CREATE TABLE `cdr` ( | |
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, | |
`calldate` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', | |
`clid` VARCHAR(80) NOT NULL DEFAULT '', | |
`src` VARCHAR(80) NOT NULL DEFAULT '', | |
`dst` VARCHAR(80) NOT NULL DEFAULT '', | |
`dcontext` VARCHAR(80) NOT NULL DEFAULT '', | |
`lastapp` VARCHAR(200) NOT NULL DEFAULT '', | |
`lastdata` VARCHAR(200) NOT NULL DEFAULT '', | |
`duration` FLOAT UNSIGNED NULL DEFAULT NULL, |
@Around("execution(* cs544.spring.bank.service.*.*(..))") | |
public Object invoke(ProceedingJoinPoint call ) throws Throwable { | |
StopWatch sw = new StopWatch(); | |
sw.start(call.getSignature().getName()); | |
Object retVal = call.proceed(); | |
sw.stop(); | |
long totaltime = sw.getLastTaskTimeMillis(); | |
System.out.println("Time taken :" +totaltime); | |
return retVal; | |
} |
public enum Error { | |
DATABASE(0, "A database error has occured."), | |
DUPLICATE_USER(1, "This user already exists."); | |
private final int code; | |
private final String description; | |
private Error(int code, String description) { | |
this.code = code; | |
this.description = description; |
package application; | |
import java.io.File; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.JAXBException; | |
import javax.xml.bind.Marshaller; | |
import javax.xml.bind.Unmarshaller; | |
import domain.Address; |
#include "colors.inc" | |
#include "stones.inc" | |
#include "textures.inc" | |
#include "shapes.inc" | |
#include "glass.inc" | |
#include "metals.inc" | |
#include "woods.inc" | |
global_settings { ambient_light White } | |
global_settings{max_trace_level 10} |
import java.io.File; | |
public class CleanWASTrash { | |
private static String ROOT_PATH = "C:\\Users\\devkoa1\\Desktop\\test"; | |
public static void main(String... strings) { | |
try { | |
System.out.println("-----------------------------Clean WAS started -------------------------------------"); | |
// deleteDirectory(new File(ROOT_PATH + "\\config\\temp\\")); |
##Enum implementation ###Implementation 1
enum Day
{
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY;
}
###Implementation 1
openapi: 3.0.0 | |
servers: | |
- url: 'https://pudo.com.np/web/' | |
info: | |
title: Web Adaptor Service | |
description: >- | |
Provides endpoints to integrate PUDO in web page | |
version: '1.0' | |
paths: | |
'/locations': |