Difference between revisions of "Gunnar Wagenknecht"
(added network links) |
(Java 8, 2016 Update) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<source lang="java"> | <source lang="java"> | ||
/** | /** | ||
− | * Copyright (c) 2008, | + | * Copyright (c) 2008, 2016 Gunnar Wagenknecht. |
* All rights reserved. | * All rights reserved. | ||
* | * | ||
Line 14: | Line 14: | ||
/** | /** | ||
* Gunnar is a software engineer who loves server and application architectures | * Gunnar is a software engineer who loves server and application architectures | ||
− | * | + | * and all things technology related. |
* <p> | * <p> | ||
− | + | * Apart from Eclipse he loves chatting about fishing, diving, family and other | |
− | + | * things that matters over a good beer. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | * Apart from Eclipse he loves chatting about fishing, diving | + | |
− | * | + | |
− | + | ||
* </p> | * </p> | ||
*/ | */ | ||
public final class GunnarWagenknecht { | public final class GunnarWagenknecht { | ||
− | public static String | + | public static String blogAddress() { |
return "http://wagenknecht.org/blog/"; | return "http://wagenknecht.org/blog/"; | ||
} | } | ||
− | public static String | + | public static String emailAddress() { |
return String.format("%s@%s", "gunnar", "wagenknecht.org"); | return String.format("%s@%s", "gunnar", "wagenknecht.org"); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Line 51: | Line 33: | ||
System.out.println("Gunnar Wagenknecht"); | System.out.println("Gunnar Wagenknecht"); | ||
System.out.println(); | System.out.println(); | ||
− | System.out.printf(" Email: %s%n", | + | System.out.printf(" Email: %s%n", emailAddress()); |
− | System.out.printf(" Blog: %s%n", | + | System.out.printf(" Blog: %s%n", blogAddress()); |
System.out.println(); | System.out.println(); | ||
− | + | networkLinks().forEach((name, link) -> System.out.printf(" %8s: %s%n", name, link)); | |
− | + | } | |
− | + | ||
+ | public static Map<String, String> networkLinks() { | ||
+ | final Map<String, String> links = new LinkedHashMap<>(4); | ||
+ | links.put("AboutMe", "http://guw.io"); | ||
+ | links.put("GitHub", "https://github.com/guw"); | ||
+ | links.put("Twitter", "https://twitter.com/guw"); | ||
+ | links.put("LinkedIn", "https://www.linkedin.com/in/gunnarwagenknecht"); | ||
+ | return links; | ||
} | } | ||
private GunnarWagenknecht() { | private GunnarWagenknecht() { | ||
− | // | + | // Just me. No forks. |
} | } | ||
} | } | ||
</source> | </source> |
Latest revision as of 04:51, 27 September 2016
/** * Copyright (c) 2008, 2016 Gunnar Wagenknecht. * All rights reserved. * * This program and the accompanying materials are made available under the terms of the * Eclipse Public License v1.0 which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Gunnar Wagenknecht - initial API and implementation */ /** * Gunnar is a software engineer who loves server and application architectures * and all things technology related. * <p> * Apart from Eclipse he loves chatting about fishing, diving, family and other * things that matters over a good beer. * </p> */ public final class GunnarWagenknecht { public static String blogAddress() { return "http://wagenknecht.org/blog/"; } public static String emailAddress() { return String.format("%s@%s", "gunnar", "wagenknecht.org"); } public static void main(final String[] args) { System.out.println("Gunnar Wagenknecht"); System.out.println(); System.out.printf(" Email: %s%n", emailAddress()); System.out.printf(" Blog: %s%n", blogAddress()); System.out.println(); networkLinks().forEach((name, link) -> System.out.printf(" %8s: %s%n", name, link)); } public static Map<String, String> networkLinks() { final Map<String, String> links = new LinkedHashMap<>(4); links.put("AboutMe", "http://guw.io"); links.put("GitHub", "https://github.com/guw"); links.put("Twitter", "https://twitter.com/guw"); links.put("LinkedIn", "https://www.linkedin.com/in/gunnarwagenknecht"); return links; } private GunnarWagenknecht() { // Just me. No forks. } }