This file contains 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
package net.smcrow.sandbox.streams; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
public class MultiplyAllByFive { | |
private static final List<Integer> NUMBERS = List.of(1, 2, 3, 4, 5); |
This file contains 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
package net.smcrow.sandbox.streams; | |
import java.util.List; | |
public class AllExceptCurrent { | |
private static final List<String> FRIENDS = List.of("Sarah", "John", "Megan", "Joseph"); | |
public static void main(String... args) { | |
System.out.println("Without Streams"); | |
withoutStreams(); |
This file contains 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
<?php | |
class Person { | |
protected $firstName; | |
protected $middleName; | |
protected $lastName; | |
protected $age; | |
protected $gender; | |
protected $height; |
This file contains 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
<?php | |
namespace Smcrow\Sample; | |
class Sample | |
{ | |
protected $id; | |
protected $comments; | |
public static function builder() |
This file contains 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
package com.nexmo.client.sms; | |
import java.util.HashMap; | |
import java.util.Map; | |
public enum MessageStatus { | |
STATUS_OK(0), | |
STATUS_THROTTLED(1), | |
STATUS_MISSING_PARAMS(2), | |
STATUS_INVALID_PARAMS(3), |
NewerOlder