├── cargo
│ ├── Cargo.java
│ ├── CargoRepository.java
│ ├── Delivery.java
│ ├── HandlingActivity.java
│ ├── Itinerary.java
│ ├── Leg.java
│ ├── RouteSpecification.java
│ ├── RoutingStatus.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scala> val getTimeString = new Function0[String] { | |
| | override def apply: String = ZonedDateTime.now.toString | |
| | } | |
| getTimeString: () => String = <function0> | |
| scala> :javap getTimeString | |
| Size 902 bytes | |
| MD5 checksum dc6b8c20b0a3937afbe114e129c22cb9 | |
| Compiled from "<console>" | |
| public class $line4.$read$$iw$$iw$$iw$$iw$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class BankAccount { | |
| public void setName(String name) { | |
| this.name = name; | |
| } | |
| public void setCustomerId(long customerId) { | |
| this.customerId = customerId | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class Administrators(userId: Long, userIds: Seq[Long]) | |
| case class Member(userId: Long, byAdministratorId: Option[Long] = None) | |
| case class Memebers(userIds: Seq[Member]) | |
| case class Message(id: Long, value: String, senderId: Long) | |
| case class Messages(values: Seq[Message]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val childProps = Props(classOf[EchoActor]) | |
| val stopBackOffOptions = Backoff.onStop(childProps, "c1", 100.millis, 3.seconds, 0.2) | |
| val failureBackOffOptions = Backoff.onFailure(childProps, "c1", 100.millis, 3.seconds, 0.2) | |
| val stopBackOffSupervisor = system.actorOf(BackoffSupervisor.props(stopBackOffOptions)) | |
| val failureBackOffSupervisor = system.actorOf(BackoffSupervisor.props(failureBackOffOptions)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class Item( | |
| id: Option[Long], | |
| code: String, | |
| name: String, | |
| url: String, | |
| imageUrl: String, | |
| price: Int, | |
| createAt: DateTime, | |
| updateAt: DateTime, | |
| users: Seq[User] = Seq.empty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class User(id: Long, name: Option[String]) | |
| object UserDao { | |
| def findById(id: Long): Option[User] = { | |
| if (id % 3 == 0) | |
| Some(User(id, Some("Kaneko"))) | |
| else if (id % 5 == 0) | |
| Some(User(id, None)) | |
| else |
-
Java
- nimbus
-
Scala
- scala-oauth-provider
- pac4j