lambda

    3

    3답변

    유효한 생성자가있는 class A {int sNo; String name;}이 있습니다. 스트림 API를 사용하여 이름을 기준으로 정렬하고 이름을 정렬해야합니다. public class Test1 { public static void main(String[] args) { ArrayList<A> l = new ArrayList();

    0

    1답변

    나는 람다와 델리게이트에 익숙하지 않지만 단순성을 위해 몇 가지 기존 메서드를 다시 작성하려고합니다. 배경 : 소켓을 통해 통신 할 클라이언트 및 서버 응용 프로그램이 있습니다. CommunicationMessage은 보내거나받을 값을 보유 할 클래스입니다. 조치를 매개 변수로 사용하여 메소드를 정의했습니다. public void SendAndReceive

    3

    1답변

    JShell에서 선언 된 메서드가 두포에서 어떻게 구현되는지 궁금합니다. 예 : int add(int x,int y){ return x+y; } 는 BiFunction의 선언 방법 인스턴스 위에? 어리석은 질문 일지 모르지만 다만 호기심을 위해.

    -1

    1답변

    autofac의 문서를 읽을 때 우리는이 같은 예를 볼 수 있습니다 new ResolvedParameter( (pi, ctx) => pi.ParameterType == typeof(ISender), (pi, ctx) => ctx.Resolve<PostalServiceSender>())); 내가 아는 그 문맥 CTX 스탠드하지만 파이?

    4

    1답변

    나는 코드를 포함하는, this answer을 게시 한 : template <typename T> auto vertex_triangle(const size_t index, const vector<pair<T, T>>& polygon) { const auto& first = index == 0U ? polygon.back() : polygon[in

    -1

    1답변

    const params = { TableName: 'item-table', FilterExpression : "#tagname = :itemId", ExpressionAttributeNames: {"#tagname": "itemId"}, ExpressionAttributeValues: {":itemId": "000001"

    1

    1답변

    이 코드를 사용하여 검색 필터를 만들었습니다. 데이터 배열을 전달하고이 데이터를 AND로 필터링해야합니다. Expression<Func<serveis, bool>> CombineWithAnd<T>(Expression<Func<T, bool>> firstExpression, Expression<Func<T, bool>> secondExpression) {

    4

    2답변

    저는 List<User> users입니다. 나는 두 조건을 기반으로 목록을 필터링하고 싶습니다. 을 FilterName 공용 클래스 사용자가 엔티티를 구현 일치하는 사용자 아이디 일치는 { public User() { } private String userName; private String userId; private

    4

    1답변

    streams API를 사용하여 다른 목록의 객체 목록을 업데이트하고 싶습니다. List<User> users은 List<Filter> filters입니다. userID 및 해당 filterName과 일치하는 요소를 인수로 들어오는 Filter 개체로 업데이트하고 싶습니다. 지도는 내가 그것을 할 수 있도록 허용하지 않습니다. 아래에서 시도했지만지도가 여러

    0

    1답변

    : categoryList = Prices.stream() .filter(price -> price.getPrice() != null) .map(this::createCategory) .filter(Objects::nonNull) .collect(Collectors.toList()); 과 같은 방