team19hackathon2021 / issues-curriki

0 stars 0 forks source link

to create a new Java class Wrap to help with initialization of Java objects and pass back newly initialized class objects or null. #30

Closed computate closed 2 years ago

computate commented 3 years ago

Mission to create a new Java class Wrap to help with initialization of Java objects and pass back newly initialized class objects or null.

Mission

Your mission, should you choose to accept it, is to create a new Java class Wrap to help with initialization of Java objects and pass back newly initialized class objects or null. .

The day of the operation is October 26th, 2021

You will have 4 hours to complete your mission.

One of the project’s major goals is to establish https://cc.curriki.org as the global authoring and distribution hub and library for openly licensed, next generation, open educational resources (OER+) under the least restrictive Creative Commons license, CC-BY.

You will be joining a team of the boldest

of all Red Hatters for this mission, who will be at your service developing the code and automating the deployment to OpenShift.

How to get started:

Follow the instructions here to setup the project: https://github.com/team19hackathon2021/ActiveLearningStudio-API/tree/master/src

The details of your mission:

package org.curriki.api.enus.wrap;

import java.io.Serializable;
import java.util.ArrayList;

/**
 **/

public class Wrap<DEV> {
}

Create the var field inside the Wrap class

    public String var;

Create the var method inside the Wrap class

    public Wrap<DEV> var(String o) {
        var = o;
        return this;
    }

Create the o field inside the Wrap class

    public DEV o;

Create the o method inside the Wrap class

    public Wrap<DEV> o(DEV o) {
        this.o = o;
        return this;
    }

Create the alreadyInitialized field inside the Wrap class

    public Boolean alreadyInitialized = false;

Create the alreadyInitialized method inside the Wrap class

    public Wrap<DEV> alreadyInitialized(Boolean o) {
        alreadyInitialized = o;
        return this;
    }

This message will not self-destruct.

This message will not self destruct, because this project is open source.