java8features - new java 8 features
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
package com.baeldung.java_8_features;
|
||||
|
||||
/**
|
||||
* Created by Alex Vengr
|
||||
*/
|
||||
public class Address {
|
||||
|
||||
private String street;
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
package com.baeldung.java_8_features;
|
||||
|
||||
/**
|
||||
* Created by Alex Vengr
|
||||
*/
|
||||
public class CustomException extends RuntimeException {
|
||||
}
|
||||
|
||||
@@ -3,9 +3,6 @@ package com.baeldung.java_8_features;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by Alex Vengrov
|
||||
*/
|
||||
public class Detail {
|
||||
|
||||
private static final List<String> PARTS = Arrays.asList("turbine", "pump");
|
||||
|
||||
@@ -2,9 +2,6 @@ package com.baeldung.java_8_features;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Created by Alex Vengrov
|
||||
*/
|
||||
public class OptionalAddress {
|
||||
|
||||
private String street;
|
||||
|
||||
@@ -2,9 +2,6 @@ package com.baeldung.java_8_features;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Created by Alex Vengrov
|
||||
*/
|
||||
public class OptionalUser {
|
||||
|
||||
private OptionalAddress address;
|
||||
|
||||
@@ -2,9 +2,6 @@ package com.baeldung.java_8_features;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* Created by Alex Vengrov
|
||||
*/
|
||||
public class User {
|
||||
|
||||
private String name;
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
package com.baeldung.java_8_features;
|
||||
|
||||
/**
|
||||
* Created by Alex Vengrov
|
||||
*/
|
||||
public interface Vehicle {
|
||||
|
||||
void moveTo(long altitude, long longitude);
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
package com.baeldung.java_8_features;
|
||||
|
||||
/**
|
||||
* Created by 1 on 15.05.2016.
|
||||
*/
|
||||
public class VehicleImpl implements Vehicle {
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user