Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 09 2016 10:09

    mikan on master

    Update README.md (compare)

  • Nov 14 2015 15:17

    mikan on master

    Added ch9-ex04. (compare)

  • Nov 14 2015 15:16

    mikan on master

    Complete ch8. (compare)

  • Nov 14 2015 15:10

    mikan on master

    Complete ch7. (compare)

  • Nov 14 2015 14:55

    mikan on master

    Complete ch6. (compare)

  • Nov 14 2015 14:49

    mikan on master

    Complete ch5. (compare)

  • Nov 14 2015 14:43

    mikan on master

    Complete ch4. (compare)

  • Nov 14 2015 14:37

    mikan on master

    Complete ch3. (compare)

  • Sep 22 2015 14:34

    mikan on master

    Complete ch2. (compare)

  • Sep 22 2015 12:50

    mikan on master

    Complete ch1. (compare)

  • Sep 22 2015 12:10

    mikan on master

    Fixed test fail. (compare)

  • Sep 20 2015 15:40

    mikan on master

    Update README.md (compare)

  • Sep 20 2015 14:27

    mikan on master

    Update README.md (compare)

  • Sep 19 2015 15:32

    intptr-t on master

    chapter8-13 新規作成 (compare)

  • Sep 19 2015 15:30

    intptr-t on master

    chapter8-12 新規作成 (compare)

  • Sep 17 2015 15:56

    intptr-t on master

    chapter8-14 新規作成。 chapter8-15 新… (compare)

  • Sep 15 2015 15:06

    intptr-t on master

    chapter 8-11 新規作成。 (compare)

  • Sep 15 2015 14:35

    intptr-t on master

    chapter8-10 新規作成。 (compare)

  • Sep 14 2015 16:02

    intptr-t on master

    chapter8-9 新規作成。 (compare)

  • Sep 14 2015 15:19

    intptr-t on master

    chapter8-4 新規作成。 chapter8-5 新規作… chapter8-1 戻り値の型修正。余分な空白削除。 Merge branch 'master' of https:… and 2 more (compare)

Yutaka Kato
@mikan
Hello, everyone!
skanz
@LagunaPresa

GOOD NIGHT

Yutaka Kato
@mikan
About リポジトリ, Lectures リポジトリを削除し、内容 (README.md と Wiki) を本リポジトリに統合しますた。
Takumi Okamoto
@MrBearing
こりゃなんじゃ?
skanz
@LagunaPresa
前回BaseStreamのジェネリクスの型宣言が自己言及してる話(記事はEnum型でのもの。あとで自分も読む) http://www.angelikalanger.com/GenericsFAQ/FAQSections/TypeParameters.html#FAQ106
pishty1
@pishty1
hello guys, how can i do the following code in java 8 streams
Map<Integer, Float> myUsage = new HashMap<>();
int year = 1990;
for(String myValue: myStringList) {
myUsage.put(Integer.valueOf(year + 1), Float.valueOf(myValue));
}
Gopinath Langote
@gopinath-langote
@pishty1 yes ! you can do that using java version less than 8.
Using java 8 you can do that like, Map<Integer, Float> myUsage = new HashMap<>(); int year = 1990;
myStringList.forEach(myValue -> myUsage.put(Integer.valueOf(year + 1), Float.valueOf(myValue)));
myStringList.forEach(myValue -> myUsage.put(Integer.valueOf(year + 1), Float.valueOf(myValue)));
pishty1
@pishty1
thank u @gopinath-langote
Stephano Apiolaza
@stephanoapiolaza
Hi
is there anyone over there?
Gopinath Langote
@gopinath-langote
Hey @stephanoapiolaza
Stephano Apiolaza
@stephanoapiolaza
Hi
Gopinath Langote
@gopinath-langote
yes
Stephano Apiolaza
@stephanoapiolaza
Hi, How can i do binding definition automatic with jibx?
Stefano Tondo
@tondostefano_twitter
hi all
I'm trying to write a more generic version of the following code:
                    return verificaTelefonoAssicuratoInnerFuture
                            .thenCompose(insRow -> {

                                VerificaTelefonoAssicuratoResponse verTelAssicParsed = null;

                                try {
                                    Logger.info("verificaTelefonoAssicuratoInnerFuture " + insRow.asJson());

                                    verTelAssicParsed = mapper.treeToValue(insRow.asJson(), VerificaTelefonoAssicuratoResponse.class);

                                    Logger.info("PRASED MODEL " + verTelAssicParsed.getCognome());


                                } catch (JsonProcessingException e) {
                                    logError(chkNum.getGuid(), stepName, "VerificaTelefonoAssicuratoResponse: " + e.getMessage(), this.ivrExitMessageOp, chkNum.getCallbackIvrUrl());
                                }

                                CompletableFuture<String> wsr = callWriteExtServiceData(verTelAssicParsed, chkNum.getGuid(), stepName, "verificaTelefonoAssicuratoResponse",
                                        this.ivrExitMessageOp, chkNum.getCallbackIvrUrl(), "verificaTelefonoAssicuratoResponse", new ArrayList<>());

                                VerificaTelefonoAssicuratoResponse finalVerTelAssicParsed = verTelAssicParsed;

                                return wsr.thenCompose(guid -> CompletableFuture.supplyAsync(() -> finalVerTelAssicParsed));
                            });
                });
I was trying to write a generic FunctionalInterface to pass to .thenCompose, because I've many places in my code where I run similar code. What actually differ is the 3rd party API I call and of course the request/response
is there a way to generalize that?
liubo404
@liubo404
How to lambda this statements? simplify and clean, produce one line presentation?
 List<GoodsClassify> goodsClassifyList = Lists.newArrayList();
        Lists.partition(allNos,1000).forEach(n->{
            goodsClassifyList.addAll(goodsClassifyRepository.findAllByGoodsClassifyNoIn(n));
        });
use instance method reference and reduce to rewrite it?
iPradeepTechie
@iPradeepan_twitter

Hello Viewers,

This is my latest video in which I have discussed about overview of Java 8 Stream concepts in English.

Please do watch & support us.

https://youtu.be/t5mfC59Lukw

Thanks,
Techies Stall

Tim
@tirumalesh123
Hello there
I would like to know how combining two optionals work without unwrapping them using flatmap
Without calling get
Sivabalan
@jofisiva
Hello
Can we write a the below code in better way in Java 8 functional ?
    List<String> scheduleTypeList = schedulingConfigDto.getScheduleTypes();
    List<DimensionDto> dimensionDtoList = reportDefinitionDto.getDimensions();
    dimensionDtoList.forEach(dimensionDto -> {
        if ((TIMEPERIOD.name().equals(dimensionDto.getStaticId())) && (dimensionDto.getGroups().isEmpty())) {
            //removing ADD from schedule type list if Time Group is empty

            scheduleTypeList.removeIf(p -> p.equalsIgnoreCase(String.valueOf(ScheduleType.ADD)));
        }

    });
// scheduleTypeList.removeIf(dimensionDtoList.stream()
// .filter(dimensionDto -> dimensionDto.getStaticId().equalsIgnoreCase(TIMEPERIOD.name()) && dimensionDto.getGroups().isEmpty()));
//
return new GetReportSchedulerOptionsResponse(schedulingConfigDto);
}